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

/PHP_5_5/ext/intl/grapheme/
H A Dgrapheme_string.c112 int 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 int 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 int haystack_len, needle_len; local
324 int haystack_len, needle_len; local
616 int haystack_len, needle_len; local
[all...]
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 TSRMLS_DC);
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 TSRMLS_DC);
42 int32_t grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset);
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_5_5/ext/standard/
H A Dstring.c1716 int haystack_len; local
1723 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b", &haystack, &haystack_len, &needle, &part) == FAILURE) {
1727 haystack_dup = estrndup(haystack, haystack_len);
1737 found = php_stristr(haystack_dup, orig_needle, haystack_len, Z_STRLEN_P(needle));
1746 found = php_stristr(haystack_dup, needle_char, haystack_len, 1);
1754 RETVAL_STRINGL(haystack + found_offset, haystack_len - found_offset, 1);
1770 int haystack_len; local
1776 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b", &haystack, &haystack_len, &needle, &part) == FAILURE) {
1786 found = php_memnstr(haystack, Z_STRVAL_P(needle), Z_STRLEN_P(needle), haystack + haystack_len);
1793 found = php_memnstr(haystack, needle_char, 1, haystack + haystack_len);
1821 int haystack_len; local
1868 int haystack_len; local
1931 int needle_len, haystack_len; local
2004 int needle_len, haystack_len; local
2110 int haystack_len; local
5167 int haystack_len, needle_len; local
5568 int haystack_len, char_list_len; local
[all...]

Completed in 18 milliseconds