Home
last modified time | relevance | path

Searched refs:mb_strstr (Results 1 – 11 of 11) sorted by relevance

/php-src/ext/mbstring/tests/
H A Dmb_strstr.phpt2 mb_strstr()
15 var_dump(mb_strstr("あいうえおかきくけこ", "おかき"));
16 var_dump(mb_strstr("あいうえおかきくけこ", "おかき", false));
17 var_dump(mb_strstr("あいうえおかきくけこ", "おかき", true));
21 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"))));
23 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), true)));
25 // Regression test from when mb_strstr was being reimplemented
26 var_dump(bin2hex(mb_strstr("\xdd\x00", "", false, 'UTF-8')));
27 var_dump(bin2hex(mb_strstr("M\xff\xff\xff\x00", "\x00", false, "SJIS")));
31 var_dump(mb_strstr("\xf0start", "start", false, "UTF-8"));
[all …]
H A Dmb_strstr_basic.phpt2 Test mb_strstr() function : basic functionality
7 echo "*** Testing mb_strstr() : basic functionality ***\n";
16 var_dump(bin2hex(mb_strstr($string_ascii, 'd', false, 'ISO-8859-1')));
17 var_dump(bin2hex(mb_strstr($string_ascii, 'd')));
18 var_dump(bin2hex(mb_strstr($string_ascii, 'd', true)));
22 var_dump(mb_strstr($string_ascii, '123'));
26 var_dump(bin2hex(mb_strstr($string_mb, $needle1)));
27 var_dump(bin2hex(mb_strstr($string_mb, $needle1, false, 'utf-8')));
28 var_dump(bin2hex(mb_strstr($string_mb, $needle1, true)));
33 var_dump(mb_strstr($string_mb, $needle2));
[all …]
H A Dmb_strstr_empty_needle.phpt2 Test mb_strstr() function : with empty needle
15 var_dump(mb_strstr($string_ascii, '', false, 'ISO-8859-1'));
16 var_dump(mb_strstr($string_ascii, ''));
17 var_dump(mb_strstr($string_ascii, '', true));
20 var_dump(mb_strstr($string_mb, ''));
21 var_dump(mb_strstr($string_mb, '', false, 'utf-8'));
22 var_dump(mb_strstr($string_mb, '', true));
H A Dmb_strstr_error2.phpt2 Test mb_strstr() function : error conditions
7 echo "*** Testing mb_strstr() : error conditions ***\n";
10 echo "\n-- Testing mb_strstr() with unknown encoding --\n";
17 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
24 *** Testing mb_strstr() : error conditions ***
26 -- Testing mb_strstr() with unknown encoding --
27 mb_strstr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strstr_variation6.phpt2 Test mb_strstr() function : variation - case sensitivity
7 echo "*** Testing mb_strstr() : variation ***\n";
25 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii_lower)));
27 var_dump(mb_strstr($string_ascii, $needle_ascii_upper));
28 var_dump(mb_strstr($string_ascii, $needle_ascii_mixed));
32 $res = mb_strstr($string_mb, $needle_mb_lower, false);
40 var_dump(mb_strstr($string_mb, $needle_mb_upper));
41 var_dump(mb_strstr($string_mb, $needle_mb_mixed));
46 *** Testing mb_strstr() : variation ***
H A Dmb_strstr_variation5.phpt2 Test mb_strstr() function : variation - multiple needles
7 echo "*** Testing mb_strstr() : variation ***\n";
20 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii, false)));
21 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii, true)));
24 $res = mb_strstr($string_mb, $needle_mb, false);
31 $res = mb_strstr($string_mb, $needle_mb, true);
42 *** Testing mb_strstr() : variation ***
H A Dmb_str_functions_opt-parameter.phpt11 echo mb_strstr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
32 Deprecated: mb_strstr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated i…
H A Dmb_str_unknown_encoding.phpt108 mb_strstr('coudenys', 'cou', false, 'UTF-0');
161 mb_strstr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
/php-src/ext/mbstring/
H A Dmbstring_arginfo.h312 ZEND_FUNCTION(mb_strstr);
381 ZEND_FE(mb_strstr, arginfo_mb_strstr)
H A Dmbstring.stub.php100 function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding… function
H A Dmbstring.c2197 PHP_FUNCTION(mb_strstr) in PHP_FUNCTION() argument

Completed in 34 milliseconds