Home
last modified time | relevance | path

Searched refs:mb_strimwidth (Results 1 – 9 of 9) sorted by relevance

/PHP-8.0/ext/mbstring/tests/
H A Dmb_strimwidth.phpt2 mb_strimwidth()
16 print "1: ". mb_strimwidth($euc_jp, 0, 15,'...','EUC-JP') . "\n";
20 print "5: ". mb_strimwidth($euc_jp, 38, 5,'...','EUC-JP') . "\n";
25 var_dump(mb_strimwidth($euc_jp, 0, -100,'...','EUC-JP'));
30 var_dump(mb_strimwidth($euc_jp, 100, 10,'...','EUC-JP'));
35 var_dump(mb_strimwidth($euc_jp, -100, 10,'...','EUC-JP'));
40 var_dump(mb_strimwidth($euc_jp, -10, -12,'...','EUC-JP'));
55 mb_strimwidth(): Argument #3 ($width) is out of range
56 mb_strimwidth(): Argument #2 ($start) is out of range
57 mb_strimwidth(): Argument #2 ($start) is out of range
[all …]
H A Dbug79787.phpt2 Bug #79787 mb_strimwidth does not trim string
7 echo mb_strimwidth("一二三", 0, 4, '.', 'UTF-8')."\n";
8 echo mb_strimwidth("一二三", 0, 5, '.', 'UTF-8')."\n";
9 echo mb_strimwidth("一二三", 0, 6, '.', 'UTF-8')."\n";
10 echo mb_strimwidth("abcdef", 0, 4, '.', 'UTF-8')."\n";
11 echo mb_strimwidth("abcdef", 0, 5, '.', 'UTF-8')."\n";
12 echo mb_strimwidth("abcdef", 0, 6, '.', 'UTF-8')."\n";
H A Dbug46806.phpt2 Bug #46806 (mb_strimwidth cutting too early)
11 echo mb_strimwidth('helloworld', 0, 5, '...', 'UTF-8') . "\n";
12 echo mb_strimwidth('hello', 0, 5, '...', 'UTF-8');
H A Dbug76532.phpt2 Bug #76532 (Integer overflow and excessive memory usage in mb_strimwidth)
9 var_dump(mb_strimwidth($string_to_trim, 0, $width));
H A Dmb_str_functions_opt-parameter.phpt17 echo mb_strimwidth('foobar', 0, 3, null, 'UTF-8') . "\n";
H A Dmb_str_unknown_encoding.phpt54 mb_strimwidth('coudenys', 0, 4, '', 'UTF-0');
152 mb_strimwidth(): Argument #5 ($encoding) must be a valid encoding, "UTF-0" given
/PHP-8.0/ext/mbstring/
H A Dmbstring_arginfo.h329 ZEND_FUNCTION(mb_strimwidth);
423 ZEND_FE(mb_strimwidth, arginfo_mb_strimwidth)
H A Dmbstring.stub.php52 function mb_strimwidth(string $string, int $start, int $width, string $trim_marker = "", ?string $e… function
H A Dmbstring.c2283 PHP_FUNCTION(mb_strimwidth) in PHP_FUNCTION() argument

Completed in 24 milliseconds