Home
last modified time | relevance | path

Searched refs:EUC (Results 1 – 25 of 85) sorted by relevance

1234

/PHP-7.4/ext/mbstring/tests/
H A Dmb_convert_variables.phpt19 // 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 Dmb_convert_encoding.phpt16 // EUC-JP string
24 print("EUC-JP: $s\n"); // EUC-JP
28 print("EUC-JP: $s\n"); // EUC-JP
42 $a = 'JIS,UTF-8,EUC-JP,SJIS';
45 print("EUC-JP: $s\n"); // EUC-JP
62 print("EUC-JP: $s\n"); // EUC-JP
78 print("EUC-JP: $s\n"); // EUC-JP
93 print("INT: $s\n"); // EUC-JP
95 $s = mb_convert_encoding('', 'EUC-JP');
96 print("EUC-JP: $s\n"); // SJIS
[all …]
H A Dmb_detect_encoding.phpt15 // EUC-JP string
31 print("EUC-JP: $s\n");
35 print("EUC-JP: $s\n");
51 print("EUC-JP: $s\n");
100 EUC-JP: EUC-JP
101 EUC-JP: EUC-JP
104 EUC-JP: EUC-JP
108 EUC-JP: EUC-JP
111 INT: EUC-JP
112 EUC-JP: EUC-JP
[all …]
H A Dmb_strimwidth.phpt11 // EUC-JP
12 $euc_jp = '0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����';
14 print "String width: ".mb_strwidth($euc_jp,'EUC-JP')."\n";
16 print "1: ". mb_strimwidth($euc_jp, 0, 15,'...','EUC-JP') . "\n";
20 print "5: ". mb_strimwidth($euc_jp, 38, 5,'...','EUC-JP') . "\n";
24 $str = mb_strimwidth($euc_jp, 0, -100,'...','EUC-JP');
27 $str = mb_strimwidth($euc_jp, 100, 10,'...','EUC-JP');
30 $str = mb_strimwidth($euc_jp, -100, 10,'...','EUC-JP');
33 $str = mb_strimwidth($euc_jp, -10, -12,'...','EUC-JP');
40 2: 0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ������ܸ�����ݽ�����
[all …]
H A Dmb_stripos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
19 // EUC-JP - With encoding parameter
47 $r = mb_stripos($euc_jp, '���ܸ�', 44, 'EUC-JP');
49 $r = mb_stripos($euc_jp, '���ܸ�', 50, 'EUC-JP');
51 $r = mb_stripos($euc_jp, '0', 50, 'EUC-JP');
92 $r = mb_stripos($euc_jp, '�ڹ��', 0, 'EUC-JP');
98 // EUC-JP - No encoding parameter
113 // EUC-JP - No offset and encoding parameter
132 $r = mb_stripos($euc_jp,'','EUC-JP');
134 $r = mb_stripos($euc_jp, $t_ary, 'EUC-JP');
[all …]
H A Dmb_strpos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
19 // EUC-JP - With encoding parameter
47 $r = mb_strpos($euc_jp, '���ܸ�', 44, 'EUC-JP');
49 $r = mb_strpos($euc_jp, '���ܸ�', 50, 'EUC-JP');
51 $r = mb_strpos($euc_jp, '0', 50, 'EUC-JP');
92 $r = mb_strpos($euc_jp, '�ڹ��', 0, 'EUC-JP');
98 // EUC-JP - No encoding parameter
113 // EUC-JP - No offset and encoding parameter
132 $r = mb_strpos($euc_jp,'','EUC-JP');
134 $r = mb_strpos($euc_jp, $t_ary, 'EUC-JP');
[all …]
H A Dmb_ereg_search_xxx.phpt38 (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 Dmb_strwidth.phpt12 // 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 Dmb_strcut.phpt13 // 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 Dmb_substr.phpt14 // EUC-JP
15 $euc_jp = '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 Dmb_regex_encoding_variation2.phpt188 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 Dmb_strstr.phpt8 return mb_convert_encoding($utf8str, "EUC-JP", "UTF-8");
12 return mb_convert_encoding($eucjpstr, "UTF-8", "EUC-JP");
18 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), false, "EUC-JP")));
19 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), true, "EUC-JP")));
20 mb_internal_encoding("EUC-JP");
H A Dmb_strlen.phpt18 $euc_jp = '0123����ʸ��������ܸ�Ǥ���EUC-JP��ȤäƤ��ޤ���0123���ܸ�����ݽ�����';
26 // EUC-JP
27 echo "== EUC-JP ==\n";
28 print mb_strlen($euc_jp,'EUC-JP') . "\n";
29 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
34 $sjis = mb_convert_encoding($euc_jp, 'SJIS','EUC-JP');
42 $jis = mb_convert_encoding($euc_jp, 'JIS','EUC-JP');
50 $utf8 = mb_convert_encoding($euc_jp, 'UTF-8','EUC-JP');
67 mb_internal_encoding('EUC-JP');
77 == EUC-JP ==
H A Dmb_detect_order.phpt21 $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 Dmb_convert_encoding_basic.phpt32 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 Dmb_output_handler_euc_jp.phpt2 mb_output_handler() (EUC-JP)
9 // EUC-JP
11 mb_http_output('EUC-JP') or print("mb_http_output() failed\n");
H A Dbug26639.phpt9 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 Dmb_convert_encoding_array.phpt44 var_dump(base64_encode_array(mb_convert_encoding($euc_jp_string, 'JIS', 'EUC-JP')));
47 echo "\n-- Convert to EUC-JP --\n";
48 echo "EUC-JP encoded string in base64:\n";
51 var_dump(base64_encode_array(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS')));
52 var_dump(base64_encode_array(mb_convert_encoding($jis_string, 'EUC-JP', 'JIS')));
53 var_dump(base64_encode_array(mb_convert_encoding($utf8_string, 'EUC-JP', 'UTF-8')));
60 var_dump(base64_encode_array(mb_convert_encoding($euc_jp_string, 'SJIS', 'EUC-JP')));
69 var_dump(base64_encode_array(mb_convert_encoding($euc_jp_string, 'UTF-8', 'EUC-JP')));
104 -- Convert to EUC-JP --
105 EUC-JP encoded string in base64:
H A Dzend_multibyte-05.phpt7 zend.script_encoding=EUC-JP
11 // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
13 // valid EUC-encoded character "鴻".
H A Dzend_multibyte-09.phpt11 declare(encoding="EUC-JP");
12 // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
14 // valid EUC-encoded character "鴻".
/PHP-7.4/tests/basic/
H A Dencoding.phpt16 var_dump(ini_set('input_encoding', 'EUC-JP'));
17 var_dump(ini_set('internal_encoding', 'EUC-JP'));
18 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.4/ext/standard/tests/strings/
H A Dhtmlentities08.phpt2 htmlentities() test 8 (mbstring / EUC-JP)
5 internal_encoding=EUC-JP
11 mb_internal_encoding('EUC-JP');
16 EUC-JP
H A Dhtmlentities04.phpt2 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" );
/PHP-7.4/ext/iconv/tests/
H A Diconv_basic.phpt26 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 Deucjp2iso2022jp.phpt2 EUC-JP to ISO-2022-JP
9 /* charset=EUC-JP */
22 echo hexdump(iconv("EUC-JP", "ISO-2022-JP", $str));

Completed in 67 milliseconds

1234