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

/PHP_5_3/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, &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
595 unsigned char *haystack, *needle, *found; local
[all...]
H A Dgrapheme_util.c152 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...]
/PHP_5_3/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c861 mbfl_string *haystack,
871 if (haystack == NULL || haystack->val == NULL || needle == NULL || needle->val == NULL) {
884 if (haystack->no_encoding != mbfl_no_encoding_utf8) {
886 haystack_u8 = mbfl_convert_encoding(haystack, &_haystack_u8, mbfl_no_encoding_utf8);
892 haystack_u8 = haystack;
1072 mbfl_string *haystack,
1081 if (haystack == NULL || needle == NULL) {
1115 haystack->no_encoding,
1129 p = haystack
860 mbfl_strpos( mbfl_string *haystack, mbfl_string *needle, int offset, int reverse) argument
1071 mbfl_substr_count( mbfl_string *haystack, mbfl_string *needle ) argument
[all...]
/PHP_5_3/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)
2052 /* {{{ proto int mb_strpos(string haystack, strin
2058 mbfl_string haystack, needle; local
2121 mbfl_string haystack, needle; local
2220 mbfl_string haystack, needle; local
2249 mbfl_string haystack, needle; local
2274 mbfl_string haystack, needle, result, *ret = NULL; local
2332 mbfl_string haystack, needle, result, *ret = NULL; local
2394 mbfl_string haystack, needle, result, *ret = NULL; local
2452 mbfl_string haystack, needle, result, *ret = NULL; local
2504 mbfl_string haystack, needle; local
4656 mbfl_string haystack, needle; local
[all...]
/PHP_5_3/main/
H A Drfc1867.c668 static void *php_ap_memstr(char *haystack, int haystacklen, char *needle, int needlen, int partial) argument
671 char *ptr = haystack;
677 len = haystacklen - (ptr - (char *)haystack);
/PHP_5_3/Zend/
H A Dzend_operators.h227 zend_memnstr(char *haystack, char *needle, int needle_len, char *end) argument
229 char *p = haystack;
236 if (needle_len > end-haystack) {
/PHP_5_3/ext/standard/
H A Dstring.c1623 /* {{{ proto string stristr(string haystack, string needle[, bool part])
1628 char *haystack; local
1636 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b", &haystack, &haystack_len, &needle, &part) == FAILURE) {
1640 haystack_dup = estrndup(haystack, haystack_len);
1665 RETVAL_STRINGL(haystack, found_offset, 1);
1667 RETVAL_STRINGL(haystack + found_offset, haystack_len - found_offset, 1);
1677 /* {{{ proto string strstr(string haystack, string needle[, bool part])
1682 char *haystack; local
1689 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b", &haystack, &haystack_len, &needle, &part) == FAILURE) {
1699 found = php_memnstr(haystack, Z_STRVAL_
1730 char *haystack; local
1780 char *haystack; local
1843 char *needle, *haystack; local
1916 char *needle, *haystack; local
2020 char *haystack; local
3398 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
3570 php_str_to_str(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length) argument
4835 char *haystack, *needle; local
5239 char *haystack, *char_list; local
[all...]
/PHP_5_3/ext/fileinfo/libmagic/
H A Dsoftmagic.c1874 char *haystack; local
1879 /* Cut the search len from haystack, equals to REG_STARTEND */
1880 haystack = estrndup(ms->search.s, ms->search.s_len);
1884 php_pcre_match_impl(pce, haystack, ms->search.s_len, retval, subpats, 1, 1, PREG_OFFSET_CAPTURE, 0 TSRMLS_CC);
1886 php_pcre_match_impl(pce, IS_STRING, haystack, ms->search.s_len, retval, subpats, 1, 1, PREG_OFFSET_CAPTURE, 0 TSRMLS_CC);
1888 /* Free haystack */
1889 efree(haystack);

Completed in 35 milliseconds