Home
last modified time | relevance | path

Searched refs:encoding (Results 1 – 25 of 941) sorted by relevance

12345678910>>...38

/PHP-8.0/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.c206 const mbfl_encoding *encoding; in mbfl_name2encoding() local
216 return encoding; in mbfl_name2encoding()
225 return encoding; in mbfl_name2encoding()
237 return encoding; in mbfl_name2encoding()
250 const mbfl_encoding *encoding; in mbfl_no2encoding() local
256 return encoding; in mbfl_no2encoding()
269 if (encoding == NULL) { in mbfl_name2no_encoding()
282 if (encoding == NULL) { in mbfl_no_encoding2name()
285 return encoding->name; in mbfl_no_encoding2name()
301 if (encoding != NULL && encoding->mime_name != NULL && encoding->mime_name[0] != '\0') { in mbfl_no2preferred_mime_name()
[all …]
H A Dmbfl_ident.c169 const struct mbfl_identify_vtbl * mbfl_identify_filter_get_vtbl(enum mbfl_no_encoding encoding) in mbfl_identify_filter_get_vtbl() argument
176 if (vtbl->encoding == encoding) { in mbfl_identify_filter_get_vtbl()
184 mbfl_identify_filter *mbfl_identify_filter_new(enum mbfl_no_encoding encoding) in mbfl_identify_filter_new() argument
187 if (mbfl_identify_filter_init(filter, encoding)) { in mbfl_identify_filter_new()
195 mbfl_identify_filter *mbfl_identify_filter_new2(const mbfl_encoding *encoding) in mbfl_identify_filter_new2() argument
198 if (mbfl_identify_filter_init2(filter, encoding)) { in mbfl_identify_filter_new2()
207 int mbfl_identify_filter_init(mbfl_identify_filter *filter, enum mbfl_no_encoding encoding) in mbfl_identify_filter_init() argument
209 const mbfl_encoding *enc = mbfl_no2encoding(encoding); in mbfl_identify_filter_init()
213 int mbfl_identify_filter_init2(mbfl_identify_filter *filter, const mbfl_encoding *encoding) in mbfl_identify_filter_init2() argument
218 filter->encoding = encoding; in mbfl_identify_filter_init2()
[all …]
H A Dmbfl_ident.h48 const mbfl_encoding *encoding; member
52 enum mbfl_no_encoding encoding; member
57 …rn const struct mbfl_identify_vtbl * mbfl_identify_filter_get_vtbl(enum mbfl_no_encoding encoding);
58 MBFLAPI extern mbfl_identify_filter * mbfl_identify_filter_new(enum mbfl_no_encoding encoding);
59 MBFLAPI extern mbfl_identify_filter * mbfl_identify_filter_new2(const mbfl_encoding *encoding);
61 …extern int mbfl_identify_filter_init(mbfl_identify_filter *filter, enum mbfl_no_encoding encoding);
62 …extern int mbfl_identify_filter_init2(mbfl_identify_filter *filter, const mbfl_encoding *encoding);
/PHP-8.0/ext/mbstring/tests/
H A Dbug43998.phpt11 * Two error messages returned for incorrect encoding for mb_strto[upper|lower]
37 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "12345" given
38 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "12345" given
41 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "1.23456789E-9" given
42 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "1.23456789E-9" given
45 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "1" given
46 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "1" given
49 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "" given
50 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "" given
53 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "" given
[all …]
H A Dmb_str_unknown_encoding.phpt2 mb_str*() - unknown encoding
145 mb_chr(): Argument #2 ($encoding) must be a valid encoding, "UTF-0" given
150 mb_ord(): Argument #2 ($encoding) must be a valid encoding, "UTF-0" given
151 mb_strcut(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
153 mb_stripos(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
154 mb_stristr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
155 mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "UTF-0" given
156 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
157 mb_strrchr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
161 mb_strstr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
[all …]
H A Dmb_regex_encoding_variation2.phpt76 foreach($encoding as $enc) {
99 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-4BE" given
109 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2" given
114 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2BE" given
119 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2LE" given
154 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UTF-7" given
199 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "JIS" given
299 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "7bit" given
304 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "8bit" given
319 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "HZ" given
[all …]
H A Dmb_substr_count_error2.phpt2 Test mb_substr_count() function : error conditions - pass unknown encoding
11 * Test behaviour of mb_substr_count() function when passed an unknown encoding
18 $encoding = 'unknown-encoding';
20 echo "\n-- Testing mb_substr_count() function with an unknown encoding --\n";
23 var_dump(mb_substr_count($haystack, $needle, $encoding));
32 -- Testing mb_substr_count() function with an unknown encoding --
33 mb_substr_count(): Argument #3 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strtoupper_error2.phpt2 Test mb_strtoupper() function : error conditions - pass an unknown encoding
11 * Pass an unknown encoding as $encoding argument to check behaviour of mbstrtoupper()
17 $encoding = 'unknown-encoding';
20 var_dump( mb_strtoupper($sourcestring, $encoding) );
28 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_check_encoding_invalid_encodings.phpt11 echo 'Using "BAD" as encoding' . \PHP_EOL;
23 echo 'Using "pass" as encoding' . \PHP_EOL;
37 Using "BAD" as encoding
38 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "BAD" given
39 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "BAD" given
40 Using "pass" as encoding
41 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "pass" given
42 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "pass" given
H A Dmb_strlen_error2.phpt2 Test mb_strlen() function : error conditions - pass an unknown encoding
11 * Test mb_strlen when passed an unknown encoding
18 $encoding = 'unknown-encoding';
21 var_dump(mb_strlen($string, $encoding));
29 mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strtolower_error2.phpt2 Test mb_strtolower() function : error conditions - pass an unknown encoding
11 * Pass an unknown encoding to mb_strtolower() to test behaviour
17 $encoding = 'unknown-encoding';
20 var_dump( mb_strtolower($sourcestring, $encoding) );
28 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_stripos_error2.phpt2 Test mb_stripos() function : error conditions - Pass unknown encoding
11 * Pass an unknown encoding to mb_stripos() to test behaviour
18 $encoding = 'unknown-encoding';
21 var_dump( mb_stripos($haystack, $needle, $offset, $encoding) );
29 mb_stripos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_stristr_error2.phpt13 echo "\n-- Testing mb_stristr() with unknown encoding --\n";
16 $encoding = 'unknown-encoding';
20 var_dump( mb_stristr($haystack, $needle, $part, $encoding) );
29 -- Testing mb_stristr() with unknown encoding --
30 mb_stristr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strpos_error2.phpt2 Test mb_strpos() function : error conditions - Pass unknown encoding
11 * Pass an unknown encoding to mb_strpos() to test behaviour
18 $encoding = 'unknown-encoding';
21 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
29 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strrchr_error2.phpt13 echo "\n-- Testing mb_strrchr() with unknown encoding --\n";
16 $encoding = 'unknown-encoding';
20 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
29 -- Testing mb_strrchr() with unknown encoding --
30 mb_strrchr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strrpos_error2.phpt2 Test mb_strrpos() function : error conditions - pass an unknown encoding
11 * Pass mb_strrpos() an encoding that doesn't exist
19 $encoding = 'unknown-encoding';
22 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding));
30 mb_strrpos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strstr_error2.phpt13 echo "\n-- Testing mb_strstr() with unknown encoding --\n";
16 $encoding = 'unknown-encoding';
20 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
29 -- Testing mb_strstr() with unknown encoding --
30 mb_strstr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_substr_error2.phpt2 Test mb_substr() function : error conditions - Pass an unknown encoding
11 * Pass an unknown encoding to mb_substr() to test behaviour
19 $encoding = 'unknown-encoding';
22 var_dump( mb_substr($str, $start, $length, $encoding));
30 mb_substr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strrichr_error2.phpt13 echo "\n-- Testing mb_strrichr() with unknown encoding --\n";
16 $encoding = 'unknown-encoding';
20 var_dump( mb_strrichr($haystack, $needle, $part, $encoding) );
29 -- Testing mb_strrichr() with unknown encoding --
30 mb_strrichr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strripos_error2.phpt2 Test mb_strripos() function : error conditions - Pass unknown encoding
11 * Pass an unknown encoding to mb_strripos() to test behaviour
18 $encoding = 'unknown-encoding';
21 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) );
29 mb_strripos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
/PHP-8.0/ext/dom/tests/
H A DDOMDocument_encoding_basic.phpt26 echo "Adding invalid encoding: $ret\n";
31 $ret = $dom->encoding = 'ISO-8859-1';
32 echo "Adding ISO-8859-1 encoding: $ret\n";
35 $ret = $dom->encoding = 'UTF-8';
36 echo "Adding UTF-8 encoding: $ret\n";
39 $ret = $dom->encoding = 'UTF-16';
40 echo "Adding UTF-16 encoding: $ret\n";
47 Invalid document encoding
48 Adding ISO-8859-1 encoding: ISO-8859-1
50 Adding UTF-8 encoding: UTF-8
[all …]
/PHP-8.0/ext/mbstring/
H A Dmbstring.stub.php7 function mb_internal_encoding(?string $encoding = null): string|bool {} argument
11 function mb_http_output(?string $encoding = null): string|bool {} argument
13 function mb_detect_order(array|string|null $encoding = null): array|bool {} argument
17 function mb_preferred_mime_name(string $encoding): string|false {} argument
26 function mb_strlen(string $string, ?string $encoding = null): int {} argument
50 function mb_strwidth(string $string, ?string $encoding = null): int {} argument
58 function mb_strtoupper(string $string, ?string $encoding = null): string {} argument
66 function mb_encoding_aliases(string $encoding): array {} argument
86 function mb_scrub(string $string, ?string $encoding = null): string {} argument
88 function mb_ord(string $string, ?string $encoding = null): int|false {} argument
[all …]
/PHP-8.0/ext/iconv/tests/
H A Diconv_strlen_error2.phpt2 Test iconv_strlen() function : error conditions - pass an unknown encoding
11 * Test iconv_strlen when passed an unknown encoding
18 $encoding = 'unknown-encoding';
20 var_dump(iconv_strlen($string, $encoding));
26 Warning: iconv_strlen(): Wrong encoding, conversion from "unknown-encoding" to "UCS-4LE" is not all…
H A Diconv_strpos_error2.phpt2 Test iconv_strpos() function : error conditions - Pass unknown encoding
11 * Pass an unknown encoding to iconv_strpos() to test behaviour
18 $encoding = 'unknown-encoding';
20 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
27 Warning: iconv_strpos(): Wrong encoding, conversion from "unknown-encoding" to "UCS-4LE" is not all…
/PHP-8.0/ext/iconv/
H A Diconv.stub.php5 function iconv_strlen(string $string, ?string $encoding = null): int|false {} argument
7 function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): … argument
9 function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null):… argument
11 function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): int|false {} argument
15 function iconv_mime_decode(string $string, int $mode = 0, ?string $encoding = null): string|false {} argument
17 function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): array… argument
21 function iconv_set_encoding(string $type, string $encoding): bool {} argument

Completed in 27 milliseconds

12345678910>>...38