Home
last modified time | relevance | path

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

1234

/PHP-7.3/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_strimwidth.phpt14 // 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 Dmb_convert_encoding.phpt19 // 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 Dmb_detect_encoding.phpt18 // 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 Dmb_stripos.phpt17 $slen = mb_strlen($euc_jp, 'EUC-JP');
20 // EUC-JP - With encoding parameter
48 $r = mb_stripos($euc_jp, '���ܸ�', 44, 'EUC-JP');
50 $r = mb_stripos($euc_jp, '���ܸ�', 50, 'EUC-JP');
52 $r = mb_stripos($euc_jp, '0', 50, 'EUC-JP');
93 $r = mb_stripos($euc_jp, '�ڹ��', 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 Dmb_strpos.phpt17 $slen = mb_strlen($euc_jp, 'EUC-JP');
20 // EUC-JP - With encoding parameter
48 $r = mb_strpos($euc_jp, '���ܸ�', 44, 'EUC-JP');
50 $r = mb_strpos($euc_jp, '���ܸ�', 50, 'EUC-JP');
52 $r = mb_strpos($euc_jp, '0', 50, 'EUC-JP');
93 $r = mb_strpos($euc_jp, '�ڹ��', 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 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_strlen.phpt19 $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 Dmb_strstr.phpt10 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 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.phpt12 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-7.3/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.3/ext/standard/tests/strings/
H A Dhtmlentities08.phpt2 htmlentities() test 8 (mbstring / EUC-JP)
6 mbstring.internal_encoding=EUC-JP
12 mb_internal_encoding('EUC-JP');
17 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.3/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
10 /* charset=EUC-JP */
23 echo hexdump(iconv("EUC-JP", "ISO-2022-JP", $str));

Completed in 35 milliseconds

1234