Searched defs:haystack_len (Results 1 - 3 of 3) 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() TSRMLS_CC, "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 */ TSRMLS_CC );
179 size_t haystack_len, needle_len; local
186 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "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 TSRMLS_DC) 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;
/PHP_TRUNK/ext/standard/
H A Dstring.c4985 size_t haystack_len, needle_len; local
4988 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|ll", &haystack, &haystack_len, &needle, &needle_len, &offset, &length) == FAILURE) {
4998 endp = p + haystack_len;
5005 if ((size_t)offset > haystack_len) {
5017 if (length > (haystack_len - offset)) {

Completed in 11 milliseconds