Home
last modified time | relevance | path

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

/PHP-8.0/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_error2.phpt2 Test mb_substr_count() function : error conditions - pass unknown encoding
6 function_exists('mb_substr_count') or die("skip mb_substr_count() is not available in this build");
11 * Test behaviour of mb_substr_count() function when passed an unknown encoding
14 echo "*** Testing mb_substr_count() : error conditions ***\n";
20 echo "\n-- Testing mb_substr_count() function with an unknown encoding --\n";
23 var_dump(mb_substr_count($haystack, $needle, $encoding));
30 *** Testing mb_substr_count() : error conditions ***
32 -- Testing mb_substr_count() function with an unknown encoding --
33 mb_substr_count(): Argument #3 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_substr_count_basic.phpt2 Test mb_substr_count() function : basic functionality
6 function_exists('mb_substr_count') or die("skip mb_substr_count() is not available in this build");
11 * Test Basic functionality of mb_substr_count
14 echo "*** Testing mb_substr_count() : basic functionality ***\n";
23 var_dump(mb_substr_count($string_ascii, 'is'));
24 var_dump(mb_substr_count($string_ascii, 'hello, world'));
27 var_dump(mb_substr_count($string_mb, $needle_mb1));
28 var_dump(mb_substr_count($string_mb, $needle_mb2));
33 *** Testing mb_substr_count() : basic functionality ***
H A Dmb_substr_count_variation4.phpt2 Test mb_substr_count() function : variation - pass a $needle that overlaps in $haystack
6 function_exists('mb_substr_count') or die("skip mb_substr_count() is not available in this build");
11 * Pass mb_substr_count() a $needle that overlaps in $haystack and see whether
16 echo "*** Testing mb_substr_count() : usage variations ***\n";
21 var_dump(mb_substr_count($string_ascii, 'abcabc')); //needle overlaps in haystack
26 var_dump(mb_substr_count($string_mb, $needle_mb, 'utf-8'));
32 *** 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.0/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.php44 function mb_substr_count(string $haystack, string $needle, ?string $encoding = null): int {} function
H A Dmbstring.c2095 PHP_FUNCTION(mb_substr_count) in PHP_FUNCTION() argument

Completed in 41 milliseconds