Home
last modified time | relevance | path

Searched refs:mb_strpos (Results 1 – 15 of 15) sorted by relevance

/PHP-8.2/ext/mbstring/tests/
H A Dmb_strpos.phpt2 mb_strpos()
59 print mb_strpos($euc_jp, '0', 0) . "\n";
60 print mb_strpos($euc_jp, 3, 0) . "\n";
61 print mb_strpos($euc_jp, 0, 0) . "\n";
63 $r = mb_strpos($euc_jp, '�ڹ��', 0);
65 $r = mb_strpos($euc_jp, "\n", 0);
74 print mb_strpos($euc_jp, '0') . "\n";
75 print mb_strpos($euc_jp, 3) . "\n";
76 print mb_strpos($euc_jp, 0) . "\n";
78 $r = mb_strpos($euc_jp, '�ڹ��');
[all …]
H A Dmb_strpos_invalid_offset.phpt2 mb_strpos() with invalid offsets
21 var_dump( mb_strpos($string, '日本語', 44));
27 var_dump( mb_strpos($string, '日本語', 50));
33 var_dump( mb_strpos($string, '0', 50));
39 var_dump(mb_strpos($string, 3, 50));
45 var_dump(mb_strpos($string, 0, 50));
51 var_dump(mb_strpos($string, '日本語', -50));
57 var_dump(mb_strpos($string, '0', -50));
63 var_dump(mb_strpos($string, 3, -50));
69 var_dump(mb_strpos($string, 0, -50));
[all …]
H A Dmb_strpos_variation5.phpt2 Test mb_strpos() function : usage variations - Pass different integers as $offset argument
8 * Test how mb_strpos() behaves when passed different integers as $offset argument
15 echo "*** Testing mb_strpos() : usage variations ***\n";
31 var_dump(mb_strpos($string_ascii, $needle_ascii, $i));
38 var_dump(mb_strpos($string_mb, $needle_mb, $i, 'UTF-8'));
46 *** Testing mb_strpos() : usage variations ***
50 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
52 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
88 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
H A Dmb_strpos_basic.phpt2 Test mb_strpos() function : basic functionality
8 * Test basic functionality of mb_strpos with ASCII and multibyte characters
11 echo "*** Testing mb_strpos() : basic functionality***\n";
20 var_dump(mb_strpos($string_ascii, 'd', 2, 'ISO-8859-1'));
23 var_dump(mb_strpos($string_ascii, '123'));
27 var_dump(mb_strpos($string_mb, $needle1));
31 var_dump(mb_strpos($string_mb, $needle2));
36 *** Testing mb_strpos() : basic functionality***
H A Dmb_strpos_empty_needle.phpt2 Test mb_strpos() function : with empty needle
15 var_dump(mb_strpos($string_ascii, ''));
18 var_dump(mb_strpos($string_ascii, '', 2));
21 var_dump(mb_strpos($string_ascii, '', -2));
25 var_dump(mb_strpos($string_ascii, '', 15));
32 var_dump(mb_strpos($string_ascii, '', -15));
38 var_dump(mb_strpos($string_mb, ''));
41 var_dump(mb_strpos($string_mb, '', 2));
44 var_dump(mb_strpos($string_mb, '', -2));
48 var_dump(mb_strpos($string_mb, '', 150));
[all …]
H A Dmb_strpos_error2.phpt2 Test mb_strpos() function : error conditions - Pass unknown encoding
8 * Pass an unknown encoding to mb_strpos() to test behaviour
11 echo "*** Testing mb_strpos() : error conditions ***\n";
18 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
25 *** Testing mb_strpos() : error conditions ***
26 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dbug43840.phpt2 Test mb_strpos() function : mb_strpos bounds check is byte count rather than a character count
8 * mb_strpos bounds check is byte count rather than a character count:
22 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') );
28 var_dump(mb_strpos('This is na English ta', 'a', $i));
49 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
51 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
57 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
61 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
63 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dbug77025.phpt2 Bug #77025: mb_strpos throws Unknown encoding or conversion error
8 var_dump(mb_strpos('Hello', 'e', 0, '8bit'));
H A Dmb_strpos_offset_errors.phpt9 var_dump(mb_strpos("f", "bar", 3));
14 var_dump(mb_strpos("f", "bar", -3));
51 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
52 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dbug45923.phpt22 section('mb_strpos' , "●○◆ ●○◆ ●○◆", "●○◆");
57 ------- mb_strpos -----------
70 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
78 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_str_functions_opt-parameter.phpt7 echo mb_strpos('abb', 'b', null, 'UTF-8') . "\n";
20 Deprecated: mb_strpos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on …
H A Dmb_str_unknown_encoding.phpt78 mb_strpos('coudenys', 'cou', 0, 'UTF-0');
156 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
/PHP-8.2/ext/mbstring/
H A Dmbstring_arginfo.h317 ZEND_FUNCTION(mb_strpos);
411 ZEND_FE(mb_strpos, arginfo_mb_strpos)
H A Dmbstring.stub.php91 function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): in… function
H A Dmbstring.c1890 PHP_FUNCTION(mb_strpos) in PHP_FUNCTION() argument

Completed in 36 milliseconds