Searched refs:mb_strcut (Results 1 – 10 of 10) sorted by relevance
/PHP-8.0/ext/mbstring/tests/ |
H A D | mb_strcut.phpt | 2 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 D | mb_strcut_negative_length.phpt | 2 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 D | bug49354.phpt | 2 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 D | mb_strcut_missing_boundary_check.phpt | 2 mb_strcut() missing boundary check. 11 var_dump(bin2hex(mb_strcut("\x61\x00\x00\x00\x62\x00\x00\x00\x63\x00\x00\x00", 0, 32))); 13 var_dump(bin2hex(mb_strcut("\x00\x00\x00\x61\x00\x00\x00\x62\x00\x00\x00\x63", 0, 32))); 15 var_dump(bin2hex(mb_strcut("\x61\x00\x62\x00\x63\x00", 0, 32))); 17 var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32))); 19 var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32))); 21 var_dump(bin2hex(mb_strcut("abc", 0, 32))); 23 var_dump(bin2hex(mb_strcut("abc", 0, 32)));
|
H A D | bug71606.phpt | 2 Bug #71606 (Segmentation fault mb_strcut + mb_list_encodings) 9 echo mb_strcut('"', 0, 0, 'HTML-ENTITIES');
|
H A D | mb_str_functions_opt-parameter.phpt | 16 echo mb_strcut('foobarbaz', 6, null, 'UTF-8') . "\n";
|
H A D | mb_str_unknown_encoding.phpt | 48 mb_strcut('coudenys', 0, 4, 'UTF-0'); 151 mb_strcut(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
|
/PHP-8.0/ext/mbstring/ |
H A D | mbstring_arginfo.h | 327 ZEND_FUNCTION(mb_strcut); 421 ZEND_FE(mb_strcut, arginfo_mb_strcut)
|
H A D | mbstring.stub.php | 48 function mb_strcut(string $string, int $start, ?int $length = null, ?string $encoding = null): stri… function
|
H A D | mbstring.c | 2198 PHP_FUNCTION(mb_strcut) in PHP_FUNCTION() argument
|
Completed in 23 milliseconds