Home
last modified time | relevance | path

Searched refs:haystack (Results 51 – 75 of 194) sorted by relevance

12345678

/PHP-5.4/ext/mbstring/tests/
H A Dmb_stripos_error1.phpt10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
25 $haystack = b'string_val';
30 var_dump( mb_stripos($haystack, $needle, $offset, $encoding, $extra_arg) );
34 $haystack = b'string_val';
35 var_dump( mb_stripos($haystack) );
H A Dmb_strpos_error1.phpt10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
24 $haystack = 'string_val';
29 var_dump( mb_strpos($haystack, $needle, $offset, $encoding, $extra_arg) );
33 $haystack = 'string_val';
34 var_dump( mb_strpos($haystack) );
H A Dmb_strripos_error1.phpt10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]])
25 $haystack = b'string_val';
30 var_dump( mb_strripos($haystack, $needle, $offset, $encoding, $extra_arg) );
34 $haystack = b'string_val';
35 var_dump( mb_strripos($haystack) );
H A Dmb_strrpos_variation3.phpt10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]…
23 $haystack = b'string_val';
83 var_dump( mb_strrpos($haystack, $needle, $input, $encoding));
100 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d
105 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d
116 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d
H A Dmb_strripos_variation3_Bug45923.phpt10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]])
24 $haystack = b'string_val';
99 var_dump( mb_strripos($haystack, $needle, $input, $encoding));
118 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
123 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
128 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
133 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
138 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
H A Dmb_strpos_error2.phpt10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
20 $haystack = 'Hello, world';
25 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
H A Dmb_strrpos_error2.phpt10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]…
21 $haystack = 'This is an English string. 0123456789.';
26 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding));
H A Dmb_stripos_error2.phpt10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
21 $haystack = b'Hello, world';
26 var_dump( mb_stripos($haystack, $needle, $offset, $encoding) );
H A Dmb_stristr_error2.phpt10 /* Prototype : string mb_stristr(string haystack, string needle[, bool part[, string encoding]])
20 $haystack = b'Hello, world';
24 var_dump( mb_stristr($haystack, $needle, $part, $encoding) );
H A Dmb_strrchr_error2.phpt10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])
20 $haystack = b'Hello, world';
24 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
H A Dmb_strrichr_error2.phpt10 /* Prototype : string mb_strrichr(string haystack, string needle[, bool part[, string encoding]])
20 $haystack = b'Hello, world';
24 var_dump( mb_strrichr($haystack, $needle, $part, $encoding) );
H A Dmb_strripos_error2.phpt10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]])
21 $haystack = b'Hello, world';
26 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) );
H A Dmb_strstr_error2.phpt10 /* Prototype : string mb_strstr(string haystack, string needle[, bool part[, string encoding]])
20 $haystack = b'Hello, world';
24 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
H A Dmb_substr_count_error2.phpt10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding])
21 $haystack = 'Hello, World!';
26 var_dump(mb_substr_count($haystack, $needle, $encoding));
/PHP-5.4/ext/iconv/tests/
H A Diconv_strpos_error1.phpt10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
24 $haystack = 'string_val';
29 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding, $extra_arg) );
33 $haystack = 'string_val';
34 var_dump( iconv_strpos($haystack) );
/PHP-5.4/ext/standard/tests/strings/
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
32 $special_chars_str //needle as haystack
H A Dstrrchr_variation1.phpt5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing various double quoted strings for 'haystack' & 'needle' */
13 $haystack = "Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 ";
72 $haystack //haystack as needle
75 /* loop through to get the position of the needle in haystack string */
79 var_dump( strrchr($haystack, $needle[$index]) );
H A Dstrrchr_error.phpt5 /* Prototype : string strrchr(string $haystack, string $needle);
11 $haystack = "Hello";
19 var_dump( strrchr($haystack) );
22 var_dump( strrchr($haystack, $needle, $extra_arg) );
H A Dstrrpos_basic2.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'
16 //regular string for haystack & needle, with various offsets
22 //heredoc string for haystack & needle, with various offsets
H A Dstripos_variation8.phpt2 Test stripos() function : usage variations - repetitive chars for 'haystack' argument
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
15 $haystack = "aBAbaBAbaBabAbAbaBa";
27 /* loop through to consider various offsets in getting the position of the needle in haystack strin…
31 for($offset = 0; $offset <= strlen($haystack); $offset++ ) {
32 var_dump( stripos($haystack, $needles[$index], $offset) );
H A Dstrripos_variation3.phpt2 Test strripos() function : usage variations - multi line heredoc string for 'haystack' argument
5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack'
10 /* Test strripos() function by passing multi-line heredoc string for haystack and
H A Dstripos_variation5.phpt2 Test stripos() function : usage variations - heredoc string containing escape chars for 'haystack' …
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function by passing heredoc string containing escape chars for haystack
/PHP-5.4/ext/mbstring/
H A Dmbstring.c264 ZEND_ARG_INFO(0, haystack)
271 ZEND_ARG_INFO(0, haystack)
278 ZEND_ARG_INFO(0, haystack)
285 ZEND_ARG_INFO(0, haystack)
292 ZEND_ARG_INFO(0, haystack)
299 ZEND_ARG_INFO(0, haystack)
306 ZEND_ARG_INFO(0, haystack)
4673 haystack.len = len; in php_mb_stripos()
4675 if (!haystack.val) { in php_mb_stripos()
4720 if (haystack.val) { in php_mb_stripos()
[all …]
/PHP-5.4/ext/intl/grapheme/
H A Dgrapheme_util.h28 int grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int…
30 int grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int3…
42 int32_t grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle…
H A Dgrapheme_util.c131 int grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int3… in grapheme_strpos_utf16() argument
147 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, (char *) haystack, haystack_len, &status ); in grapheme_strpos_utf16()
337 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_… in grapheme_strrpos_ascii() argument
342 p = haystack + offset; in grapheme_strrpos_ascii()
343 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
345 p = haystack; in grapheme_strrpos_ascii()
347 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
349 e = haystack + haystack_len + offset; in grapheme_strrpos_ascii()

Completed in 37 milliseconds

12345678