Searched defs:haystack (Results 1 - 8 of 8) sorted by relevance

/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c981 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...]
/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_string.c107 /* {{{ 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, NULL, 0 /* fIgnoreCase */, 0 /* last */ 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
622 unsigned char *haystack, *needle, *found; local
[all...]
H A Dgrapheme_util.c131 int 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, int last TSRMLS_DC) argument
147 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, (char *) haystack, haystack_len, &status );
154 /* get a pointer to the haystack taking into account the offset */
295 /* {{{ grapheme_get_haystack_offset - bump the haystack pointer based on the grapheme count offset */
337 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) argument
342 p = haystack + offset;
343 e = haystack + haystack_len - needle_len;
345 p = haystack;
347 e = haystack + haystack_len - needle_len;
349 e = haystack
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dsoftmagic.c2100 char *haystack; local
2105 /* Cut the search len from haystack, equals to REG_STARTEND */
2106 haystack = estrndup(ms->search.s, ms->search.s_len);
2109 php_pcre_match_impl(pce, haystack, ms->search.s_len, &retval, &subpats, 1, 1, PREG_OFFSET_CAPTURE, 0 TSRMLS_CC);
2110 /* Free haystack */
2111 efree(haystack);
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c263 ZEND_ARG_INFO(0, haystack)
270 ZEND_ARG_INFO(0, haystack)
277 ZEND_ARG_INFO(0, haystack)
284 ZEND_ARG_INFO(0, haystack)
291 ZEND_ARG_INFO(0, haystack)
298 ZEND_ARG_INFO(0, haystack)
305 ZEND_ARG_INFO(0, haystack)
312 ZEND_ARG_INFO(0, haystack)
319 ZEND_ARG_INFO(0, haystack)
2243 /* {{{ proto int mb_strpos(string haystack, strin
2249 mbfl_string haystack, needle; local
2312 mbfl_string haystack, needle; local
2411 mbfl_string haystack, needle; local
2440 mbfl_string haystack, needle; local
2465 mbfl_string haystack, needle, result, *ret = NULL; local
2527 mbfl_string haystack, needle, result, *ret = NULL; local
2593 mbfl_string haystack, needle, result, *ret = NULL; local
2656 mbfl_string haystack, needle, result, *ret = NULL; local
2712 mbfl_string haystack, needle; local
4675 mbfl_string haystack, needle; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_operators.h161 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
163 const char *p = haystack;
172 off_p = end - haystack;
/PHP_TRUNK/ext/standard/
H A Dstring.c1681 /* {{{ proto string stristr(string haystack, string needle[, bool part])
1686 zend_string *haystack; local
1693 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Sz|b", &haystack, &needle, &part) == FAILURE) {
1697 haystack_dup = estrndup(haystack->val, haystack->len);
1707 found = php_stristr(haystack_dup, orig_needle, haystack->len, Z_STRLEN_P(needle));
1716 found = php_stristr(haystack_dup, needle_char, haystack->len, 1);
1722 RETVAL_STRINGL(haystack->val, found_offset);
1724 RETVAL_STRINGL(haystack->val + found_offset, haystack
1739 zend_string *haystack; local
1786 zend_string *haystack; local
1844 zend_string *haystack; local
1907 zend_string *haystack; local
1990 zend_string *haystack; local
2094 zend_string *haystack; local
3490 php_str_to_str_ex(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len, int case_sensitivity, size_t *replace_count) argument
3655 php_str_to_str(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len) argument
4969 char *haystack, *needle; local
5367 zend_string *haystack, *char_list; local
[all...]
/PHP_TRUNK/main/
H A Drfc1867.c590 static void *php_ap_memstr(char *haystack, int haystacklen, char *needle, int needlen, int partial) argument
593 char *ptr = haystack;
599 len = haystacklen - (ptr - (char *)haystack);

Completed in 22 milliseconds