Lines Matching refs:cp
24 foreach (Unicode::fromUtf8($str) as $cp) {
25 if ($cp < 0x80 && !$all) {
26 $ret .= chr($cp);
27 } elseif ($cp < 0x100) {
28 $ret .= "&#$cp;";
30 $ret .= '&#x' . dechex($cp) . ';';
113 $cp = hexdec($ent[3]);
116 $cp = (int) $ent[3];
119 return Unicode::toUtf8([$cp]);
139 foreach ($uni as $cp) {
140 $out .= pack('n', $cp);