/php-src/ext/mbstring/tests/ |
H A D | sjis2004_encoding.phpt | 2 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 D | mb_strlen.phpt | 28 echo "== SJIS ==\n"; 30 print mb_strlen($sjis,'SJIS') . "\n"; 49 echo "== SJIS-2004 ==\n"; 53 echo "== SJIS-Mobile#DOCOMO ==\n"; 57 echo "== SJIS-Mobile#KDDI ==\n"; 61 echo "== SJIS-Mobile#SoftBank ==\n"; 111 == SJIS == 125 == SJIS-2004 == 128 == SJIS-Mobile#DOCOMO == 131 == SJIS-Mobile#KDDI == [all …]
|
H A D | mb_ereg_search_xxx.phpt | 61 (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 D | mb_convert_encoding.phpt | 24 $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 D | mb_ucfirst_lcfirst.phpt | 57 echo "== SJIS ==\n"; 58 var_dump(bin2hex(mb_ucfirst(mb_convert_encoding("ebi", "SJIS", "UTF-8"), "SJIS"))); 59 var_dump(bin2hex(mb_lcfirst(mb_convert_encoding("EBI", "SJIS", "UTF-8"), "SJIS"))); 60 var_dump(bin2hex(mb_ucfirst(hex2bin("8471"), "SJIS"))); /* б */ 61 var_dump(bin2hex(mb_lcfirst(hex2bin("8441"), "SJIS"))); /* Б */ 62 var_dump(bin2hex(mb_ucfirst(hex2bin("83bf"), "SJIS"))); /* α */ 63 var_dump(bin2hex(mb_lcfirst(hex2bin("839f"), "SJIS"))); /* Α */ 64 var_dump(bin2hex(mb_lcfirst(hex2bin("82a0"), "SJIS"))); /* あ */ 65 var_dump(bin2hex(mb_ucfirst(hex2bin("83bf8471"), "SJIS"))); 66 var_dump(bin2hex(mb_lcfirst(hex2bin("839f8441"), "SJIS"))); [all …]
|
H A D | pictogram1.phpt | 9 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 D | mb_str_split_jp.phpt | 18 "SJIS", 74 foreach (['SJIS', 'SJIS-2004', 'MacJapanese', 'SJIS-Mobile#DOCOMO', 'SJIS-Mobile#KDDI', 'SJIS-Mobil… 105 SJIS: 93fa 967b 111 == Regression test for SJIS byte 0x80 == 112 SJIS: [80a1, 6162, 6380, a1] 113 SJIS: [6162, 63fd, feff, 6162, fdfe, ff] 114 SJIS-2004: [80a1, 6162, 6380, a1] 115 SJIS-2004: [6162, 63fd, feff, 6162, fdfe, ff] 118 SJIS-Mobile#DOCOMO: [80a1, 6162, 6380, a1] 120 SJIS-Mobile#KDDI: [80a1, 6162, 6380, a1] [all …]
|
H A D | sjismac_encoding.phpt | 18 $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"; 106 convertInvalidString("\x81", "%", "SJIS-mac", "UTF-8"); 107 convertInvalidString("\x81\x20", "%", "SJIS-mac", "UTF-8"); 108 convertInvalidString("\xED\x9F", "%", "SJIS-mac", "UTF-8"); 115 Unicode -> SJIS-mac conversion works on all valid characters [all …]
|
H A D | bug49536.phpt | 8 var_dump(mb_detect_encoding("A\x81", "SJIS", false)); 10 var_dump(mb_detect_encoding("A\x81", "SJIS", true)); 18 echo "== INVALID STRING - UTF-8 and SJIS ==\n"; 19 var_dump(mb_detect_encoding("\xFF\xFF", ['SJIS', 'UTF-8'], true)); 22 string(4) "SJIS" 26 == INVALID STRING - UTF-8 and SJIS ==
|
H A D | mb_substr.phpt | 12 // SJIS 37 echo "SJIS:\n"; 47 echo "SJIS-2004:\n"; 55 echo "SJIS-Mobile#DOCOMO:\n"; 59 echo "SJIS-Mobile#KDDI:\n"; 63 echo "SJIS-Mobile#SoftBank:\n"; 148 SJIS: 157 SJIS-2004: 163 SJIS-Mobile#DOCOMO: 166 SJIS-Mobile#KDDI: [all …]
|
H A D | mb_convert_encoding_basic.phpt | 23 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 D | sjis_encoding.phpt | 24 * 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 D | mb_convert_encoding_array.phpt | 35 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 D | sjis_mobile_encodings.phpt | 16 * (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) */ 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, 292 // be converted to SJIS and should be treated as an error [all …]
|
H A D | cp932_encoding.phpt | 112 /* 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"); 153 SJIS-win verification and conversion works on all valid characters 154 SJIS-win verification and conversion works on all invalid characters [all …]
|
H A D | mb_http_input_multi_post.phpt | 9 input_encoding=UTF-8,SJIS,EUC-JP,ISO-8859-1 36 string(4) "SJIS" 42 string(28) "UTF-8,SJIS,EUC-JP,ISO-8859-1"
|
H A D | mb_convert_encoding_array2.phpt | 47 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 D | mb_detect_order.phpt | 21 $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 D | mb_regex_encoding_variation2.phpt | 36 '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 D | mb_http_output.phpt | 17 // Set HTTP output encoding to SJIS 18 $r = mb_http_output('SJIS'); 59 SJIS
|
H A D | mb_internal_encoding_variation2.phpt | 32 'SJIS', 34 'SJIS-win', /*20*/ 169 string(4) "SJIS" 172 string(4) "SJIS" 179 string(8) "SJIS-win" 182 string(8) "SJIS-win"
|
/php-src/ext/iconv/tests/ |
H A D | iconv_basic.phpt | 22 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 D | eucjp2sjis.phpt | 2 EUC-JP to SJIS 50 $str = iconv("EUC-JP", "SJIS", $str);
|
/php-src/ext/standard/tests/strings/ |
H A D | get_html_translation_table_basic9.phpt | 5 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-src/ext/gd/libgd/ |
H A D | gdkanji.c | 44 #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()
|