Home
last modified time | relevance | path

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

/PHP-8.2/ext/mbstring/tests/
H A Dmb_substr_count.phpt2 mb_substr_count()
11 var_dump(mb_substr_count("", ""));
16 var_dump(mb_substr_count("��", ""));
21 var_dump(mb_substr_count("", "��"));
22 var_dump(mb_substr_count("", "��"));
23 var_dump(mb_substr_count("", chr(0)));
26 var_dump(@mb_substr_count($a, "bca"));
30 var_dump(@mb_substr_count($a, $b));
41 var_dump(@mb_substr_count($a, "bca"));
44 mb_substr_count(): Argument #2 ($needle) must not be empty
[all …]
H A Dbug43993.phpt2 Bug #43993 (mb_substr_count() behaves differently to substr_count() with overlapping needles)
7 var_dump(mb_substr_count("abcabcabca", "abcabc"));
8 var_dump(mb_substr_count("abcabcabca", "abc"));
9 var_dump(mb_substr_count("abcabcabca", "cab"));
10 var_dump(mb_substr_count("abcabcabca", "bca"));
11 var_dump(mb_substr_count("ababababab", "ba"));
12 var_dump(mb_substr_count("ababababab", "ab"));
13 var_dump(mb_substr_count("ababababab", "bc"));
14 var_dump(mb_substr_count("aaaaaaaaaa", "a"));
15 var_dump(mb_substr_count("aaaaaaaaaa", "b"));
H A Dmb_substr_count_basic.phpt2 Test mb_substr_count() function : basic functionality
8 * Test Basic functionality of mb_substr_count
11 echo "*** Testing mb_substr_count() : basic functionality ***\n";
20 var_dump(mb_substr_count($string_ascii, 'is'));
21 var_dump(mb_substr_count($string_ascii, 'hello, world'));
24 var_dump(mb_substr_count($string_mb, $needle_mb1));
25 var_dump(mb_substr_count($string_mb, $needle_mb2));
30 *** Testing mb_substr_count() : basic functionality ***
H A Dmb_substr_count_error2.phpt2 Test mb_substr_count() function : error conditions - pass unknown encoding
8 * Test behaviour of mb_substr_count() function when passed an unknown encoding
11 echo "*** Testing mb_substr_count() : error conditions ***\n";
17 echo "\n-- Testing mb_substr_count() function with an unknown encoding --\n";
20 var_dump(mb_substr_count($haystack, $needle, $encoding));
27 *** Testing mb_substr_count() : error conditions ***
29 -- Testing mb_substr_count() function with an unknown encoding --
30 mb_substr_count(): Argument #3 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_substr_count_variation4.phpt2 Test mb_substr_count() function : variation - pass a $needle that overlaps in $haystack
8 * Pass mb_substr_count() a $needle that overlaps in $haystack and see whether
13 echo "*** Testing mb_substr_count() : usage variations ***\n";
18 var_dump(mb_substr_count($string_ascii, 'abcabc')); //needle overlaps in haystack
23 var_dump(mb_substr_count($string_mb, $needle_mb, 'utf-8'));
29 *** Testing mb_substr_count() : usage variations ***
H A Dmb_str_unknown_encoding.phpt138 mb_substr_count('coudenys', 'c', 'UTF-0');
166 mb_substr_count(): Argument #3 ($encoding) must be a valid encoding, "UTF-0" given
/PHP-8.2/ext/mbstring/
H A Dmbstring_arginfo.h325 ZEND_FUNCTION(mb_substr_count);
419 ZEND_FE(mb_substr_count, arginfo_mb_substr_count)
H A Dmbstring.stub.php111 function mb_substr_count(string $haystack, string $needle, ?string $encoding = null): int {} function
H A Dmbstring.c2120 PHP_FUNCTION(mb_substr_count) in PHP_FUNCTION() argument

Completed in 23 milliseconds