Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 25 of 60) sorted by relevance

123

/php-src/ext/dom/lexbor/lexbor/encoding/
H A Ddecode.c489 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 Dbase.h121 lxb_codepoint_t codepoint; member
201 lxb_codepoint_t codepoint; member
209 lxb_codepoint_t codepoint; member
/php-src/ext/intl/uchar/
H A Duchar.stub.php1410 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 Dmb_substitute_character_variation_weak_types.phpt116 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 Deucjp_ms_encoding.phpt18 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 Dmb_substitute_character_variation_strict_types.phpt118 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 Dutf8_mobile_encodings.phpt80 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 Dbug69079.phpt36 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 Dcp51932_encoding.phpt25 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 Dencoding_tests.inc26 // 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 Dcp5022x_encoding.phpt43 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 Dmb_substr_count.phpt58 // 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 Dmb_encode_numericentity.phpt26 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 Dunicode_escape_large_codepoint.phpt2 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 Dunicode_escape_empty.phpt9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
H A Dunicode_escape_incomplete.phpt9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
H A Dunicode_escape_whitespace.phpt9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
H A Dunicode_escape_sign.phpt9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
H A Dunicode_escape_sign2.phpt9 Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
/php-src/ext/intl/tests/
H A Dcpbi_getLastCodePoint_basic.phpt16 //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 Dbug74230.phpt8 $high = "\xED\xa1\x92"; // codepoint D852
9 $low = "\xED\xBD\xA2"; // codepoint DF62
/php-src/ext/intl/normalizer/
H A Dnormalizer_normalize.c284 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 Dparse_errors.phpt40 Invalid UTF-8 codepoint escape sequence
48 Invalid UTF-8 codepoint escape sequence: Codepoint too large
/php-src/Zend/tests/
H A Drequire_parse_exception.phpt50 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 Dstate.c2144 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 …]

Completed in 43 milliseconds

123