Home
last modified time | relevance | path

Searched refs:utf8 (Results 1 – 25 of 47) sorted by relevance

12

/PHP-5.3/ext/json/
H A Dutf8_decode.c62 if (utf8->the_index >= utf8->the_length) { in get()
65 c = utf8->the_input[utf8->the_index] & 0xFF; in get()
78 int c = get(utf8); in cont()
89 utf8->the_index = 0; in utf8_decode_init()
92 utf8->the_char = 0; in utf8_decode_init()
93 utf8->the_byte = 0; in utf8_decode_init()
114 return utf8->the_char > 0 ? utf8->the_char - 1 : 0; in utf8_decode_at_character()
130 if (utf8->the_index >= utf8->the_length) { in utf8_decode_next()
131 return utf8->the_index == utf8->the_length ? UTF8_END : UTF8_ERROR; in utf8_decode_next()
133 utf8->the_byte = utf8->the_index; in utf8_decode_next()
[all …]
H A Dutf8_decode.h15 extern int utf8_decode_at_byte(json_utf8_decode *utf8);
16 extern int utf8_decode_at_character(json_utf8_decode *utf8);
17 extern void utf8_decode_init(json_utf8_decode *utf8, char p[], int length);
18 extern int utf8_decode_next(json_utf8_decode *utf8);
H A Dutf8_to_utf16.c37 json_utf8_decode utf8; in utf8_to_utf16() local
39 utf8_decode_init(&utf8, p, length); in utf8_to_utf16()
41 c = utf8_decode_next(&utf8); in utf8_to_utf16()
/PHP-5.3/ext/standard/tests/strings/
H A Dsetlocale_basic3.phpt8 if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) {
9 die('skip en_US.utf8/Ko_KR.utf8/zh_CN.utf8 locales not available');
54 "en_US.utf8" => "USD",
55 "en_AU.utf8" => "AUD",
56 "ko_KR.utf8" => "KRW",
57 "zh_CN.utf8" => "CNY",
58 "de_DE.utf8" => "EUR",
63 "nl_NL.utf8" =>"EUR"
73 …cale() by giving 'category' as LC_ALL & multiple locales(en_US.utf8, Ko_KR.utf8, zh_CN.utf8) --\n";
76 $new_locale = setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8");
[all …]
H A Dsetlocale_basic1.phpt8 …LL, "en_US.utf8", "en_AU.utf8", "ko_KR.utf8", "zh_CN.utf8", "de_DE.utf8", "es_EC.utf8", "fr_FR.utf…
67 "en_US.utf8" => "USD",
68 "en_AU.utf8" => "AUD",
69 "ko_KR.utf8" => "KRW",
70 "zh_CN.utf8" => "CNY",
71 "de_DE.utf8" => "EUR",
72 "es_EC.utf8" => "USD",
73 "fr_FR.utf8" => "EUR",
74 "ja_JP.utf8" => "JPY",
75 "el_GR.utf8" => "EUR",
[all …]
H A Dsetlocale_variation1.phpt8 if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) {
9 die('skip en_US.utf8/Ko_KR.utf8/zh_CN.utf8 locales not available');
53 "en_US.utf8" => "USD",
54 "en_AU.utf8" => "AUD",
55 "ko_KR.utf8" => "KRW",
56 "zh_CN.utf8" => "CNY",
57 "de_DE.utf8" => "EUR",
58 "es_EC.utf8" => "USD",
59 "fr_FR.utf8" => "EUR",
62 "nl_NL.utf8" =>"EUR"
[all …]
H A Dsetlocale_basic2.phpt8 …LL, "en_US.utf8", "en_AU.utf8", "ko_KR.utf8", "zh_CN.utf8", "de_DE.utf8", "es_EC.utf8", "fr_FR.utf…
68 "en_US.utf8" => "USD",
69 "en_AU.utf8" => "AUD",
70 "ko_KR.utf8" => "KRW",
71 "zh_CN.utf8" => "CNY",
72 "de_DE.utf8" => "EUR",
73 "es_EC.utf8" => "USD",
74 "fr_FR.utf8" => "EUR",
75 "ja_JP.utf8" => "JPY",
76 "el_GR.utf8" => "EUR",
[all …]
H A Dsetlocale_variation4.phpt8 if (setlocale(LC_ALL,'en_US.utf8') === false || setlocale(LC_ALL,'en_AU.utf8') === false) {
9 die('skip en_US.utf8/en_AU.utf8 locales not available');
13 LC_ALL=en_US.utf8;
28 setlocale(LC_ALL,"en_AU.utf8");
H A Dsetlocale_variation5.phpt8 if (setlocale(LC_ALL,'en_AU.utf8') === false || setlocale(LC_ALL,'en_US.utf8') === false) {
9 die('skip en_AU.utf8/en_US.utf8 locales not available');
13 LC_ALL=en_US.utf8;
28 setlocale(LC_ALL,'en_AU.utf8');
H A Dsetlocale_variation3.phpt8 if (setlocale(LC_ALL,'en_US.utf8') === false) {
9 die('skip en_US.utf8 locale not available');
28 setlocale(LC_ALL,"en_US.utf8");
/PHP-5.3/ext/pcre/tests/
H A Dinvalid_utf8_offset.phpt6 die('skip no utf8 support in PCRE library');
12 $string = b"\xc3\xa9 uma string utf8 bem formada";
32 string(28) " uma string utf8 bem formada"
H A Dinvalid_utf8.phpt6 die('skip no utf8 support in PCRE library');
H A Dskip.ini5 [No utf8 support in PCRE library]
H A Dbug27103.phpt6 die('skip no utf8 support in PCRE library');
H A D007.phpt6 die('skip no utf8 support in PCRE library');
/PHP-5.3/ext/mysqli/tests/
H A Dbug37090.phpt24 $cs[] = $mysql->set_charset("utf8");
42 string(4) "utf8"
46 string(4) "utf8"
H A Dmysqli_fetch_assoc_no_alias_utf8.phpt2 mysqli_fetch_assoc() - utf8
19 if (strtolower($tmp['Charset']) !== 'utf8')
40 /* some cyrillic (utf8) comes here */
52 …ement primary key, име varchar(20) character set ucs2, фамилия varchar(20) character set utf8)")) {
H A Dmysqli_change_user_set_names.phpt133 // charsets cannot take any other value but utf8 in unicode mode
134 $defaults['charset_client'] = 'utf8';
135 $defaults['charset_connection'] = 'utf8';
136 $defaults['charset_results'] = 'utf8';
H A Dbug36802.phpt18 $x[0] = @$mysql->set_charset('utf8');
/PHP-5.3/ext/mysqlnd/
H A Dmysqlnd_charset.c151 static unsigned int mysqlnd_mbcharlen_utf8mb3(unsigned int utf8) in mysqlnd_mbcharlen_utf8mb3() argument
153 if (utf8 < 0x80) { in mysqlnd_mbcharlen_utf8mb3()
156 if (utf8 < 0xC2) { in mysqlnd_mbcharlen_utf8mb3()
159 if (utf8 < 0xE0) { in mysqlnd_mbcharlen_utf8mb3()
162 if (utf8 < 0xF0) { in mysqlnd_mbcharlen_utf8mb3()
169 static unsigned int mysqlnd_mbcharlen_utf8(unsigned int utf8) in mysqlnd_mbcharlen_utf8() argument
171 if (utf8 < 0x80) { in mysqlnd_mbcharlen_utf8()
174 if (utf8 < 0xC2) { in mysqlnd_mbcharlen_utf8()
177 if (utf8 < 0xE0) { in mysqlnd_mbcharlen_utf8()
180 if (utf8 < 0xF0) { in mysqlnd_mbcharlen_utf8()
[all …]
/PHP-5.3/ext/mbstring/tests/
H A Dmb_strlen.phpt51 $utf8 = mb_convert_encoding($euc_jp, 'UTF-8','EUC-JP');
52 print mb_strlen($utf8,'UTF-8') . "\n";
54 print strlen($utf8) . "\n";
/PHP-5.3/ext/pcre/pcrelib/
H A Dpcredemo.c62 int utf8; in main() local
267 utf8 = option_bits & PCRE_UTF8; in main()
345 else if (utf8) /* Otherwise, ensure we */ in main()
H A Dpcre_printint.src75 print_char(FILE *f, uschar *ptr, BOOL utf8)
80 utf8 = utf8; /* Avoid compiler warning */
85 if (!utf8 || (c & 0xc0) != 0xc0)
159 BOOL utf8;
178 utf8 = (options & PCRE_UTF8) != 0;
226 code += 1 + print_char(f, code, utf8);
237 code += 1 + print_char(f, code, utf8);
326 else extra = print_char(f, code+1, utf8);
335 extra = print_char(f, code+3, utf8);
/PHP-5.3/ext/json/tests/
H A Dbug46944.phpt2 Bug #46944 (json_encode() doesn't handle 3 byte utf8 correctly)
/PHP-5.3/ext/tidy/tests/
H A D024.phpt25 $tidy = tidy_parse_string($contents, $config, 'utf8');

Completed in 27 milliseconds

12