Home
last modified time | relevance | path

Searched refs:strrchr (Results 1 – 25 of 63) sorted by relevance

123

/PHP-5.5/ext/standard/tests/strings/
H A Dstrrchr_error.phpt2 Test strrchr() function : error conditions
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 echo "*** Testing strrchr() function: error conditions ***\n";
15 echo "\n-- Testing strrchr() function with Zero arguments --";
16 var_dump( strrchr() );
19 var_dump( strrchr($haystack) );
22 var_dump( strrchr($haystack, $needle, $extra_arg) );
27 *** Testing strrchr() function: error conditions ***
29 -- Testing strrchr() function with Zero arguments --
30 Warning: strrchr() expects exactly 2 parameters, 0 given in %s on line %d
[all …]
H A Dstrrchr_basic.phpt2 Test strrchr() function : basic functionality
13 var_dump( strrchr('Hello, World', 'H') );
14 var_dump( strrchr('Hello, World', 'Hello') );
17 var_dump( strrchr("Hello, World", "h") );
18 var_dump( strrchr("Hello, World", "hello") );
21 var_dump( strrchr("Hello, World", "World") );
25 var_dump( strrchr("Hello, World", ",") );
26 var_dump( strrchr('Hello, World', ',') );
31 var_dump( strrchr("Hello, World", "Hi") );
34 var_dump( strrchr("Hello, World", "o") );
[all …]
H A Dstrrchr.phpt2 strrchr() tests
6 var_dump(strrchr("", ""));
7 var_dump(strrchr("abc", ""));
8 var_dump(strrchr("", "abc"));
9 var_dump(strrchr("abc", "abc"));
10 var_dump(strrchr("test ".chr(0)." test", " "));
11 var_dump(strrchr("test".chr(0)."string", "t"));
H A Dstrrchr_variation8.phpt2 Test strrchr() function : usage variations - empty heredoc string for 'haystack'
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing empty heredoc string for haystack
14 echo "*** Testing strrchr() function: with heredoc strings ***\n";
27 //loop through to test strrchr() with each needle
29 var_dump( strrchr($empty_str, $needle) );
34 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation7.phpt2 Test strrchr() function : usage variations - heredoc string containing blank line for 'haystack'
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing heredoc string containing
14 echo "*** Testing strrchr() function: with heredoc strings ***\n";
29 //loop through to test strrchr() with each needle
31 var_dump( strrchr($blank_line, $needle) );
36 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation12.phpt2 Test strrchr() function : usage variations - binary safe
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function: with binary values & null terminated strings passed to 'str1' & 'str2' …
12 echo "*** Test strrchr() function: binary safe ***\n";
25 var_dump( strrchr($haystacks[$index], "\0") );
27 var_dump( strrchr($haystacks[$index], NULL) );
32 *** Test strrchr() function: binary safe ***
H A Dstrrchr_variation3.phpt2 Test strrchr() function : usage variations - multi line heredoc string for 'haystack'
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing multi-line heredoc string for haystack and
14 echo "*** Testing strrchr() function: with heredoc strings ***\n";
28 //loop through to test strrchr() with each needle
30 var_dump( strrchr($multi_line_str, $needle) );
36 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation6.phpt2 Test strrchr() function : usage variations - heredoc string containing quote chars for 'haystack'
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing heredoc string containing quote chars for haystack
14 echo "*** Testing strrchr() function: with heredoc strings ***\n";
29 //loop through to test strrchr() with each needle
31 var_dump( strrchr($quote_char_str, $needle) );
36 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation5.phpt2 Test strrchr() function : usage variations - heredoc string containing escape sequences for 'haysta…
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing heredoc string containing
14 echo "*** Testing strrchr() function: with heredoc strings ***\n";
28 //loop through to test strrchr() with each needle
30 var_dump( strrchr($escape_char_str, $needle) );
36 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation9.phpt2 Test strrchr() function : usage variations - unexpected inputs for haystack
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function with unexpected inputs for haystack
14 echo "*** Testing strrchr() function: with unexpected inputs for haystack ***\n";
120 // loop through each element of the array and check the working of strrchr()
124 var_dump( strrchr($haystacks[$index], $needles[$index]) );
133 *** Testing strrchr() function: with unexpected inputs for haystack ***
154 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d
158 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d
162 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d
[all …]
H A Dstrrchr_variation11.phpt2 Test strrchr() function : usage variations - unexpected inputs for haystack and needle
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function with unexpected inputs for haystack and needle */
79 // loop through each element of the array and check the working of strrchr()
83 var_dump( strrchr($values[$index], $values[$index]) );
92 *** Testing strrchr() function: with unexpected inputs for haystack and needle ***
113 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d
117 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d
121 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d
125 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d
[all …]
H A Dstrrchr_variation4.phpt2 Test strrchr() function : usage variations - heredoc string containing special chars for 'haystack'
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing heredoc string containing special chars for haystack
14 echo "*** Testing strrchr() function: with heredoc strings ***\n";
35 //loop through to test strrchr() with each needle
37 var_dump( strrchr($special_chars_str, $needle) );
42 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation10.phpt2 Test strrchr() function : usage variations - unexpected inputs for needle
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function: with unexpected inputs for needle
14 echo "*** Testing strrchr() function with unexpected inputs for needle ***\n";
124 var_dump( strrchr($haystacks[$index], $needles[$index]) );
133 *** Testing strrchr() function with unexpected inputs for needle ***
154 Warning: strrchr(): needle is not a string or an integer in %s on line %d
158 Warning: strrchr(): needle is not a string or an integer in %s on line %d
162 Warning: strrchr(): needle is not a string or an integer in %s on line %d
166 Warning: strrchr(): needle is not a string or an integer in %s on line %d
[all …]
H A Dstrrchr_variation2.phpt2 Test strrchr() function : usage variations - single quoted strings
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing various single quoted strings to 'haystack' & 'needle' */
12 echo "*** Testing strrchr() function: with various single quoted strings ***";
79 var_dump( strrchr($haystack, $needle[$index]) );
85 *** Testing strrchr() function: with various single quoted strings ***
H A Dstrings001.phpt2 Test whether strstr() and strrchr() are binary safe.
8 var_dump(strrchr($s," nic"));
H A Dstrrchr_variation1.phpt2 Test strrchr() function : usage variations - double quoted strings
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing various double quoted strings for 'haystack' & 'needle' */
12 echo "*** Testing strrchr() function: with various double quoted strings ***";
79 var_dump( strrchr($haystack, $needle[$index]) );
85 *** Testing strrchr() function: with various double quoted strings ***
/PHP-5.5/ext/gd/libgd/
H A Dxbm.c57 if (!(type = strrchr(iname, '_'))) { in gdImageCreateFromXbm()
84 if (!(type = strrchr(iname, '_'))) { in gdImageCreateFromXbm()
181 if ((f = strrchr(name, '/')) != NULL) name = f+1; in gdImageXbmCtx()
182 if ((f = strrchr(name, '\\')) != NULL) name = f+1; in gdImageXbmCtx()
184 if ((f = strrchr(name, '.')) != NULL && !strcasecmp(f, ".XBM")) *f = '\0'; in gdImageXbmCtx()
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_alloc.c88 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_emalloc()
128 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pemalloc()
171 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_ecalloc()
211 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pecalloc()
255 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_erealloc()
296 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_perealloc()
336 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_efree()
367 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pefree()
402 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_malloc()
441 char * fn = strrchr(__zend_orig_filename, PHP_DIR_SEPARATOR); in _mysqlnd_calloc()
[all …]
/PHP-5.5/main/streams/
H A Dglob_wrapper.c116 if ((pos = strrchr(path, '/')) != NULL) { in php_glob_stream_path_split()
120 if ((pos = strrchr(path, '\\')) != NULL) { in php_glob_stream_path_split()
240 if ((tmp = strrchr(pos, '/')) != NULL) { in php_glob_stream_opener()
244 if ((tmp = strrchr(pos, '\\')) != NULL) { in php_glob_stream_opener()
/PHP-5.5/ext/mbstring/tests/
H A Dmb_get_info.phpt52 ["strrchr"]=>
116 ["strrchr"]=>
142 ["strrchr"]=>
/PHP-5.5/tests/strings/
H A D001.phpt39 echo "Testing strrchr: ";
41 $found1 = strrchr($test, "b");
42 $found2 = strrchr($test, 102);
211 Testing strrchr: passed
/PHP-5.5/ext/zip/lib/
H A Dzip_name_locate.c85 p = strrchr(fn, '/'); in _zip_name_locate()
/PHP-5.5/main/
H A Dfopen_wrappers.c198 path_file = strrchr(path_tmp, DEFAULT_SLASH);
200 path_file = strrchr(path_tmp, '/');
203 path_file = strrchr(path_tmp, DEFAULT_SLASH);
/PHP-5.5/ext/standard/
H A Duser_filters.c311 if ((period = strrchr(filtername, '.'))) { in user_filter_factory_create()
324 period = strrchr(wildcard, '.'); in user_filter_factory_create()
H A Dphp_string.h52 PHP_FUNCTION(strrchr);

Completed in 37 milliseconds

123