Home
last modified time | relevance | path

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

12

/PHP-8.1/ext/standard/tests/strings/
H A Dstrrchr_basic.phpt2 Test strrchr() function : basic functionality
8 var_dump( strrchr('Hello, World', 'H') );
9 var_dump( strrchr('Hello, World', 'Hello') );
12 var_dump( strrchr("Hello, World", "h") );
13 var_dump( strrchr("Hello, World", "hello") );
16 var_dump( strrchr("Hello, World", "World") );
20 var_dump( strrchr("Hello, World", ",") );
21 var_dump( strrchr('Hello, World', ',') );
26 var_dump( strrchr("Hello, World", "Hi") );
29 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_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_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_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-8.1/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-8.1/main/streams/
H A Dglob_wrapper.c104 if ((pos = strrchr(path, '/')) != NULL) { in php_glob_stream_path_split()
108 if ((pos = strrchr(path, '\\')) != NULL) { in php_glob_stream_path_split()
228 if ((tmp = strrchr(pos, '/')) != NULL) { in php_glob_stream_opener()
232 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-8.1/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()
340 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pestrdup()
/PHP-8.1/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-8.1/main/
H A Dfopen_wrappers.c180 path_file = strrchr(path_tmp, DEFAULT_SLASH);
182 path_file = strrchr(path_tmp, '/');
185 path_file = strrchr(path_tmp, DEFAULT_SLASH);
H A Dphp_ini.c509 separator_location = strrchr(binary_location, DEFAULT_SLASH); in php_init_config()
674 if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) { in php_init_config()
H A Drfc1867.c554 char *s = strrchr(path, '\\'); in php_ap_basename()
555 char *s2 = strrchr(path, '/'); in php_ap_basename()
/PHP-8.1/ext/standard/
H A Duser_filters.c275 if ((period = strrchr(filtername, '.'))) { in user_filter_factory_create()
289 period = strrchr(wildcard, '.'); in user_filter_factory_create()
/PHP-8.1/ext/soap/
H A Dphp_xml.c320 char *found = strrchr((char*)inval, ':'); in parse_namespace()
/PHP-8.1/sapi/litespeed/
H A Dlscriu.c421 pchLastSlash = strrchr(criu_native_dump.m_chSocketDir,'/'); in LSCRIU_Native_Dump()
/PHP-8.1/sapi/fpm/fpm/
H A Dfpm_main.c815 prog = strrchr(argv0, '/'); in php_cgi_usage()
1106 while ((ptr = strrchr(pt, '/')) || (ptr = strrchr(pt, '\\'))) { in init_request_info()
H A Dfpm_sockets.c322 char *port_str = strrchr(dup_address, ':'); in fpm_socket_af_inet_listening_socket()
/PHP-8.1/Zend/
H A Dzend_constants.c575 const char *slash = strrchr(ZSTR_VAL(c->name), '\\'); in zend_register_constant()

Completed in 41 milliseconds

12