Searched defs:haystack_len (Results 1 - 3 of 3) sorted by relevance

/PHP_TRUNK/ext/intl/grapheme/
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 );
339 grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset) argument
345 e = haystack + haystack_len - needle_len;
349 e = haystack + haystack_len - needle_len;
351 e = haystack + haystack_len + offset;
H A Dgrapheme_string.c110 size_t haystack_len, needle_len; local
116 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|l", &haystack, &haystack_len, &needle, &needle_len, &loffset) == FAILURE) {
122 if ( OUTSIDE_STRING(loffset, haystack_len) ) {
141 found = php_memnstr(haystack + offset, needle, needle_len, haystack + haystack_len);
149 if ( grapheme_ascii_check((unsigned char *)haystack, haystack_len) >= 0 ) {
154 ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIgnoreCase */, 0 /* last */ );
170 size_t haystack_len, needle_len; local
177 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|l", &haystack, &haystack_len, &needle, &needle_len, &loffset) == FAILURE) {
183 if ( OUTSIDE_STRING(loffset, haystack_len) ) {
199 is_ascii = ( grapheme_ascii_check((unsigned char*)haystack, haystack_len) >
239 size_t haystack_len, needle_len; local
302 size_t haystack_len, needle_len; local
605 size_t haystack_len, needle_len; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dstring.c5303 size_t haystack_len, needle_len; local
5306 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|ll", &haystack, &haystack_len, &needle, &needle_len, &offset, &length) == FAILURE) {
5316 endp = p + haystack_len;
5323 if ((size_t)offset > haystack_len) {
5335 if (length > (haystack_len - offset)) {

Completed in 21 milliseconds