Searched refs:needle_len (Results 1 - 9 of 9) sorted by relevance

/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_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
153 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_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;
348 if (needle_len > -offset) {
349 e = haystack + haystack_len - needle_len;
355 if (needle_len == 1) {
367 if (memcmp(e, needle, needle_len) == 0) {
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) {
132 if (needle_len == 0) {
141 found = php_memnstr(haystack + offset, needle, needle_len, haystack + haystack_len);
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) {
193 if (needle_len == 0) {
202 needle_dup = estrndup(needle, needle_len);
203 php_strtolower(needle_dup, needle_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/mbstring/libmbfl/mbfl/
H A Dmbfilter.c875 int needle_len; member in struct:collector_strpos_data
895 if (pc->needle_pos >= pc->needle_len) {
1089 unsigned int needle_u8_len = needle_u8->len, needle_len = 0; local
1101 ++needle_len;
1103 ++needle_len;
1109 ++needle_len;
1111 ++needle_len;
1118 if (-offset > needle_len) {
1119 offset += needle_len;
1225 pc.needle_len
[all...]
/PHP_TRUNK/ext/standard/
H A Dphp_string.h134 size_t needle_len, char *str, size_t str_len);
H A Dstring.c2035 size_t needle_len; local
2055 needle_len = Z_STRLEN_P(zneedle);
2062 needle_len = 1;
2065 if ((haystack->len == 0) || (needle_len == 0)) {
2082 if (-offset < needle_len) {
2085 e = haystack->val + haystack->len + offset + needle_len;
2089 if ((found = (char *)zend_memnrstr(p, needle, needle_len, e))) {
3236 char *needle, size_t needle_len, char *str, size_t str_len, zend_long *replace_count)
3240 if (needle_len < haystack->len) {
3244 if (needle_len
3235 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
3395 php_str_to_str(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len) argument
5306 size_t haystack_len, needle_len; local
[all...]
/PHP_TRUNK/win32/
H A Dsendmail.c342 size_t needle_len, char *str, size_t str_len);
/PHP_TRUNK/Zend/
H A Dzend_operators.h90 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end);
91 ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end);
142 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
145 const char ne = needle[needle_len-1];
149 if (needle_len == 1) {
156 if (needle_len > off_s) {
160 if (EXPECTED(off_s < 1024 || needle_len < 3)) {
161 end -= needle_len;
164 if ((p = (const char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
165 if (!memcmp(needle, p, needle_len
200 zend_memnrstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
[all...]
H A Dzend_operators.c2757 static zend_always_inline void zend_memnstr_ex_pre(unsigned int td[], const char *needle, size_t needle_len, int reverse) /* {{{ */ { argument
2761 td[i] = needle_len + 1;
2765 for (i = needle_len - 1; i >= 0; i--) {
2769 for (i = 0; i < needle_len; i++) {
2770 td[(unsigned char)needle[i]] = (int)needle_len - i;
2776 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end) /* {{{ */ argument
2782 if (needle_len == 0 || (end - haystack) == 0) {
2786 zend_memnstr_ex_pre(td, needle, needle_len, 0);
2789 end -= needle_len;
2792 for (i = 0; i < needle_len;
2807 zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end) argument
[all...]

Completed in 20 milliseconds