| /PHP_5_5/ext/phar/phar/ |
| H A D | pharcommand.inc | 191 * @param string $haystack The haystack 196 static function strEndsWith($haystack, $needle) 198 return substr($haystack, -strlen($needle)) == $needle;
|
| /PHP_5_5/ext/intl/doc/ |
| H A D | grapheme_api.php | 31 * @param string $haystack The string to look in 34 which character in haystack to start searching. The position 35 returned is still relative to the beginning of haystack. 38 function grapheme_strpos($haystack, $needle, $offset = 0) {} 43 * @param string $haystack The string to look in 46 which character in haystack to start searching. The position 47 returned is still relative to the beginning of haystack. 50 function grapheme_stripos($haystack, $needle, $offset = 0) {} 55 * @param string $haystack The string to look in 58 which character in haystack t [all...] |
| /PHP_5_5/ext/intl/grapheme/ |
| H A D | grapheme_string.c | 107 /* {{{ proto int grapheme_strpos(string haystack, string needle [, int offset ]) 111 unsigned char *haystack, *needle; local 118 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FAILURE) { 149 found = (unsigned char *)php_memnstr((char *)haystack + offset, (char *)needle, needle_len, (char *)haystack + haystack_len); 156 /* if it is there, and if the haystack is ascii, we are all done */ 157 if ( grapheme_ascii_check(haystack, haystack_len) >= 0 ) { 159 RETURN_LONG(found - haystack); 163 ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, &uchar_pos, 0 /* fIgnoreCase */ TSRMLS_CC ); 174 /* {{{ proto int grapheme_stripos(string haystack, strin 178 unsigned char *haystack, *needle, *haystack_dup, *needle_dup; local 253 unsigned char *haystack, *needle; local 323 unsigned char *haystack, *needle; local 599 unsigned char *haystack, *needle, *found; local [all...] |
| H A D | grapheme_util.c | 152 grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int f_ignore_case TSRMLS_DC) argument 165 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, (char *) haystack, haystack_len, &status ); 183 /* get a pointer to the haystack taking into account the offset */ 243 /* is there enough haystack left to hold the needle? */ 253 /* does the grapheme in the haystack end at the same place as the last grapheme in the needle? */ 286 grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int32_t *puchar_pos, int f_ignore_case TSRMLS_DC) argument 302 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, (char *) haystack, haystack_len, &status ); 316 /* get a pointer to the haystack taking into account the offset */ 458 /* {{{ grapheme_memnstr_grapheme: find needle in haystack using grapheme boundaries */ 460 grapheme_memnstr_grapheme(UBreakIterator *bi, UChar *haystack, UCha argument 570 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) argument [all...] |
| H A D | grapheme_util.h | 30 grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int f_ignore_case TSRMLS_DC); 33 grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int *puchar_pos, int f_ignore_case TSRMLS_DC); 43 grapheme_memnstr_grapheme(UBreakIterator *bi, UChar *haystack, UChar *needle, int32_t needle_len, UChar *end); 51 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset);
|
| /PHP_5_5/ext/mbstring/libmbfl/mbfl/ |
| H A D | mbfilter.c | 981 mbfl_string *haystack, 991 if (haystack == NULL || haystack->val == NULL || needle == NULL || needle->val == NULL) { 1004 if (haystack->no_encoding != mbfl_no_encoding_utf8) { 1006 haystack_u8 = mbfl_convert_encoding(haystack, &_haystack_u8, mbfl_no_encoding_utf8); 1012 haystack_u8 = haystack; 1192 mbfl_string *haystack, 1201 if (haystack == NULL || needle == NULL) { 1235 haystack->no_encoding, 1249 p = haystack 980 mbfl_strpos( mbfl_string *haystack, mbfl_string *needle, int offset, int reverse) argument 1191 mbfl_substr_count( mbfl_string *haystack, mbfl_string *needle ) argument [all...] |
| H A D | mbfilter.h | 194 mbfl_strpos(mbfl_string *haystack, mbfl_string *needle, int offset, int reverse); 201 mbfl_substr_count(mbfl_string *haystack, mbfl_string *needle);
|
| /PHP_5_5/ext/iconv/ |
| H A D | iconv.c | 79 ZEND_ARG_INFO(0, haystack) 86 ZEND_ARG_INFO(0, haystack) 2029 /* {{{ proto int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 2030 Finds position of first occurrence of needle within part of haystack beginning with offset */ 2077 /* {{{ proto int iconv_strrpos(string haystack, string needle [, string charset]) 2078 Finds position of last occurrence of needle within part of haystack beginning with offset */
|
| /PHP_5_5/ext/mbstring/ |
| H A D | mbstring.c | 264 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) 313 ZEND_ARG_INFO(0, haystack) 320 ZEND_ARG_INFO(0, haystack) 2221 /* {{{ proto int mb_strpos(string haystack, strin 2227 mbfl_string haystack, needle; local 2290 mbfl_string haystack, needle; local 2389 mbfl_string haystack, needle; local 2418 mbfl_string haystack, needle; local 2443 mbfl_string haystack, needle, result, *ret = NULL; local 2501 mbfl_string haystack, needle, result, *ret = NULL; local 2563 mbfl_string haystack, needle, result, *ret = NULL; local 2621 mbfl_string haystack, needle, result, *ret = NULL; local 2673 mbfl_string haystack, needle; local 4660 mbfl_string haystack, needle; local [all...] |
| /PHP_5_5/ext/standard/ |
| H A D | php_string.h | 131 PHPAPI char *php_str_to_str_ex(char *haystack, int length, char *needle, 133 PHPAPI char *php_str_to_str(char *haystack, int length, char *needle,
|
| H A D | string.c | 1696 /* {{{ proto string stristr(string haystack, string needle[, bool part]) 1701 char *haystack; local 1709 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b", &haystack, &haystack_len, &needle, &part) == FAILURE) { 1713 haystack_dup = estrndup(haystack, haystack_len); 1738 RETVAL_STRINGL(haystack, found_offset, 1); 1740 RETVAL_STRINGL(haystack + found_offset, haystack_len - found_offset, 1); 1750 /* {{{ proto string strstr(string haystack, string needle[, bool part]) 1755 char *haystack; local 1762 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b", &haystack, &haystack_len, &needle, &part) == FAILURE) { 1772 found = php_memnstr(haystack, Z_STRVAL_ 1803 char *haystack; local 1853 char *haystack; local 1916 char *needle, *haystack; local 1989 char *needle, *haystack; local 2093 char *haystack; local 3653 php_str_to_str_ex(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length, int case_sensitivity, int *replace_count) argument 3825 php_str_to_str(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length) argument 5142 char *haystack, *needle; local 5546 char *haystack, *char_list; local [all...] |
| H A D | basic_functions.c | 325 ZEND_ARG_INFO(0, haystack) /* ARRAY_INFO(0, haystack, 0) */ 331 ZEND_ARG_INFO(0, haystack) /* ARRAY_INFO(0, haystack, 0) */ 2248 ZEND_ARG_INFO(0, haystack) 2254 ZEND_ARG_INFO(0, haystack) 2260 ZEND_ARG_INFO(0, haystack) 2266 ZEND_ARG_INFO(0, haystack) 2272 ZEND_ARG_INFO(0, haystack) 2278 ZEND_ARG_INFO(0, haystack) [all...] |
| /PHP_5_5/ext/intl/ |
| H A D | php_intl.c | 213 ZEND_ARG_INFO(0, haystack) 225 ZEND_ARG_INFO(0, haystack)
|
| /PHP_5_5/Zend/ |
| H A D | zend_operators.h | 273 zend_memnstr(char *haystack, char *needle, int needle_len, char *end) argument 275 char *p = haystack; 282 if (needle_len > end-haystack) {
|
| /PHP_5_5/ext/fileinfo/libmagic/ |
| H A D | softmagic.c | 2037 char *haystack; local 2042 /* Cut the search len from haystack, equals to REG_STARTEND */ 2043 haystack = estrndup(ms->search.s, ms->search.s_len); 2046 php_pcre_match_impl(pce, haystack, ms->search.s_len, retval, subpats, 1, 1, PREG_OFFSET_CAPTURE, 0 TSRMLS_CC); 2047 /* Free haystack */ 2048 efree(haystack);
|