/PHP-5.4/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 143 EUC-JP 145 EUC-JP 147 EUC-JP 150 EUC-JP 152 EUC-JP 155 EUC-JP 157 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"); 104 EUC-JP: EUC-JP 105 EUC-JP: EUC-JP 108 EUC-JP: EUC-JP 112 EUC-JP: EUC-JP 115 INT: EUC-JP 116 EUC-JP: EUC-JP [all …]
|
H A D | mb_strpos.phpt | 17 // EUC-JP - With encoding parameter 34 $r = mb_strpos($euc_jp, b'���ܸ�', -15, 'EUC-JP'); 36 $r = mb_strpos($euc_jp, b'0', -15, 'EUC-JP'); 38 $r = mb_strpos($euc_jp, 3, -15, 'EUC-JP'); 40 $r = mb_strpos($euc_jp, 0, -15, 'EUC-JP'); 67 $r = mb_strpos($euc_jp, b'�ڹ��', 0, 'EUC-JP'); 73 // EUC-JP - No encoding parameter 87 // EUC-JP - No offset and encoding parameter 105 $r = mb_strpos($euc_jp,'','EUC-JP'); 107 $r = mb_strpos($euc_jp, $t_ary, 'EUC-JP'); [all …]
|
H A D | mb_strimwidth.phpt | 14 // EUC-JP 15 $euc_jp = '0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����'; 17 print "1: ". mb_strimwidth($euc_jp, 0, 15,'...','EUC-JP') . "\n"; 18 print "2: ". mb_strimwidth($euc_jp, 0, 100,'...','EUC-JP') . "\n"; 19 print "3: ". mb_strimwidth($euc_jp, 15, 100,'...','EUC-JP') . "\n"; 21 $str = mb_strimwidth($euc_jp,-22, 100,'...','EUC-JP'); 24 $str = mb_strimwidth($euc_jp, 100, -10,'...','EUC-JP'); 27 $str = mb_strimwidth($euc_jp, -100, 10,'...','EUC-JP'); 34 2: 0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ����� 35 3: ��EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����
|
H A D | mb_ereg_search_xxx.phpt | 39 (EUC-JP) (10) ���� 40 (EUC-JP) (5) abcde 41 (EUC-JP) (14) abdeabcf 42 (EUC-JP) (22) abc 43 (EUC-JP) (31) abcd 44 (EUC-JP) (5) �ϡ� 45 (EUC-JP) (10) ���� 46 (EUC-JP) (5) abcde 47 (EUC-JP) (14) abdeabcf 48 (EUC-JP) (22) abc [all …]
|
H A D | mb_stripos.phpt | 20 // EUC-JP - With encoding parameter 37 $r = mb_stripos($euc_jp,b'���ܸ�', -15, 'EUC-JP'); 41 $r = mb_stripos($euc_jp, 3, -15, 'EUC-JP'); 43 $r = mb_stripos($euc_jp, 0, -15, 'EUC-JP'); 45 $r = mb_stripos($euc_jp,b'���ܸ�', -50, 'EUC-JP'); 70 $r = mb_stripos($euc_jp, b'�ڹ��', 0, 'EUC-JP'); 76 // EUC-JP - No encoding parameter 90 // EUC-JP - No offset and encoding parameter 108 $r = mb_stripos($euc_jp,'','EUC-JP'); 110 $r = mb_stripos($euc_jp, $t_ary, 'EUC-JP'); [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'); 30 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'); 81 == 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'; 51 ASCII, JIS, UTF-8, EUC-JP, SJIS 53 SJIS, EUC-JP, JIS, UTF-8 55 ASCII, JIS, EUC-JP, UTF-8 58 ASCII, JIS, EUC-JP, UTF-8 60 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 | 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 | 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 | 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 | mb_http_output.phpt | 36 // Set HTTP output encoding to EUC-JP 37 $r = mb_http_output('EUC-JP'); 73 EUC-JP 77 EUC-JP 80 EUC-JP 83 EUC-JP
|
H A D | zend_multibyte-09.phpt | 12 declare(encoding="EUC-JP"); 13 // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it 15 // valid EUC-encoded character "鴻".
|
/PHP-5.4/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-5.4/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));
|