Searched defs:needle_len (Results 1 - 6 of 6) sorted by relevance

/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/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
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
591 size_t haystack_len, needle_len; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_operators.c2866 static zend_always_inline void zend_memnstr_ex_pre(unsigned int td[], const char *needle, size_t needle_len, int reverse) /* {{{ */ { argument
2870 td[i] = needle_len + 1;
2874 for (i = needle_len - 1; i >= 0; i--) {
2878 for (i = 0; i < needle_len; i++) {
2879 td[(unsigned char)needle[i]] = (int)needle_len - i;
2885 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, const char *end) /* {{{ */ argument
2891 if (needle_len == 0 || (end - haystack) == 0) {
2895 zend_memnstr_ex_pre(td, needle, needle_len, 0);
2898 end -= needle_len;
2901 for (i = 0; i < needle_len;
2916 zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, const char *end) argument
[all...]
H A Dzend_operators.h92 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, const char *end);
93 ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, const char *end);
144 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const char *end) argument
147 const char ne = needle[needle_len-1];
151 if (needle_len == 1) {
158 if (needle_len > off_s) {
162 if (EXPECTED(off_s < 1024 || needle_len < 3)) {
163 end -= needle_len;
166 if ((p = (const char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
167 if (!memcmp(needle, p, needle_len
202 zend_memnrstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dstring.c2068 size_t needle_len; local
2088 needle_len = Z_STRLEN_P(zneedle);
2095 needle_len = 1;
2098 if ((ZSTR_LEN(haystack) == 0) || (needle_len == 0)) {
2115 if (-offset < needle_len) {
2118 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) + offset + needle_len;
2122 if ((found = (char *)zend_memnrstr(p, needle, needle_len, e))) {
3192 char *needle, size_t needle_len, char *str, size_t str_len, zend_long *replace_count)
3196 if (needle_len < ZSTR_LEN(haystack)) {
3200 if (needle_len
3191 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
3351 php_str_to_str(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len) argument
5248 size_t haystack_len, needle_len; local
[all...]

Completed in 19 milliseconds