Home
last modified time | relevance | path

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

/php-src/ext/mbstring/tests/
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.phpt2 mb_substr_count()
13 var_dump(mb_substr_count("", ""));
18 var_dump(mb_substr_count("��", ""));
31 var_dump(mb_substr_count("", "\xA4\xA2"));
32 var_dump(mb_substr_count("", chr(0)));
36 var_dump(mb_substr_count($a, "bca"));
40 var_dump(mb_substr_count($a, $b));
51 var_dump(mb_substr_count($a, "bca"));
67 echo mb_substr_count("+", "+", "UTF7-IMAP"), "\n";
72 mb_substr_count(): Argument #2 ($needle) must not be empty
[all …]
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-src/ext/mbstring/
H A Dmbstring_arginfo.h316 ZEND_FUNCTION(mb_substr_count);
385 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.c2229 PHP_FUNCTION(mb_substr_count) in PHP_FUNCTION() argument

Completed in 28 milliseconds