Home
last modified time | relevance | path

Searched refs:mb_str_split (Results 1 – 10 of 10) sorted by relevance

/php-src/ext/mbstring/tests/
H A Dmb_str_split_error_conditions.phpt2 mb_str_split() error conditions
12 mb_str_split($string, 0);
17 mb_str_split($string, -5);
24 mb_str_split($string, 1, "BAD_ENCODING");
31 $array = mb_str_split("abc\xFFabc", 2, "UTF-8");
36 // The last string emitted by mb_str_split will include '?' as an error marker,
38 $array = mb_str_split(mb_convert_encoding("ελληνικά", "HZ", "UTF-8"), 2, "HZ");
45 // It will be split into segments of 2 characters each by mb_str_split
46 $array = mb_str_split(mb_convert_encoding("ελληνικά", "HZ", "UTF-8"), 2, "HZ");
51 mb_str_split(): Argument #2 ($length) must be greater than 0
[all …]
H A Dmb_str_split_utf8_utf16.phpt2 mb_str_split() tests UTF-8 illegal chars & UTF-16 surrogate pairs
36 foreach(mb_str_split($utf8, 2) as $chunk){
42 foreach(mb_str_split($utf8_bad, 2) as $chunk){
48 foreach(mb_str_split($utf16be, 1, "UTF-16BE") as $chunk){
54 foreach(mb_str_split($utf16le, 1, "UTF-16LE") as $chunk){
60 foreach(mb_str_split($utf16be_bad, 1, "UTF-16BE") as $chunk){
66 foreach(mb_str_split($utf16le_bad, 1, "UTF-16LE") as $chunk){
71 var_dump(mb_str_split("", 1, "ASCII"));
72 var_dump(mb_str_split("", 1, "UTF-8"));
73 var_dump(mb_str_split("", 1, "UTF-16LE"));
H A Dmb_str_split_other.phpt2 mb_str_split() tests for more text encodings
7 $array = mb_str_split("\x00\x01\x02\x03\x04\x05\x06\x07", 2, "UCS-2BE");
15 $array = mb_str_split($hz, $i, 'HZ');
28 $array = mb_str_split($big5, $i, 'BIG-5');
41 $array = mb_str_split($iso, $i, 'ISO-8859-1');
54 $array = mb_str_split("\xCA\xCA\xCA\xCA", 2, "JIS");
57 // Another bug in the old implementation of mb_str_split; when finishing one last (incomplete)
62 $array = mb_str_split("Z~", 2, "HZ");
65 // Another problem with the old implementation of mb_str_split: If you passed a huge chunk_len
68 mb_str_split("abc", 1234567890, "UTF-8");
[all …]
H A Dmb_str_split_jp.phpt2 mb_str_split() tests for the japanese language
28 if (count(mb_str_split("", 1, $cs)) !== 0)
30 if (count(mb_str_split("", 2, $cs)) !== 0)
36 $split = mb_str_split($enc, 1, $cs);
41 $cnt = count(mb_str_split($enc,$i,$cs));
59 $array = mb_str_split($enc, $len, "ISO-2022-JP");
75 $array = mb_str_split("\x80\xA1abc\x80\xA1", 2, $encoding);
79 $array = mb_str_split("abc\xFD\xFE\xFFab\xFD\xFE\xFF", 2, $encoding);
93 Even though they map to multiple codepoints, mb_str_split treats these as ONE character each
97 echo "[", implode(', ', array_map('bin2hex', mb_str_split("abc\x85\xAB\x85\xAC\x85\xAD", 1, 'MacJap…
[all …]
H A Dmb_str_split_ru.phpt2 mb_str_split() tests for the russian language
28 $split = mb_str_split($enc, 1, $cs);
34 $cnt = count(mb_str_split($enc,$i,$cs));
52 $array = mb_str_split($enc, $len, "EUC-JP");
H A Dmb_strimwidth.phpt11 $chars = mb_str_split($string, 1, $encoding);
18 $chars = mb_str_split($string, 1, $encoding);
H A Dmb_strcut.phpt10 $chars = mb_str_split($string, 1, $encoding);
/php-src/ext/mbstring/
H A Dmbstring_arginfo.h306 ZEND_FUNCTION(mb_str_split);
375 ZEND_FE(mb_str_split, arginfo_mb_str_split)
H A Dmbstring.stub.php87 function mb_str_split(string $string, int $length = 1, ?string $encoding = null): array {} function
H A Dmbstring.c1633 PHP_FUNCTION(mb_str_split) in PHP_FUNCTION() argument

Completed in 30 milliseconds