Lines Matching refs:char
16 if (sscanf($line, "0x%x\t0x%x", $char, $codepoint) == 2) {
22 if ($char == PHP_INT_MAX) {
25 $char = "";
29 $char .= chr(hexdec($substr));
34 if ($char <= 0xFF)
35 $char = chr($char); // hex codes must not have leading zero bytes
36 else if ($char <= 0xFFFF)
37 $char = pack('n', $char);
38 else if ($char <= 0xFFFFFF)
39 $char = chr($char >> 16) . pack('n', $char & 0xFFFF);
41 $char = pack('N', $char);
43 $from[$char] = $codepoint;
44 $to[$codepoint] = $char;
181 foreach ($valid as $char => $unicode) {
182 for ($len = 1; $len < strlen($char); $len++)
183 $prefixes[substr($char, 0, $len)] = true;