/php-src/ext/dom/lexbor/lexbor/encoding/ |
H A D | decode.c | 489 ctx->codepoint = lxb_encoding_multi_index_jis0212[ctx->codepoint].codepoint; in lxb_encoding_decode_euc_jp() 499 ctx->codepoint = lxb_encoding_multi_index_jis0208[ctx->codepoint].codepoint; in lxb_encoding_decode_euc_jp() 592 ctx->codepoint = lxb_encoding_multi_index_euc_kr[ctx->codepoint].codepoint; in lxb_encoding_decode_euc_kr() 840 ctx->codepoint = lxb_encoding_multi_index_jis0208[ctx->codepoint].codepoint; in lxb_encoding_decode_iso_2022_jp() 1191 ctx->codepoint = lxb_encoding_multi_index_jis0208[ctx->codepoint].codepoint; in lxb_encoding_decode_shift_jis() 1476 ctx->codepoint = (ctx->codepoint << 6) | (ch & 0x3F); in lxb_encoding_decode_utf_8() 2142 ctx->codepoint = lxb_encoding_multi_index_jis0212[ctx->codepoint].codepoint; in lxb_encoding_decode_euc_jp_single() 2151 ctx->codepoint = lxb_encoding_multi_index_jis0208[ctx->codepoint].codepoint; in lxb_encoding_decode_euc_jp_single() 2214 ctx->codepoint = lxb_encoding_multi_index_euc_kr[ctx->codepoint].codepoint; in lxb_encoding_decode_euc_kr_single() 2680 ctx->codepoint = lxb_encoding_multi_index_jis0208[ctx->codepoint].codepoint; in lxb_encoding_decode_shift_jis_single() [all …]
|
H A D | base.h | 121 lxb_codepoint_t codepoint; member 201 lxb_codepoint_t codepoint; member 209 lxb_codepoint_t codepoint; member
|
/php-src/ext/intl/uchar/ |
H A D | uchar.stub.php | 1410 public static function charType(int|string $codepoint): ?int {} argument 1413 public static function chr(int|string $codepoint): ?string {} argument 1470 public static function isalnum(int|string $codepoint): ?bool {} argument 1473 public static function isalpha(int|string $codepoint): ?bool {} argument 1476 public static function isbase(int|string $codepoint): ?bool {} argument 1479 public static function isblank(int|string $codepoint): ?bool {} argument 1482 public static function iscntrl(int|string $codepoint): ?bool {} argument 1488 public static function isdigit(int|string $codepoint): ?bool {} argument 1491 public static function isgraph(int|string $codepoint): ?bool {} argument 1515 public static function islower(int|string $codepoint): ?bool {} argument [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | mb_substitute_character_variation_weak_types.phpt | 116 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint 124 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint 126 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 128 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 154 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 156 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 158 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 160 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 162 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 164 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint [all …]
|
H A D | eucjp_ms_encoding.phpt | 18 foreach ($toUnicodeIrreversible as $char => $codepoint) { 19 if (!isset($fromUnicode[$codepoint])) 20 $fromUnicode[$codepoint] = $char; 24 // same Unicode codepoint. Make sure we use the intended reverse mapping for tests:
|
H A D | mb_substitute_character_variation_strict_types.phpt | 118 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint 150 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 152 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 154 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 156 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 158 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint 160 …racter(): Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint
|
H A D | utf8_mobile_encodings.phpt | 80 if (sscanf($line, "0x%x\t0x%x", $codepoint, $char) == 2) { 81 $codepoint = pack('N', $codepoint); 83 $from[$char] = $codepoint; 84 $to[$codepoint] = $char; 85 } else if (sscanf($line, "0x%x\tBAD", $codepoint) == 1) { 86 $codepoint = pack('N', $codepoint); 87 $invalid[$codepoint] = true;
|
H A D | bug69079.phpt | 36 mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint 38 mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
|
H A D | cp51932_encoding.phpt | 25 if (sscanf($line, '<U%x> \x%x\x%x', $codepoint, $byte1, $byte2) >= 2) { 31 if (($codepoint >= 0xC0 && $codepoint <= 0xD6) || 32 ($codepoint >= 0xD8 && $codepoint <= 0xF6) || 33 ($codepoint >= 0xF8 && $codepoint <= 0xFF)) 36 $utf16 = pack('n', $codepoint);
|
H A D | encoding_tests.inc | 26 // Read a file with one character and its equivalent Unicode codepoint on each 36 if (sscanf($line, "0x%x\t0x%x", $char, $codepoint) == 2) { 38 if ($codepoint === 0xFFFD) { 41 $codepoint = $utf32 ? pack('N', $codepoint) : pack('n', $codepoint); 63 $from[$char] = $codepoint; 64 $to[$codepoint] = $char;
|
H A D | cp5022x_encoding.phpt | 43 if (sscanf($line, "0x%x\t0x%x", $bytes, $codepoint) == 2) { 48 if (isset($fromUnicode[$codepoint])) { 49 $nonInvertible[pack('n', shiftJISDecode($bytes))] = pack('n', $codepoint); 51 $cp932Chars[pack('n', shiftJISDecode($bytes))] = pack('n', $codepoint); 52 $fromUnicode[$codepoint] = $bytes; 59 $codepoint = 0xE000; 65 $codepoint++; 76 if (sscanf($line, "0x%x\t0x%x", $byte, $codepoint) == 2) 77 $jisx0201Chars[chr($byte)] = pack('n', $codepoint); 87 if (sscanf($line, "0x%x\t0x%x", $bytes, $codepoint) == 2) { [all …]
|
H A D | mb_substr_count.phpt | 58 // cached data), and both of those codepoints matched a 1-codepoint needle 62 // Another thing about the old implementation: if a final codepoint was emitted 63 // by a decoder flush function, and that codepoint finished a match with the
|
H A D | mb_encode_numericentity.phpt | 26 0, 0, 0, 0, // Only one codepoint, empty mask 27 100, 50, 0, 0xFFFF // 'End' codepoint is before 'start' codepoint
|
/php-src/tests/lang/string/ |
H A D | unicode_escape_large_codepoint.phpt | 2 Invalid Unicode escape sequence: Large codepoint 9 Parse error: Invalid UTF-8 codepoint escape sequence: Codepoint too large in %s on line %d
|
H A D | unicode_escape_empty.phpt | 9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
|
H A D | unicode_escape_incomplete.phpt | 9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
|
H A D | unicode_escape_whitespace.phpt | 9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
|
H A D | unicode_escape_sign.phpt | 9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
|
H A D | unicode_escape_sign2.phpt | 9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
|
/php-src/ext/intl/tests/ |
H A D | cpbi_getLastCodePoint_basic.phpt | 16 //first() and last() don't read codepoint and set the last code point var to -1 17 //The pointer is after the last read codepoint if moving forward and 18 //before the last read codepoint is moving backwards 26 //it's a post-increment operation as to the codepoint, i.e., it gives the codepoint
|
/php-src/ext/iconv/tests/ |
H A D | bug74230.phpt | 8 $high = "\xED\xa1\x92"; // codepoint D852 9 $low = "\xED\xBD\xA2"; // codepoint DF62
|
/php-src/ext/intl/normalizer/ |
H A D | normalizer_normalize.c | 284 UChar32 codepoint = -1; in PHP_FUNCTION() local 304 U8_NEXT(input, offset, input_length, codepoint); in PHP_FUNCTION() 311 if ((codepoint < UCHAR_MIN_VALUE) || (codepoint > UCHAR_MAX_VALUE)) { in PHP_FUNCTION() 317 decomposition_length = unorm2_getRawDecomposition(norm, codepoint, decomposition, 32, &status); in PHP_FUNCTION()
|
/php-src/ext/tokenizer/tests/ |
H A D | parse_errors.phpt | 40 Invalid UTF-8 codepoint escape sequence 48 Invalid UTF-8 codepoint escape sequence: Codepoint too large
|
/php-src/Zend/tests/ |
H A D | require_parse_exception.phpt | 50 Invalid UTF-8 codepoint escape sequence on line 2 51 Invalid UTF-8 codepoint escape sequence: Codepoint too large on line 2
|
/php-src/ext/dom/lexbor/lexbor/html/tokenizer/ |
H A D | state.c | 2144 if (codepoint <= 0x0000007F) { in lxb_html_tokenizer_state_to_ascii_utf_8() 2146 data[0] = (char) codepoint; in lxb_html_tokenizer_state_to_ascii_utf_8() 2150 else if (codepoint <= 0x000007FF) { in lxb_html_tokenizer_state_to_ascii_utf_8() 2152 data[0] = (char) (0xC0 | (codepoint >> 6 )); in lxb_html_tokenizer_state_to_ascii_utf_8() 2153 data[1] = (char) (0x80 | (codepoint & 0x3F)); in lxb_html_tokenizer_state_to_ascii_utf_8() 2157 else if (codepoint <= 0x0000FFFF) { in lxb_html_tokenizer_state_to_ascii_utf_8() 2159 data[0] = (char) (0xE0 | ((codepoint >> 12))); in lxb_html_tokenizer_state_to_ascii_utf_8() 2161 data[2] = (char) (0x80 | ( codepoint & 0x3F)); in lxb_html_tokenizer_state_to_ascii_utf_8() 2165 else if (codepoint <= 0x001FFFFF) { in lxb_html_tokenizer_state_to_ascii_utf_8() 2167 data[0] = (char) (0xF0 | ( codepoint >> 18)); in lxb_html_tokenizer_state_to_ascii_utf_8() [all …]
|