Home
last modified time | relevance | path

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

/PHP-8.1/ext/mbstring/tests/
H A Dmb_strcut.phpt2 mb_strcut()
31 $str = mb_strcut($euc_jp, 100, 10,'EUC-JP');
34 $str = mb_strcut($euc_jp, -100, 10,'EUC-JP');
38 print MBStringChars(mb_strcut($utf8, 0, 0, 'UTF-8'), 'UTF-8') . "\n";
39 print MBStringChars(mb_strcut($utf8, 0, 1, 'UTF-8'), 'UTF-8') . "\n";
40 print MBStringChars(mb_strcut($utf8, 0, 2, 'UTF-8'), 'UTF-8') . "\n";
41 print MBStringChars(mb_strcut($utf8, 0, 3, 'UTF-8'), 'UTF-8') . "\n";
42 print MBStringChars(mb_strcut($utf8, 0, 4, 'UTF-8'), 'UTF-8') . "\n";
43 print MBStringChars(mb_strcut($utf8, 0, 5, 'UTF-8'), 'UTF-8') . "\n";
44 print MBStringChars(mb_strcut($utf8, 1, 2, 'UTF-8'), 'UTF-8') . "\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 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'));
10 var_dump(mb_strcut($crap, 2, 100, 'UTF-8'));
11 var_dump(mb_strcut($crap, 3, 100, 'UTF-8'));
12 var_dump(mb_strcut($crap, 12, 100, 'UTF-8'));
13 var_dump(mb_strcut($crap, 13, 100, 'UTF-8'));
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 Dgh9535b.phpt2 Output of mb_strcut covers requested range of bytes even when output contains ending escape sequenc…
7 // The existing behavior of mb_strcut is wrong for these encodings, when they add an extra closing
25 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
36 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
47 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
58 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
69 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
77 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');
H A Dgh9535.phpt2 GH-9535 (mb_strcut(): The behavior of mb_strcut in mbstring has been changed in PHP8.1)
30 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
41 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
52 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
63 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
74 $cut_str = mb_strcut($converted_str, 0, $bytes_length, $encoding);
82 var_dump(mb_strcut($input, 0, $bytes_length, $encoding));
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-8.1/ext/mbstring/
H A Dmbstring_arginfo.h327 ZEND_FUNCTION(mb_strcut);
421 ZEND_FE(mb_strcut, arginfo_mb_strcut)
H A Dmbstring.stub.php68 function mb_strcut(string $string, int $start, ?int $length = null, ?string $encoding = null): stri… function
H A Dmbstring.c2189 PHP_FUNCTION(mb_strcut) in PHP_FUNCTION() argument
/PHP-8.1/
H A DNEWS932 . Fixed bug GH-9535 (The behavior of mb_strcut in mbstring has been changed in

Completed in 28 milliseconds