Home
last modified time | relevance | path

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

/PHP-7.2/ext/mbstring/tests/
H A Dmb_stripos.phpt2 mb_stripos()
106 print mb_stripos($euc_jp, 3, 0) . "\n";
107 print mb_stripos($euc_jp, 0, 0) . "\n";
109 $r = mb_stripos($euc_jp, '�ڹ��', 0);
111 $r = mb_stripos($euc_jp, "\n", 0);
120 print mb_stripos($euc_jp, '0') . "\n";
121 print mb_stripos($euc_jp, 3) . "\n";
122 print mb_stripos($euc_jp, 0) . "\n";
124 $r = mb_stripos($euc_jp, '�ڹ��');
126 $r = mb_stripos($euc_jp, "\n");
[all …]
H A Dmb_stripos_error1.phpt2 Test mb_stripos() function : error conditions - Pass incorrect number of args
6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
17 * Test how mb_stripos behaves when passed an incorrect number of arguments
20 echo "*** Testing mb_stripos() : error conditions ***\n";
23 //Test mb_stripos with one more than the expected number of arguments
30 var_dump( mb_stripos($haystack, $needle, $offset, $encoding, $extra_arg) );
32 // Testing mb_stripos with one less than the expected number of arguments
35 var_dump( mb_stripos($haystack) );
40 *** Testing mb_stripos() : error conditions ***
42 -- Testing mb_stripos() function with more than expected no. of arguments --
[all …]
H A Dmb_stripos_variation4.phpt6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
21 echo "*** Testing mb_stripos() : usage variations ***\n";
109 *** Testing mb_stripos() : usage variations ***
113 Warning: mb_stripos(): Unknown encoding "0" in %s on line %d
118 Warning: mb_stripos(): Unknown encoding "1" in %s on line %d
158 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
163 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
173 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
183 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
188 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
[all …]
H A Dmb_stripos_error2.phpt2 Test mb_stripos() function : error conditions - Pass unknown encoding
6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
17 * Pass an unknown encoding to mb_stripos() to test behaviour
20 echo "*** Testing mb_stripos() : error conditions ***\n";
26 var_dump( mb_stripos($haystack, $needle, $offset, $encoding) );
31 *** Testing mb_stripos() : error conditions ***
33 Warning: mb_stripos(): Unknown encoding "unknown-encoding" in %s on line %d
H A Dmb_stripos_variation5_Bug45923.phpt6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
23 echo "*** Testing mb_stripos() : usage variations ***\n";
33 * mb_stripos should not be able to accept negative values as $offset.
39 var_dump(mb_stripos($string_ascii, $needle_ascii, $i));
41 var_dump(mb_stripos($string_mb, $needle_mb, $i, 'UTF-8'));
47 *** Testing mb_stripos() : usage variations ***
52 Warning: mb_stripos(): Offset not contained in string in %s on line %d
56 Warning: mb_stripos(): Offset not contained in string in %s on line %d
92 Warning: mb_stripos(): Offset not contained in string in %s on line %d
96 Warning: mb_stripos(): Offset not contained in string in %s on line %d
[all …]
H A Dmb_stripos_variation2.phpt6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
20 echo "*** Testing mb_stripos() : usage variations ***\n";
108 *** Testing mb_stripos() : usage variations ***
139 Warning: mb_stripos(): Empty delimiter in %s on line %d
144 Warning: mb_stripos(): Empty delimiter in %s on line %d
152 Warning: mb_stripos(): Empty delimiter in %s on line %d
160 Warning: mb_stripos(): Empty delimiter in %s on line %d
165 Warning: mb_stripos(): Empty delimiter in %s on line %d
170 Warning: mb_stripos(): Empty delimiter in %s on line %d
187 Warning: mb_stripos(): Empty delimiter in %s on line %d
[all …]
H A Dmb_stripos_variation3.phpt2 Test mb_stripos() function : usage variations - pass different data types as $offset arg
6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
17 * Pass mb_stripos different data types as $offset arg to test behaviour
20 echo "*** Testing mb_stripos() : usage variations ***\n";
97 // loop through each element of $inputs to check the behavior of mb_stripos()
101 var_dump( mb_stripos($haystack, $needle, $input, $encoding));
110 *** Testing mb_stripos() : usage variations ***
120 Warning: mb_stripos(): Offset not contained in string in %s on line %d
128 Warning: mb_stripos(): Offset not contained in string in %s on line %d
139 Warning: mb_stripos(): Offset not contained in string in %s on line %d
[all …]
H A Dmb_stripos_basic2.phpt2 Test mb_stripos() function : basic functionality
6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
17 * Test basic functionality of mb_stripos with ASCII and multibyte characters
20 echo "*** Testing mb_stripos() : basic functionality***\n";
59 var_dump(mb_stripos($haystack, $needle));
60 var_dump(mb_stripos($haystack, $needle, 6));
67 var_dump(mb_stripos($haystack, $needle));
68 var_dump(mb_stripos($haystack, $needle, 4));
75 *** Testing mb_stripos() : basic functionality***
H A Dmb_stripos_variation1.phpt2 Test mb_stripos() function : usage variations - pass different data types to $haystack arg
6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
17 * Pass mb_stripos different data types as $haystack arg to test behaviour
20 echo "*** Testing mb_stripos() : usage variations ***\n";
95 // loop through each element of $inputs to check the behavior of mb_stripos()
99 var_dump( mb_stripos($input, $needle, $offset, $encoding));
108 *** Testing mb_stripos() : usage variations ***
181 Warning: mb_stripos() expects parameter 1 to be string, resource given in %s on line %d
H A Dmb_stripos_basic.phpt2 Test mb_stripos() function : basic functionality
6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
17 * Test basic functionality of mb_stripos with ASCII and multibyte characters
20 echo "*** Testing mb_stripos() : basic functionality***\n";
81 var_dump(mb_stripos($haystack, $needle));
93 var_dump(mb_stripos($haystack, $needle));
101 *** Testing mb_stripos() : basic functionality***
H A Dmb_internal_encoding_ini_basic2.phpt6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
H A Dmb_get_info.phpt48 string(10) "mb_stripos"
112 string(10) "mb_stripos"
138 string(10) "mb_stripos"
H A Dbug45923.phpt23 section('mb_stripos' , "●○◆ ●○◆ ●○◆", "●○◆");
113 ------- mb_stripos -----------
127 Warning: mb_stripos(): Offset not contained in string in %s on line %d
137 Warning: mb_stripos(): Offset not contained in string in %s on line %d
H A Dmb_str_functions_opt-parameter.phpt9 echo mb_stripos('abb', 'B', null, 'UTF-8') . "\n";
/PHP-7.2/ext/mbstring/
H A Dmbstring.h109 PHP_FUNCTION(mb_stripos);
H A Dmbstring.c554 PHP_FE(mb_stripos, arginfo_mb_stripos)
2479 PHP_FUNCTION(mb_stripos) in PHP_FUNCTION() argument

Completed in 27 milliseconds