Searched refs:haystack_len (Results 1 - 4 of 4) sorted by relevance

/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_string.c112 size_t haystack_len, needle_len; local
118 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FAILURE) {
126 if ( OUTSIDE_STRING(loffset, haystack_len) ) {
149 found = (unsigned char *)php_memnstr((char *)haystack + offset, (char *)needle, needle_len, (char *)haystack + haystack_len);
157 if ( grapheme_ascii_check(haystack, haystack_len) >= 0 ) {
163 ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIgnoreCase */, 0 /* last */ );
179 size_t haystack_len, needle_len; local
186 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FAILURE) {
194 if ( OUTSIDE_STRING(loffset, haystack_len) ) {
214 is_ascii = ( grapheme_ascii_check(haystack, haystack_len) >
254 size_t haystack_len, needle_len; local
324 size_t haystack_len, needle_len; local
623 size_t haystack_len, needle_len; 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) argument
147 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, (char *) haystack, haystack_len, &status );
337 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) argument
343 e = haystack + haystack_len - needle_len;
347 e = haystack + haystack_len - needle_len;
349 e = haystack + haystack_len + offset;
H A Dgrapheme_util.h28 int grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int f_ignore_case);
30 int 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, int last);
42 int32_t grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset);
/PHP_TRUNK/ext/standard/
H A Dstring.c4975 size_t haystack_len, needle_len; local
4978 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|ll", &haystack, &haystack_len, &needle, &needle_len, &offset, &length) == FAILURE) {
4988 endp = p + haystack_len;
4995 if ((size_t)offset > haystack_len) {
5007 if (length > (haystack_len - offset)) {

Completed in 11 milliseconds