Lines Matching refs:string
19 * @param string $string
23 public static function convertToUtf8($string) argument
25 return mb_convert_encoding($string, 'UTF-8');
31 * @param string $string
35 protected static function isUtf8($string) argument
37 $length = strlen($string);
40 if (ord($string[$i]) < 0x80) {
42 } elseif ((ord($string[$i]) & 0xE0) == 0xC0) {
44 } elseif ((ord($string[$i]) & 0xF0) == 0xE0) {
46 } elseif ((ord($string[$i]) & 0xF0) == 0xF0) {
53 if ((++$i == $length) || ((ord($string[$i]) & 0xC0) != 0x80)) {