Home
last modified time | relevance | path

Searched refs:mb_strcut (Results 1 – 12 of 12) sorted by relevance

/php-src/ext/mbstring/tests/
H A Dmb_strcut.phpt2 mb_strcut()
36 $str = mb_strcut($euc_jp, 100, 10, 'EUC-JP');
39 $str = mb_strcut($euc_jp, -100, 10, 'EUC-JP');
152 print MBStringChars(mb_strcut($jis, 0, 3, 'JIS'), 'JIS') . "\n";
153 print MBStringChars(mb_strcut($jis, 0, 4, 'JIS'), 'JIS') . "\n";
154 print MBStringChars(mb_strcut($jis, 0, 5, 'JIS'), 'JIS') . "\n";
155 print MBStringChars(mb_strcut($jis, 0, 6, 'JIS'), 'JIS') . "\n";
156 print MBStringChars(mb_strcut($jis, 0, 7, 'JIS'), 'JIS') . "\n";
157 print MBStringChars(mb_strcut($jis, 0, 8, 'JIS'), 'JIS') . "\n";
159 print MBStringChars(mb_strcut($jis, 1, 3, 'JIS'), 'JIS') . "\n";
[all …]
H A Dmb_strcut_negative_length.phpt2 mb_strcut() negative length test
7 var_dump(mb_strcut('Déjà vu', 1, -3));
8 var_dump(mb_strcut('Déjà vu', 1, -4));
9 var_dump(mb_strcut('Déjà vu', 1, -5));
10 var_dump(mb_strcut('Déjà vu', 1, -6));
11 var_dump(mb_strcut('Déjà vu', 1, -999));
H A Dmb_strcut_missing_boundary_check.phpt2 mb_strcut() missing boundary check.
8 var_dump(bin2hex(mb_strcut("\x61\x00\x00\x00\x62\x00\x00\x00\x63\x00\x00\x00", 0, 32)));
10 var_dump(bin2hex(mb_strcut("\x00\x00\x00\x61\x00\x00\x00\x62\x00\x00\x00\x63", 0, 32)));
12 var_dump(bin2hex(mb_strcut("\x61\x00\x62\x00\x63\x00", 0, 32)));
14 var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32)));
16 var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32)));
18 var_dump(bin2hex(mb_strcut("abc", 0, 32)));
20 var_dump(bin2hex(mb_strcut("abc", 0, 32)));
H A Dbug49354.phpt2 Bug #49354 (mb_strcut() cuts wrong length when offset is in the middle of a multibyte character)
8 var_dump(mb_strcut($crap, 0, 100, 'UTF-8'));
9 var_dump(mb_strcut($crap, 1, 100, 'UTF-8')); // skip over A
10 var_dump(mb_strcut($crap, 2, 100, 'UTF-8')); // cut in middle of å
11 var_dump(mb_strcut($crap, 3, 100, 'UTF-8')); // skip over Aå
12 var_dump(mb_strcut($crap, 12, 100, 'UTF-8'));
13 var_dump(mb_strcut($crap, 13, 100, 'UTF-8'));
H A Dgh9535b.phpt2 Test output of mb_strcut for text encodings which use escape sequences
18 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
29 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
40 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
51 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
62 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
70 var_dump(mb_strcut($input, 0, $bytes_length, $encoding));
H A Dbug71606.phpt2 Bug #71606 (Segmentation fault mb_strcut + mb_list_encodings)
7 echo mb_strcut('"', 0, 0, 'HTML-ENTITIES');
11 Deprecated: mb_strcut(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, h…
H A Dgh9535.phpt2 GH-9535 (mb_strcut(): The behavior of mb_strcut in mbstring has been changed in PHP8.1)
27 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
38 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
49 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
59 // this will make mb_strcut only pick out 6 'A' characters from the input string and not 10
62 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
74 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
82 echo $encoding.trim(': '.mb_strcut($input, 0, $bytes_length, $encoding)).PHP_EOL;
H A Dmb_str_unknown_encoding.phpt48 mb_strcut('coudenys', 0, 4, 'UTF-0');
151 mb_strcut(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
H A Dmb_str_functions_opt-parameter.phpt16 echo mb_strcut('foobarbaz', 6, null, 'UTF-8') . "\n";
/php-src/ext/mbstring/
H A Dmbstring_arginfo.h318 ZEND_FUNCTION(mb_strcut);
387 ZEND_FE(mb_strcut, arginfo_mb_strcut)
H A Dmbstring.stub.php117 function mb_strcut(string $string, int $start, ?int $length = null, ?string $encoding = null): stri… function
H A Dmbstring.c2376 PHP_FUNCTION(mb_strcut) in PHP_FUNCTION() argument

Completed in 43 milliseconds