Searched refs:haystack (Results 1 - 17 of 17) sorted by relevance

/PHP_TRUNK/ext/phar/phar/
H A Dpharcommand.inc191 * @param string $haystack The haystack
196 static function strEndsWith($haystack, $needle)
198 return substr($haystack, -strlen($needle)) == $needle;
/PHP_TRUNK/ext/intl/doc/
H A Dgrapheme_api.php31 * @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_TRUNK/ext/intl/grapheme/
H A Dgrapheme_util.h28 zend_long grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset);
30 int32_t grapheme_strrpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int f_ignore_case);
31 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int *puchar_pos, int f_ignore_case, int last);
H A Dgrapheme_string.c105 /* {{{ proto int grapheme_strpos(string haystack, string needle [, int offset ])
109 char *haystack, *needle; local
116 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|l", &haystack, &haystack_len, &needle, &needle_len, &loffset) == FAILURE) {
141 found = php_memnstr(haystack + offset, needle, needle_len, haystack + haystack_len);
148 /* if it is there, and if the haystack is ascii, we are all done */
149 if ( grapheme_ascii_check((unsigned char *)haystack, haystack_len) >= 0 ) {
150 RETURN_LONG(found - haystack);
154 ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIgnoreCase */, 0 /* last */ );
165 /* {{{ proto int grapheme_stripos(string haystack, strin
169 char *haystack, *needle, *haystack_dup, *needle_dup; local
238 char *haystack, *needle; local
301 char *haystack, *needle; local
603 char *haystack, *needle; local
[all...]
H A Dgrapheme_util.c133 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int32_t *puchar_pos, int f_ignore_case, int last) argument
149 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, haystack, haystack_len, &status );
156 /* get a pointer to the haystack taking into account the offset */
297 /* {{{ grapheme_get_haystack_offset - bump the haystack pointer based on the grapheme count offset */
339 grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset) argument
344 p = haystack + offset;
345 e = haystack + haystack_len - needle_len;
347 p = haystack;
349 e = haystack + haystack_len - needle_len;
351 e = haystack
[all...]
/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...]
H A Dmbfilter.h194 mbfl_strpos(mbfl_string *haystack, mbfl_string *needle, int offset, int reverse);
201 mbfl_substr_count(mbfl_string *haystack, mbfl_string *needle);
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dsoftmagic.c2101 char *haystack; local
2106 /* Cut the search len from haystack, equals to REG_STARTEND */
2107 haystack = estrndup(ms->search.s, ms->search.s_len);
2110 php_pcre_match_impl(pce, haystack, ms->search.s_len, &retval, &subpats, 1, 1, PREG_OFFSET_CAPTURE, 0);
2111 /* Free haystack */
2112 efree(haystack);
/PHP_TRUNK/Zend/
H A Dzend_operators.h90 ZEND_API const char* zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end);
91 ZEND_API const char* zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end);
170 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
172 const char *p = haystack;
181 off_p = end - haystack;
207 return zend_memnstr_ex(haystack, needle, needle_len, end);
228 zend_memnrstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
236 return (const char *)zend_memrchr(haystack, *needle, (p - haystack));
239 off_p = end - haystack;
[all...]
H A Dzend_operators.c2825 ZEND_API const char* zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end) /* {{{ */ argument
2831 if (needle_len == 0 || (end - haystack) == 0) {
2837 p = haystack;
2856 ZEND_API const char* zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end) /* {{{ */ argument
2862 if (needle_len == 0 || (end - haystack) == 0) {
2871 while (p >= haystack) {
2882 if (UNEXPECTED(p == haystack)) {
/PHP_TRUNK/ext/iconv/
H A Diconv.c79 ZEND_ARG_INFO(0, haystack)
86 ZEND_ARG_INFO(0, haystack)
2087 /* {{{ proto int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
2088 Finds position of first occurrence of needle within part of haystack beginning with offset */
2133 /* {{{ proto int iconv_strrpos(string haystack, string needle [, string charset])
2134 Finds position of last occurrence of needle within part of haystack beginning with offset */
/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)
2250 /* {{{ proto int mb_strpos(string haystack, strin
2256 mbfl_string haystack, needle; local
2319 mbfl_string haystack, needle; local
2418 mbfl_string haystack, needle; local
2447 mbfl_string haystack, needle; local
2472 mbfl_string haystack, needle, result, *ret = NULL; local
2534 mbfl_string haystack, needle, result, *ret = NULL; local
2600 mbfl_string haystack, needle, result, *ret = NULL; local
2663 mbfl_string haystack, needle, result, *ret = NULL; local
2719 mbfl_string haystack, needle; local
4686 mbfl_string haystack, needle; local
[all...]
/PHP_TRUNK/win32/
H A Dsendmail.c361 PHPAPI zend_string *php_str_to_str(char *haystack, size_t length, char *needle,
/PHP_TRUNK/ext/intl/
H A Dphp_intl.c214 ZEND_ARG_INFO(0, haystack)
226 ZEND_ARG_INFO(0, haystack)
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c321 ZEND_ARG_INFO(0, haystack) /* ARRAY_INFO(0, haystack, 0) */
327 ZEND_ARG_INFO(0, haystack) /* ARRAY_INFO(0, haystack, 0) */
2206 ZEND_ARG_INFO(0, haystack)
2212 ZEND_ARG_INFO(0, haystack)
2218 ZEND_ARG_INFO(0, haystack)
2224 ZEND_ARG_INFO(0, haystack)
2230 ZEND_ARG_INFO(0, haystack)
2236 ZEND_ARG_INFO(0, haystack)
[all...]
H A Dphp_string.h133 PHPAPI zend_string *php_str_to_str(char *haystack, size_t length, char *needle,
H A Dstring.c1807 /* {{{ proto string stristr(string haystack, string needle[, bool part])
1812 zend_string *haystack; local
1819 if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sz|b", &haystack, &needle, &part) == FAILURE) {
1823 haystack_dup = estrndup(haystack->val, haystack->len);
1833 found = php_stristr(haystack_dup, orig_needle, haystack->len, Z_STRLEN_P(needle));
1842 found = php_stristr(haystack_dup, needle_char, haystack->len, 1);
1848 RETVAL_STRINGL(haystack->val, found_offset);
1850 RETVAL_STRINGL(haystack->val + found_offset, haystack
1865 zend_string *haystack; local
1912 zend_string *haystack; local
1970 zend_string *haystack; local
2031 zend_string *haystack; local
2100 zend_string *haystack; local
2207 zend_string *haystack; local
3215 php_str_to_str_ex(zend_string *haystack, char *needle, size_t needle_len, char *str, size_t str_len, zend_long *replace_count) argument
3285 php_str_to_str_i_ex(zend_string *haystack, char *lc_haystack, zend_string *needle, char *str, size_t str_len, zend_long *replace_count) argument
3375 php_str_to_str(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len) argument
5268 char *haystack, *needle; local
5670 zend_string *haystack, *char_list; local
[all...]

Completed in 51 milliseconds