Home
last modified time | relevance | path

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

123

/php-src/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…
126 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…
[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 Darmscii8_encoding.phpt13 mb_substitute_character(0x25); // '%'
32 mb_substitute_character("long");
37 mb_substitute_character(0x1234);
H A Dcp1254_encoding.phpt15 mb_substitute_character("long");
20 mb_substitute_character(0x1234);
H A Ducs2_encoding.phpt8 mb_substitute_character(0x25);
16 mb_substitute_character("long");
H A Dbug76319.phpt7 mb_substitute_character(0xFFFD);
H A Dbig5_encoding.phpt13 mb_substitute_character(0x25); // '%'
38 mb_substitute_character("long");
H A Diso8859_encodings.phpt20 mb_substitute_character("long");
25 mb_substitute_character(0x1234);
H A Ducs4_encoding.phpt8 mb_substitute_character(0x25);
24 mb_substitute_character("long");
H A Deuc_tw_encoding.phpt15 mb_substitute_character(0x25); // '%'
30 mb_substitute_character("long");
H A Dcp1251_encoding.phpt15 mb_substitute_character("long");
H A Dcp850_encoding.phpt14 mb_substitute_character(0x1234);
H A Dcp866_encoding.phpt14 mb_substitute_character(0x1234);
H A Dcp1252_encoding.phpt15 mb_substitute_character(0x1234);
H A Deuc_kr_encoding.phpt15 mb_substitute_character("long");
H A Dkoi8r_encoding.phpt14 mb_substitute_character(0x1234);
H A Dkoi8u_encoding.phpt14 mb_substitute_character(0x1234);
H A Dbug65045.phpt13 mb_substitute_character(0xFFFD);
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");

Completed in 14 milliseconds

123