/PHP-7.1/ext/mbstring/tests/ |
H A D | mb_convert_variables.phpt | 19 // EUC-JP string 36 print("$encoding\n"); // EUC-JP 41 print("$encoding\n"); // EUC-JP 142 EUC-JP 144 EUC-JP 146 EUC-JP 149 EUC-JP 151 EUC-JP 154 EUC-JP 156 EUC-JP [all …]
|
H A D | mb_strimwidth.phpt | 14 // EUC-JP 15 $euc_jp = '0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����'; 17 print "String width: ".mb_strwidth($euc_jp,'EUC-JP')."\n"; 19 print "1: ". mb_strimwidth($euc_jp, 0, 15,'...','EUC-JP') . "\n"; 23 print "5: ". mb_strimwidth($euc_jp, 38, 5,'...','EUC-JP') . "\n"; 27 $str = mb_strimwidth($euc_jp, 0, -100,'...','EUC-JP'); 30 $str = mb_strimwidth($euc_jp, 100, 10,'...','EUC-JP'); 33 $str = mb_strimwidth($euc_jp, -100, 10,'...','EUC-JP'); 36 $str = mb_strimwidth($euc_jp, -10, -12,'...','EUC-JP'); 43 2: 0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ����� [all …]
|
H A D | mb_convert_encoding.phpt | 19 // EUC-JP string 27 print("EUC-JP: $s\n"); // EUC-JP 31 print("EUC-JP: $s\n"); // EUC-JP 45 $a = 'JIS,UTF-8,EUC-JP,SJIS'; 48 print("EUC-JP: $s\n"); // EUC-JP 65 print("EUC-JP: $s\n"); // EUC-JP 81 print("EUC-JP: $s\n"); // EUC-JP 96 print("INT: $s\n"); // EUC-JP 98 $s = mb_convert_encoding('', 'EUC-JP'); 99 print("EUC-JP: $s\n"); // SJIS [all …]
|
H A D | mb_detect_encoding.phpt | 18 // EUC-JP string 34 print("EUC-JP: $s\n"); 38 print("EUC-JP: $s\n"); 54 print("EUC-JP: $s\n"); 103 EUC-JP: EUC-JP 104 EUC-JP: EUC-JP 107 EUC-JP: EUC-JP 111 EUC-JP: EUC-JP 114 INT: EUC-JP 115 EUC-JP: EUC-JP [all …]
|
H A D | mb_strpos.phpt | 17 $slen = mb_strlen($euc_jp, 'EUC-JP'); 20 // EUC-JP - With encoding parameter 48 $r = mb_strpos($euc_jp, b'���ܸ�', 44, 'EUC-JP'); 50 $r = mb_strpos($euc_jp, b'���ܸ�', 50, 'EUC-JP'); 54 $r = mb_strpos($euc_jp, 3, 50, 'EUC-JP'); 93 $r = mb_strpos($euc_jp, b'�ڹ��', 0, 'EUC-JP'); 99 // EUC-JP - No encoding parameter 114 // EUC-JP - No offset and encoding parameter 133 $r = mb_strpos($euc_jp,'','EUC-JP'); 135 $r = mb_strpos($euc_jp, $t_ary, 'EUC-JP'); [all …]
|
H A D | mb_stripos.phpt | 17 $slen = mb_strlen($euc_jp, 'EUC-JP'); 20 // EUC-JP - With encoding parameter 48 $r = mb_stripos($euc_jp, b'���ܸ�', 44, 'EUC-JP'); 50 $r = mb_stripos($euc_jp, b'���ܸ�', 50, 'EUC-JP'); 54 $r = mb_stripos($euc_jp, 3, 50, 'EUC-JP'); 93 $r = mb_stripos($euc_jp, b'�ڹ��', 0, 'EUC-JP'); 99 // EUC-JP - No encoding parameter 114 // EUC-JP - No offset and encoding parameter 133 $r = mb_stripos($euc_jp,'','EUC-JP'); 135 $r = mb_stripos($euc_jp, $t_ary, 'EUC-JP'); [all …]
|
H A D | mb_ereg_search_xxx.phpt | 38 (EUC-JP) (10) ���� 39 (EUC-JP) (5) abcde 40 (EUC-JP) (14) abdeabcf 41 (EUC-JP) (22) abc 42 (EUC-JP) (31) abcd 43 (EUC-JP) (5) �ϡ� 44 (EUC-JP) (10) ���� 45 (EUC-JP) (5) abcde 46 (EUC-JP) (14) abdeabcf 47 (EUC-JP) (22) abc [all …]
|
H A D | mb_strwidth.phpt | 12 // EUC-JP 13 $euc_jp = '0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����'; 15 print "1: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; 18 print "2: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; 19 print "3: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; 21 print "4: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; 23 $str = mb_strwidth($euc_jp, 100, -10,'...','EUC-JP'); 26 $str = mb_strwidth($euc_jp, -100, 10,'...','EUC-JP');
|
H A D | mb_strcut.phpt | 13 // EUC-JP 14 $euc_jp = '0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����'; 16 print mb_strcut($euc_jp, 6, 5,'EUC-JP') . "\n"; 17 print mb_strcut($euc_jp, 0, 100,'EUC-JP') . "\n"; 19 $str = mb_strcut($euc_jp, 100, 10,'EUC-JP'); 22 $str = mb_strcut($euc_jp, -100, 10,'EUC-JP'); 29 0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����
|
H A D | mb_substr.phpt | 14 // EUC-JP 15 $euc_jp = b'0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����'; 17 print "1: ". bin2hex(mb_substr($euc_jp, 10, 10,'EUC-JP')) . "\n"; 18 print "2: ". bin2hex(mb_substr($euc_jp, 0, 100,'EUC-JP')) . "\n"; 20 $str = mb_substr($euc_jp, 100, 10,'EUC-JP'); 24 $str = mb_substr($euc_jp, -100, 10,'EUC-JP');
|
H A D | mb_regex_encoding_variation2.phpt | 188 string(6) "EUC-JP" 191 string(6) "EUC-JP" 198 string(6) "EUC-JP" 201 string(6) "EUC-JP" 343 string(6) "EUC-CN" 346 string(6) "EUC-CN" 350 string(6) "EUC-CN" 353 string(6) "EUC-CN" 357 string(6) "EUC-CN" 360 string(6) "EUC-CN" [all …]
|
H A D | mb_strlen.phpt | 19 $euc_jp = '0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ���0123���ܸ�����ݽ�����'; 27 // EUC-JP 28 echo "== EUC-JP ==\n"; 29 print mb_strlen($euc_jp,'EUC-JP') . "\n"; 30 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n"); 35 $sjis = mb_convert_encoding($euc_jp, 'SJIS','EUC-JP'); 43 $jis = mb_convert_encoding($euc_jp, 'JIS','EUC-JP'); 51 $utf8 = mb_convert_encoding($euc_jp, 'UTF-8','EUC-JP'); 68 mb_internal_encoding('EUC-JP'); 80 == EUC-JP ==
|
H A D | mb_strstr.phpt | 10 return mb_convert_encoding($utf8str, "EUC-JP", "UTF-8"); 14 return mb_convert_encoding($eucjpstr, "UTF-8", "EUC-JP"); 20 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), false, "EUC-JP"))); 21 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), true, "EUC-JP"))); 22 mb_internal_encoding("EUC-JP");
|
H A D | mb_detect_order.phpt | 21 $r = mb_detect_order('SJIS,EUC-JP,JIS,UTF-8'); 29 $a[] = 'EUC-JP'; 50 ASCII, JIS, UTF-8, EUC-JP, SJIS 52 SJIS, EUC-JP, JIS, UTF-8 54 ASCII, JIS, EUC-JP, UTF-8 57 ASCII, JIS, EUC-JP, UTF-8 59 ASCII, JIS, EUC-JP, UTF-8
|
H A D | mb_convert_encoding_basic.phpt | 32 var_dump(base64_encode(mb_convert_encoding($euc_jp_string, 'JIS', 'EUC-JP'))); 35 echo "\n-- Convert to EUC-JP --\n"; 36 echo "EUC-JP encoded string in base64:\n"; 39 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS'))); 40 var_dump(base64_encode(mb_convert_encoding($jis_string, 'EUC-JP', 'JIS'))); 41 var_dump(base64_encode(mb_convert_encoding($utf8_string, 'EUC-JP', 'UTF-8'))); 48 var_dump(base64_encode(mb_convert_encoding($euc_jp_string, 'SJIS', 'EUC-JP'))); 57 var_dump(base64_encode(mb_convert_encoding($euc_jp_string, 'UTF-8', 'EUC-JP'))); 72 -- Convert to EUC-JP -- 73 EUC-JP encoded string in base64:
|
H A D | mb_output_handler_euc_jp.phpt | 2 mb_output_handler() (EUC-JP) 9 // EUC-JP 11 mb_http_output('EUC-JP') or print("mb_http_output() failed\n");
|
H A D | bug26639.phpt | 9 mb_convert_variables("EUC-JP", "Shift_JIS", $b); 17 mb_convert_variables("EUC-JP", "Shift_JIS", $b); 26 mb_convert_variables("EUC-JP", "Shift_JIS", $c); 36 mb_convert_variables("EUC-JP", "Shift_JIS", $c); 46 mb_convert_variables("EUC-JP", "Shift_JIS", $c); 56 mb_convert_variables("EUC-JP", "Shift_JIS", $c); 66 mb_convert_variables("EUC-JP", "Shift_JIS", $c);
|
H A D | zend_multibyte-05.phpt | 6 zend.script_encoding=EUC-JP 10 // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it 12 // valid EUC-encoded character "鴻".
|
H A D | zend_multibyte-09.phpt | 10 declare(encoding="EUC-JP"); 11 // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it 13 // valid EUC-encoded character "鴻".
|
/PHP-7.1/tests/basic/ |
H A D | encoding.phpt | 17 var_dump(ini_set('input_encoding', 'EUC-JP')); 18 var_dump(ini_set('internal_encoding', 'EUC-JP')); 19 var_dump(ini_set('output_encoding', 'EUC-JP')); 36 string(6) "EUC-JP" 37 string(6) "EUC-JP" 38 string(6) "EUC-JP"
|
/PHP-7.1/ext/standard/tests/strings/ |
H A D | htmlentities08.phpt | 2 htmlentities() test 8 (mbstring / EUC-JP) 6 mbstring.internal_encoding=EUC-JP 12 mb_internal_encoding('EUC-JP'); 17 EUC-JP
|
H A D | htmlentities04.phpt | 2 htmlentities() test 4 (setlocale / ja_JP.EUC-JP) 5 $result = (bool)setlocale(LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP"); 6 if (!$result || preg_match('/EUC[^a-zA-Z]*JP/i', setlocale(LC_CTYPE, 0)) == 0) { 16 setlocale( LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP" );
|
H A D | htmlentities13.phpt | 2 htmlentities() test 13 (default_charset / EUC-JP) 6 default_charset=EUC-JP 14 EUC-JP
|
/PHP-7.1/ext/iconv/tests/ |
H A D | iconv_basic.phpt | 26 echo "\n-- Convert to EUC-JP --\n"; 27 echo "Expected EUC-JP encoded string in base64:\n"; 30 var_dump(bin2hex(iconv('SJIS', 'EUC-JP', $sjis_string ))); 31 var_dump(bin2hex(iconv('UTF-8', 'EUC-JP', $utf8_string))); 37 var_dump(bin2hex(iconv('EUC-JP', 'SJIS', $euc_jp_string))); 45 var_dump(bin2hex(iconv('EUC-JP', 'UTF-8', $euc_jp_string))); 52 -- Convert to EUC-JP -- 53 Expected EUC-JP encoded string in base64:
|
H A D | eucjp2iso2022jp.phpt | 2 EUC-JP to ISO-2022-JP 10 /* charset=EUC-JP */ 23 echo hexdump(iconv("EUC-JP", "ISO-2022-JP", $str));
|