Home
last modified time | relevance | path

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

123

/php-src/ext/standard/tests/strings/
H A Dstrrchr_basic.phpt2 Test strrchr() function : basic functionality
10 var_dump( strrchr('Hello, World', 'H') );
12 var_dump( strrchr('Hello, World', 'Hello') );
16 var_dump( strrchr("Hello, World", "h") );
18 var_dump( strrchr("Hello, World", "hello") );
22 var_dump( strrchr("Hello, World", "World") );
28 var_dump( strrchr("Hello, World", ",") );
30 var_dump( strrchr('Hello, World', ',') );
37 var_dump( strrchr("Hello, World", "Hi") );
41 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_variation7.phpt2 Test strrchr() function : usage variations - heredoc string containing blank line for 'haystack'
5 /* Test strrchr() function by passing heredoc string containing
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
24 //loop through to test strrchr() with each needle
26 var_dump( strrchr($blank_line, $needle) );
31 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation12.phpt2 Test strrchr() function : usage variations - binary safe
5 /* Test strrchr() function: with binary values & null terminated strings passed to 'str1' & 'str2' …
7 echo "*** Test strrchr() function: binary safe ***\n";
20 var_dump( strrchr($haystacks[$index], "\0") );
22 var_dump( strrchr($haystacks[$index], "") );
27 *** Test strrchr() function: binary safe ***
H A Dstrrchr_variation3.phpt2 Test strrchr() function : usage variations - multi line heredoc string for 'haystack'
5 /* Test strrchr() function by passing multi-line heredoc string for haystack and
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
23 //loop through to test strrchr() with each needle
25 var_dump( strrchr($multi_line_str, $needle) );
31 *** 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_variation6.phpt2 Test strrchr() function : usage variations - heredoc string containing quote chars for 'haystack'
5 /* Test strrchr() function by passing heredoc string containing quote chars for haystack
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
24 //loop through to test strrchr() with each needle
26 var_dump( strrchr($quote_char_str, $needle) );
31 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation4.phpt2 Test strrchr() function : usage variations - heredoc string containing special chars for 'haystack'
5 /* Test strrchr() function by passing heredoc string containing special chars for haystack
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
30 //loop through to test strrchr() with each needle
32 var_dump( strrchr($special_chars_str, $needle) );
37 *** Testing strrchr() function: with heredoc strings ***
H A Dstrings001.phpt2 Test whether strstr() and strrchr() are binary safe.
7 var_dump(strrchr($s," nic"));
H A Dstrrchr_variation2.phpt2 Test strrchr() function : usage variations - single quoted strings
5 /* Test strrchr() function by passing various single quoted strings to 'haystack' & 'needle' */
7 echo "*** Testing strrchr() function: with various single quoted strings ***";
72 var_dump( strrchr($haystack, $needle[$index]) );
78 *** Testing strrchr() function: with various single quoted strings ***
H A Dstrrchr_variation1.phpt2 Test strrchr() function : usage variations - double quoted strings
6 /* Test strrchr() function by passing various double quoted strings for 'haystack' & 'needle' */
8 echo "*** Testing strrchr() function: with various double quoted strings ***";
73 var_dump( strrchr($haystack, $needle[$index]) );
79 *** Testing strrchr() function: with various double quoted strings ***
/php-src/ext/gd/libgd/
H A Dgd_xbm.c56 if (!(type = strrchr(iname, '_'))) { in gdImageCreateFromXbm()
83 if (!(type = strrchr(iname, '_'))) { in gdImageCreateFromXbm()
184 if ((f = strrchr(name, '/')) != NULL) name = f+1; in gdImageXbmCtx()
185 if ((f = strrchr(name, '\\')) != NULL) name = f+1; in gdImageXbmCtx()
187 if ((f = strrchr(name, '.')) != NULL && !strcasecmp(f, ".XBM")) *f = '\0'; in gdImageXbmCtx()
/php-src/main/streams/
H A Dglob_wrapper.c112 if ((pos = strrchr(path, '/')) != NULL) { in php_glob_stream_path_split()
116 if ((pos = strrchr(path, '\\')) != NULL) { in php_glob_stream_path_split()
256 if ((tmp = strrchr(pos, '/')) != NULL) { in php_glob_stream_opener()
260 if ((tmp = strrchr(pos, '\\')) != NULL) { in php_glob_stream_opener()
H A Dfilter.c232 } else if ((period = strrchr(filtername, '.'))) { in php_stream_filter_create()
248 period = strrchr(wildname, '.'); in php_stream_filter_create()
/php-src/ext/mysqlnd/
H A Dmysqlnd_alloc.c204 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_efree()
235 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pefree()
267 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pememdup()
298 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pestrndup()
339 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pestrdup()
/php-src/tests/strings/
H A D001.phpt37 echo "Testing strrchr: ";
39 $found1 = strrchr($test, "b");
40 $found2 = strrchr($test, chr(102));
209 Testing strrchr: passed
/php-src/sapi/fuzzer/
H A Dfuzzer-execute-common.h159 char *last_sep = strrchr(path, '/');
/php-src/ext/standard/
H A Duser_filters.c248 if ((period = strrchr(filtername, '.'))) { in user_filter_factory_create()
262 period = strrchr(wildcard, '.'); in user_filter_factory_create()
/php-src/main/
H A Dfopen_wrappers.c192 path_file = strrchr(path_tmp, DEFAULT_SLASH);
194 path_file = strrchr(path_tmp, '/');
197 path_file = strrchr(path_tmp, DEFAULT_SLASH);
H A Dphp_ini.c510 separator_location = strrchr(binary_location, DEFAULT_SLASH); in php_init_config()
664 if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) { in php_init_config()
/php-src/ext/fileinfo/libmagic/
H A Dmagic.c102 const char *p = strrchr(file, '.'); in unreadable_info()
/php-src/ext/soap/
H A Dphp_xml.c321 const char *found = strrchr((const char *) inval, ':'); in parse_namespace()
/php-src/sapi/litespeed/
H A Dlscriu.c421 pchLastSlash = strrchr(criu_native_dump.m_chSocketDir,'/'); in LSCRIU_Native_Dump()
/php-src/sapi/fpm/fpm/
H A Dfpm_main.c830 prog = strrchr(argv0, '/'); in php_cgi_usage()
1121 while ((ptr = strrchr(pt, '/')) || (ptr = strrchr(pt, '\\'))) { in init_request_info()
H A Dfpm_sockets.c341 char *port_str = strrchr(dup_address, ':'); in fpm_socket_af_inet_listening_socket()

Completed in 58 milliseconds

123