Lines Matching refs:utf16
145 * @param string $utf16 UTF-16 character
149 function utf162utf8($utf16) argument
153 return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16');
156 $bytes = (ord($utf16{0}) << 8) | ord($utf16{1});
300 $utf16 = $this->utf82utf16($char);
301 $ascii .= sprintf('\u%04s', bin2hex($utf16));
311 $utf16 = $this->utf82utf16($char);
312 $ascii .= sprintf('\u%04s', bin2hex($utf16));
323 $utf16 = $this->utf82utf16($char);
324 $ascii .= sprintf('\u%04s', bin2hex($utf16));
336 $utf16 = $this->utf82utf16($char);
337 $ascii .= sprintf('\u%04s', bin2hex($utf16));
350 $utf16 = $this->utf82utf16($char);
351 $ascii .= sprintf('\u%04s', bin2hex($utf16));
559 $utf16 = chr(hexdec(substr($chrs, ($c + 2), 2)))
561 $utf8 .= $this->utf162utf8($utf16);