Home
last modified time | relevance | path

Searched refs:SJIS (Results 1 – 25 of 43) sorted by relevance

12

/PHP-8.1/ext/mbstring/tests/
H A Dsjis2004_encoding.phpt2 Exhaustive test of SJIS-2004 encoding verification and conversion
15 /* Read in the table of all characters in SJIS-2004 */
16 $validChars = array(); /* SJIS-2004 string -> UTF-32BE string */
17 $fromUnicode = array(); /* UTF-16BE -> SJIS-2004 */
18 $fp = fopen(__DIR__ . '/data/SJIS-2004.txt', 'r+');
44 testAllValidChars($validChars, 'SJIS-2004', 'UTF-32BE');
53 testAllValidChars($fromUnicode, 'UTF-16BE', 'SJIS-2004', false);
67 convertInvalidString("\x80", "%", "SJIS-2004", "UTF-8");
68 convertInvalidString("\x81\x20", "%", "SJIS-2004", "UTF-8");
69 convertInvalidString("\xFC\xF5", "%", "SJIS-2004", "UTF-8");
[all …]
H A Dmb_strlen.phpt28 echo "== SJIS ==\n";
30 print mb_strlen($sjis,'SJIS') . "\n";
47 echo "== SJIS-2004 ==\n";
51 echo "== SJIS-Mobile#DOCOMO ==\n";
55 echo "== SJIS-Mobile#KDDI ==\n";
59 echo "== SJIS-Mobile#SoftBank ==\n";
93 == SJIS ==
105 == SJIS-2004 ==
108 == SJIS-Mobile#DOCOMO ==
111 == SJIS-Mobile#KDDI ==
[all …]
H A Dmb_substr.phpt15 // SJIS
40 echo "SJIS:\n";
50 echo "SJIS-2004:\n";
58 echo "SJIS-Mobile#DOCOMO:\n";
62 echo "SJIS-Mobile#KDDI:\n";
66 echo "SJIS-Mobile#SoftBank:\n";
120 SJIS:
129 SJIS-2004:
135 SJIS-Mobile#DOCOMO:
138 SJIS-Mobile#KDDI:
[all …]
H A Dmb_str_split_jp.phpt18 "SJIS",
67 foreach (['SJIS', 'SJIS-2004', 'MacJapanese', 'SJIS-Mobile#DOCOMO', 'SJIS-Mobile#KDDI', 'SJIS-Mobil…
81 SJIS: 93fa 967b
87 == Regression test for SJIS byte 0x80 ==
88 SJIS: [80a1, 6162, 6380, a1]
89 SJIS: [6162, 63fd, feff, 6162, fdfe, ff]
90 SJIS-2004: [80a1, 6162, 6380, a1]
91 SJIS-2004: [6162, 63fd, feff, 6162, fdfe, ff]
94 SJIS-Mobile#DOCOMO: [80a1, 6162, 6380, a1]
96 SJIS-Mobile#KDDI: [80a1, 6162, 6380, a1]
[all …]
H A Dmb_ereg_search_xxx.phpt61 (SJIS) (10) ����
62 (SJIS) (5) abcde
63 (SJIS) (14) abdeabcf
64 (SJIS) (22) abc
65 (SJIS) (31) abcd
66 (SJIS) (5) �ϡ�
67 (SJIS) (10) ����
68 (SJIS) (5) abcde
69 (SJIS) (14) abdeabcf
70 (SJIS) (22) abc
[all …]
H A Dmb_convert_encoding.phpt24 $s = mb_convert_encoding($euc_jp, 'SJIS', 'EUC-JP');
25 print("SJIS: ".base64_encode($s)."\n"); // SJIS
33 $a = 'JIS,UTF-8,EUC-JP,SJIS';
39 $s = mb_convert_encoding($s, 'SJIS', $a);
40 print("SJIS: ".base64_encode($s)."\n"); // SJIS
49 $a = ['JIS', 'UTF-8', 'EUC-JP', 'SJIS'];
55 $s = mb_convert_encoding($s, 'SJIS', $a);
56 print("SJIS: ".base64_encode($s)."\n"); // SJIS
73 $s = mb_convert_encoding($s, 'SJIS', 'auto');
74 print("SJIS: ".base64_encode($s)."\n"); // SJIS
[all …]
H A Dpictogram1.phpt9 echo "SJIS-Mobile to Unicode\n";
10 var_dump(bin2hex(mb_convert_encoding("\xf8\x9f", "UCS-4BE", "SJIS-Mobile#DOCOMO")));
11 var_dump(bin2hex(mb_convert_encoding("\xf6\x60", "UCS-4BE", "SJIS-Mobile#KDDI")));
15 var_dump(bin2hex(mb_convert_encoding("\xf6\xec", "UCS-4BE", "SJIS-Mobile#KDDI")));
25 echo "Unicode to SJIS-Mobile\n";
82 echo "SJIS-Mobile to Unicode (Google) \n";
87 echo "Unicode (Google) to SJIS-Mobile\n";
104 SJIS-Mobile to Unicode
116 Unicode to SJIS-Mobile
158 SJIS-Mobile to Unicode (Google)
[all …]
H A Dmb_convert_encoding_basic.phpt23 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'JIS', 'SJIS')));
31 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS')));
35 echo "\n-- Convert to SJIS --\n";
36 echo "SJIS encoded string in base64:\n";
39 var_dump(base64_encode(mb_convert_encoding($jis_string, 'SJIS', 'JIS')));
40 var_dump(base64_encode(mb_convert_encoding($euc_jp_string, 'SJIS', 'EUC-JP')));
41 var_dump(base64_encode(mb_convert_encoding($utf8_string, 'SJIS', 'UTF-8')));
47 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'UTF-8', 'SJIS')));
72 -- Convert to SJIS --
73 SJIS encoded string in base64:
H A Dsjis_encoding.phpt24 * SJIS 0x5C is a Yen sign, and 0x7E is an overline.
35 * SJIS-encoded text. */
81 echo "Unicode -> SJIS conversion works on all valid characters\n";
85 echo "Unicode -> SJIS conversion works on all invalid characters\n";
87 testValidString("\xFF\x5E", "\x81\x60", 'UTF-16BE', 'SJIS', false);
88 echo "Other mappings from Unicode -> SJIS are OK\n";
99 SJIS verification and conversion works on all valid characters
100 SJIS verification and conversion works on all invalid characters
101 Unicode -> SJIS conversion works on all valid characters
102 Unicode -> SJIS conversion works on all invalid characters
[all …]
H A Dsjismac_encoding.phpt18 $fp = fopen(__DIR__ . '/data/MacJapanese-SJIS.txt', 'r+');
74 testAllValidChars($validChars, 'SJIS-mac', 'UTF-32BE');
80 testTruncatedChars($truncated, 'SJIS-mac', 'UTF-32BE', "\x00\x00\x00%");
83 testAllValidChars($fromUnicode, 'UTF-16BE', 'SJIS-mac', false);
84 echo "Unicode -> SJIS-mac conversion works on all valid characters\n";
88 echo "Unicode -> SJIS-mac conversion works on all invalid characters\n";
92 convertInvalidString("\x81", "%", "SJIS-mac", "UTF-8");
93 convertInvalidString("\x81\x20", "%", "SJIS-mac", "UTF-8");
94 convertInvalidString("\xED\x9F", "%", "SJIS-mac", "UTF-8");
101 Unicode -> SJIS-mac conversion works on all valid characters
[all …]
H A Dmb_convert_encoding_array.phpt35 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'JIS', 'SJIS')));
43 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS')));
47 echo "\n-- Convert to SJIS --\n";
48 echo "SJIS encoded string in base64:\n";
51 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'SJIS', 'JIS')));
52 var_dump(base64_encode_array(mb_convert_encoding($euc_jp_string, 'SJIS', 'EUC-JP')));
53 var_dump(base64_encode_array(mb_convert_encoding($utf8_string, 'SJIS', 'UTF-8')));
59 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'UTF-8', 'SJIS')));
124 -- Convert to SJIS --
125 SJIS encoded string in base64:
H A Dbug49536.phpt8 var_dump(mb_detect_encoding("A\x81", "SJIS", false));
10 var_dump(mb_detect_encoding("A\x81", "SJIS", true));
17 string(4) "SJIS"
H A Dcp932_encoding.phpt112 /* Now test 'SJIS-win' variant of CP932, which is really CP932 but with
115 * (which have conflicting uses), 'SJIS-win' maps them to appropriate
123 testAllValidChars($validChars, 'SJIS-win', 'UTF-16BE');
125 testValidString($cp932, $unicode, 'SJIS-win', 'UTF-16BE', false);
140 convertInvalidString("\x80", "%", "SJIS-win", "UTF-8");
141 convertInvalidString("\xEA", "%", "SJIS-win", "UTF-8");
142 convertInvalidString("\x81\x20", "%", "SJIS-win", "UTF-8");
143 convertInvalidString("\xEA\xA9", "%", "SJIS-win", "UTF-8");
151 SJIS-win verification and conversion works on all valid characters
152 SJIS-win verification and conversion works on all invalid characters
[all …]
H A Dmb_convert_encoding_array2.phpt47 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'JIS', 'SJIS')));
55 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS')));
59 echo "\n-- Convert to SJIS --\n";
60 echo "SJIS encoded string in base64:\n";
63 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'SJIS', 'JIS')));
64 var_dump(base64_encode_array(mb_convert_encoding($euc_jp_string, 'SJIS', 'EUC-JP')));
65 var_dump(base64_encode_array(mb_convert_encoding($utf8_string, 'SJIS', 'UTF-8')));
71 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'UTF-8', 'SJIS')));
148 -- Convert to SJIS --
149 SJIS encoded string in base64:
H A Dsjis_mobile_encodings.phpt16 * (The SJIS-Mobile encodings all use MS extensions) */
19 /* U+301C (WAVE DASH) converts to SJIS 0x8160 (WAVE DASH) */
21 /* U+2212 (MINUS SIGN) converts to SJIS 0x817C (FULLWIDTH HYPHEN-MINUS) */
23 /* U+203E (OVERLINE) converts to SJIS 0x8150 (FULLWIDTH MACRON) */
25 /* U+2016 (DOUBLE VERTICAL LINE) converts to SJIS 0x8161 (PARALLEL TO) */
27 /* U+00AF (MACRON) converts to SJIS 0x8150 (FULLWIDTH MACRON) */
29 /* U+00AC (NOT SIGN) converts to SJIS 0x81CA (FULLWIDTH NOT SIGN) */
31 /* U+00A5 (YEN SIGN) converts to SJIS 0x818F (FULLWIDTH YEN SIGN) */
35 /* U+00A2 (CENT SIGN) converts to SJIS 0x8191 (FULLWIDTH CENT SIGN) */
65 * Our implementation of CP932 prefers the F's, but for SJIS-Mobile,
[all …]
H A Dmb_detect_encoding.phpt9 // SJIS string (BASE64 encoded)
22 print("SJIS: " . mb_detect_encoding($sjis, 'SJIS') . "\n");
31 $a = ['UTF-8', 'EUC-JP', 'SJIS', 'JIS'];
34 print("SJIS: " . mb_detect_encoding($sjis, $a) . "\n");
38 'UTF-8', 'SJIS', 'GB2312',
80 print("SJIS: " . mb_detect_encoding($sjis) . "\n");
146 'SJIS',
320 SJIS: SJIS
329 SJIS: SJIS
336 SJIS
[all …]
H A Dmb_detect_order.phpt21 $r = mb_detect_order('SJIS,EUC-JP,JIS,UTF-8');
56 ASCII, JIS, UTF-8, EUC-JP, SJIS
58 SJIS, EUC-JP, JIS, UTF-8
H A Dmb_regex_encoding_variation2.phpt36 'SJIS',
38 'SJIS-win', /*20*/
181 string(4) "SJIS"
184 string(4) "SJIS"
191 string(4) "SJIS"
194 string(4) "SJIS"
196 string(4) "SJIS"
199 string(4) "SJIS"
201 string(4) "SJIS"
204 string(4) "SJIS"
H A Dmb_convert_variables.phpt15 // SJIS string (BASE64 encoded)
25 $encoding = mb_convert_variables('EUC-JP', 'SJIS', $s);
26 print("$encoding\n"); // SJIS
35 $encoding = mb_convert_variables('SJIS', 'EUC-JP', $s);
37 print(base64_encode($s)."\n"); // Converted to SJIS (base64 encoded)
138 SJIS
H A Dmb_http_output.phpt17 // Set HTTP output encoding to SJIS
18 $r = mb_http_output('SJIS');
59 SJIS
H A Dmb_internal_encoding_variation2.phpt32 'SJIS',
34 'SJIS-win', /*20*/
169 string(4) "SJIS"
172 string(4) "SJIS"
179 string(8) "SJIS-win"
182 string(8) "SJIS-win"
/PHP-8.1/ext/iconv/tests/
H A Diconv_basic.phpt22 var_dump(bin2hex(iconv('SJIS', 'EUC-JP', $sjis_string )));
25 echo "\n-- Convert to SJIS --\n";
26 echo "Expected SJIS encoded string in base64:\n";
29 var_dump(bin2hex(iconv('EUC-JP', 'SJIS', $euc_jp_string)));
30 var_dump(bin2hex(iconv('UTF-8', 'SJIS', $utf8_string)));
36 var_dump(bin2hex(iconv('SJIS', 'UTF-8', $sjis_string)));
51 -- Convert to SJIS --
52 Expected SJIS encoded string in base64:
H A Deucjp2sjis.phpt2 EUC-JP to SJIS
50 $str = iconv("EUC-JP", "SJIS", $str);
/PHP-8.1/ext/standard/tests/strings/
H A Dget_html_translation_table_basic9.phpt5 echo "*** Testing get_html_translation_table() : basic functionality/HTML5/SJIS ***\n";
10 $tt = get_html_translation_table($table, ENT_QUOTES | ENT_HTML5, "SJIS");
17 $tt = get_html_translation_table($table, ENT_COMPAT | ENT_HTML5, "SJIS");
22 $tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_HTML5, "SJIS");
27 $tt = get_html_translation_table($table, ENT_COMPAT, "SJIS");
34 $tt = get_html_translation_table($table, ENT_QUOTES | ENT_HTML5, "SJIS");
40 $tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_HTML5, "SJIS");
48 *** Testing get_html_translation_table() : basic functionality/HTML5/SJIS ***
/PHP-8.1/ext/gd/libgd/
H A Dgdkanji.c44 #define SJIS 6 macro
127 whatcode = SJIS; in DetectKanjiCode()
132 whatcode = SJIS; in DetectKanjiCode()
151 whatcode = SJIS; in DetectKanjiCode()
159 whatcode = SJIS; in DetectKanjiCode()
167 whatcode = SJIS; in DetectKanjiCode()
205 whatcode = SJIS; in DetectKanjiCode()
208 whatcode = SJIS; in DetectKanjiCode()
217 whatcode = SJIS; in DetectKanjiCode()
489 case SJIS: in do_check_and_conv()

Completed in 31 milliseconds

12