Home
last modified time | relevance | path

Searched refs:mb_substitute_character (Results 1 – 25 of 50) sorted by relevance

12

/PHP-8.1/ext/mbstring/tests/
H A Dmb_substitute_character_basic.phpt2 Test mb_substitute_character() function : basic functionality
11 var_dump( mb_substitute_character() );
12 var_dump( mb_substitute_character(66) );
13 var_dump( mb_substitute_character() );
14 var_dump( mb_substitute_character(1234) );
15 var_dump( mb_substitute_character() );
16 var_dump( mb_substitute_character('none') );
17 var_dump( mb_substitute_character() );
19 var_dump( mb_substitute_character('LoNg') );
20 var_dump( mb_substitute_character() );
[all …]
H A Dmb_substitute_character.phpt2 mb_substitute_character()
10 var_dump(mb_substitute_character(0x3044));
11 var_dump(mb_substitute_character());
14 var_dump(mb_substitute_character('long'));
15 var_dump(mb_substitute_character());
18 var_dump(mb_substitute_character('none'));
19 var_dump(mb_substitute_character());
22 var_dump(mb_substitute_character('entity'));
23 var_dump(mb_substitute_character());
27 var_dump(mb_substitute_character('BAD_NAME'));
[all …]
H A Dbug69079.phpt2 Bug #69079 (enhancement for mb_substitute_character)
9 var_dump(mb_substitute_character(0x1F600));
11 mb_substitute_character(0x3f); // Reset to '?', as the next call will fail
13 var_dump(mb_substitute_character(0xD800)); // Surrogate (illegal)
21 mb_substitute_character(0x63); // Reset to '?', as the next call will fail
23 mb_substitute_character(0x8fa1ef); // EUC-JP-2004 encoding of U+50AA (illegal)
29 mb_substitute_character(0x50aa);
36 mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
38 mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
H A Dmb_substitute_character_variation_strict_types.phpt2 Test mb_substitute_character() function : usage variation
9 echo "*** Testing mb_substitute_character(): various types in strict typing mode ***\n";
100 var_dump( mb_substitute_character($value) );
110 *** Testing mb_substitute_character(): various types in strict typing mode ***
118 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
120 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|in…
122 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|in…
124 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|in…
142 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|in…
144 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|in…
[all …]
H A Dmb_substitute_character_variation2.phpt2 Test mb_substitute_character() function : variation unmappable out char for convert encoding
7 echo "*** Testing mb_substitute_character() : variation ***\n";
14 mb_substitute_character(66); //'B' in ISO-8859-1, x42
16 mb_substitute_character("none"); //no substitution
18 mb_substitute_character(280); //not valid in ISO-8859-1
24 *** Testing mb_substitute_character() : variation ***
H A Dmb_substitute_character_variation_weak_types.phpt2 Test mb_substitute_character() function : usage variation
7 echo "*** Testing mb_substitute_character(): various types in weak typing mode ***\n";
98 var_dump( mb_substitute_character($value) );
108 *** Testing mb_substitute_character(): various types in weak typing mode ***
116 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
124 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) is not a valid codepoint
126 ValueError: mb_substitute_character(): Argument #1 ($substitute_character) must be "none", "long", …
134 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|in…
136 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|in…
138 TypeError: mb_substitute_character(): Argument #1 ($substitute_character) must be of type string|in…
[all …]
H A Dbug69086.phpt7 mb_substitute_character(0xfffd);
13 mb_substitute_character(0xfffd);
H A Ducs2_encoding.phpt8 mb_substitute_character(0x25);
11 mb_substitute_character("long");
H A Ducs4_encoding.phpt8 mb_substitute_character(0x25);
11 mb_substitute_character("long");
H A Darmscii8_encoding.phpt13 mb_substitute_character(0x25); // '%'
32 mb_substitute_character("long");
H A Dbug76319.phpt7 mb_substitute_character(0xFFFD);
H A Deuc_tw_encoding.phpt14 mb_substitute_character(0x25); // '%'
29 mb_substitute_character("long");
H A Dbig5_encoding.phpt13 mb_substitute_character(0x25); // '%'
38 mb_substitute_character("long");
H A Dother_encodings.phpt11 mb_substitute_character(0x25);
36 mb_substitute_character("long");
H A Duhc_encoding.phpt15 mb_substitute_character("long");
H A Dcp1251_encoding.phpt15 mb_substitute_character("long");
H A Dcp1254_encoding.phpt15 mb_substitute_character("long");
H A Deuc_kr_encoding.phpt15 mb_substitute_character("long");
H A Deuc_cn_encoding.phpt15 mb_substitute_character("long");
H A Deucjp_ms_encoding.phpt13 mb_substitute_character(0x25); // '%'
58 mb_substitute_character("long");
H A Dbug65045.phpt17 mb_substitute_character(0xFFFD);
H A Dcp950_encoding.phpt13 mb_substitute_character(0x25); // '%'
80 mb_substitute_character("long");
H A Dsjis2004_encoding.phpt13 mb_substitute_character(0x25); // '%'
66 mb_substitute_character("long");
H A Deucjp_2004_encoding.phpt13 mb_substitute_character(0x25); // '%'
74 mb_substitute_character("long");
H A Diso2022kr_encoding.phpt12 mb_substitute_character(0x25); // '%'
100 mb_substitute_character("long");

Completed in 25 milliseconds

12