Home
last modified time | relevance | path

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

/PHP-8.0/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_basic.phpt2 Test mb_strpos() function : basic functionality
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
11 * Test basic functionality of mb_strpos with ASCII and multibyte characters
14 echo "*** Testing mb_strpos() : basic functionality***\n";
23 var_dump(mb_strpos($string_ascii, 'd', 2, 'ISO-8859-1'));
26 var_dump(mb_strpos($string_ascii, '123'));
30 var_dump(mb_strpos($string_mb, $needle1));
34 var_dump(mb_strpos($string_mb, $needle2));
39 *** Testing mb_strpos() : basic functionality***
H A Dmb_strpos_error2.phpt2 Test mb_strpos() function : error conditions - Pass unknown encoding
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
11 * Pass an unknown encoding to mb_strpos() to test behaviour
14 echo "*** Testing mb_strpos() : error conditions ***\n";
21 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
28 *** Testing mb_strpos() : error conditions ***
29 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strpos_variation5.phpt2 Test mb_strpos() function : usage variations - Pass different integers as $offset argument
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
11 * Test how mb_strpos() behaves when passed different integers as $offset argument
18 echo "*** Testing mb_strpos() : usage variations ***\n";
34 var_dump(mb_strpos($string_ascii, $needle_ascii, $i));
41 var_dump(mb_strpos($string_mb, $needle_mb, $i, 'UTF-8'));
49 *** Testing mb_strpos() : usage variations ***
53 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)
89 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
H A Dmb_strpos_empty_needle.phpt2 Test mb_strpos() function : with empty needle
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
18 var_dump(mb_strpos($string_ascii, ''));
21 var_dump(mb_strpos($string_ascii, '', 2));
24 var_dump(mb_strpos($string_ascii, '', -2));
28 var_dump(mb_strpos($string_ascii, '', 15));
41 var_dump(mb_strpos($string_mb, ''));
44 var_dump(mb_strpos($string_mb, '', 2));
47 var_dump(mb_strpos($string_mb, '', -2));
51 var_dump(mb_strpos($string_mb, '', 150));
[all …]
H A Dbug43840.phpt2 Test mb_strpos() function : mb_strpos bounds check is byte count rather than a character count
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
11 * mb_strpos bounds check is byte count rather than a character count:
25 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') );
31 var_dump(mb_strpos('This is na English ta', 'a', $i));
52 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
54 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
58 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
60 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
64 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
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.phpt7 var_dump(mb_strpos("f", "bar", 3));
12 var_dump(mb_strpos("f", "bar", -3));
49 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
50 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";
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.0/ext/mbstring/
H A Dmbstring_arginfo.h317 ZEND_FUNCTION(mb_strpos);
411 ZEND_FE(mb_strpos, arginfo_mb_strpos)
H A Dmbstring.stub.php28 function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): in… function
H A Dmbstring.c1865 PHP_FUNCTION(mb_strpos) in PHP_FUNCTION() argument
/PHP-8.0/
H A DUPGRADING384 . The needle argument for mb_strpos(), mb_strrpos(), mb_stripos(),

Completed in 52 milliseconds