Home
last modified time | relevance | path

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

/PHP-5.4/ext/mbstring/tests/
H A Dmb_stripos.phpt2 mb_stripos()
6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
82 print mb_stripos($euc_jp, 3, 0) . "\n";
83 print mb_stripos($euc_jp, 0, 0) . "\n";
85 $r = mb_stripos($euc_jp,b'�ڹ��', 0);
87 $r = mb_stripos($euc_jp,b"\n", 0);
96 print mb_stripos($euc_jp, 3) . "\n";
97 print mb_stripos($euc_jp, 0) . "\n";
99 $r = mb_stripos($euc_jp,b'�ڹ��');
101 $r = mb_stripos($euc_jp,b"\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";
110 *** Testing mb_stripos() : usage variations ***
114 Warning: mb_stripos(): Unknown encoding "0" in %s on line %d
119 Warning: mb_stripos(): Unknown encoding "1" in %s on line %d
159 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
164 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
174 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
184 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
189 Warning: mb_stripos(): Unknown encoding "" in %s on line %d
[all …]
H A Dmb_stripos_variation5_Bug45923.phpt6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
24 echo "*** Testing mb_stripos() : usage variations ***\n";
34 * mb_stripos should not be able to accept negative values as $offset.
40 var_dump(mb_stripos($string_ascii, $needle_ascii, $i));
42 var_dump(mb_stripos($string_mb, $needle_mb, $i, 'UTF-8'));
49 *** Testing mb_stripos() : usage variations ***
54 Warning: mb_stripos(): Offset not contained in string in %s on line %d
58 Warning: mb_stripos(): Offset not contained in string in %s on line %d
82 Warning: mb_stripos(): Offset not contained in string in %s on line %d
86 Warning: mb_stripos(): Offset not contained in string 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_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";
95 // loop through each element of $inputs to check the behavior of mb_stripos()
99 var_dump( mb_stripos($haystack, $needle, $input, $encoding));
108 *** Testing mb_stripos() : usage variations ***
118 Warning: mb_stripos(): Offset not contained in string in %s on line %d
123 Warning: mb_stripos(): Offset not contained in string in %s on line %d
131 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 Dbug45923.phpt39 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", 0));
40 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", 3));
41 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", 6));
42 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", 9));
43 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", 11));
44 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", 12));
45 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", -1));
46 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", -3));
47 var_dump(mb_stripos("●○◆ ●○◆ ●○◆", "●○◆", -6));
148 Warning: mb_stripos(): Offset not contained in string in %s on line %d
[all …]
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.phpt47 string(10) "mb_stripos"
111 string(10) "mb_stripos"
137 string(10) "mb_stripos"
H A Dmb_str_functions_opt-parameter.phpt9 echo mb_stripos('abb', 'B', null, 'UTF-8') . "\n";
/PHP-5.4/ext/mbstring/
H A Dmbstring.h106 PHP_FUNCTION(mb_stripos);
H A Dmbstring.c542 PHP_FE(mb_stripos, arginfo_mb_stripos)
2385 PHP_FUNCTION(mb_stripos) in PHP_FUNCTION() argument

Completed in 37 milliseconds