Lines Matching refs:needle_len

92 …TCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, const char *end…
93 …CALL 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) in zend_memnstr() argument
150 if (needle_len == 0) { in zend_memnstr()
154 if (needle_len == 1) { in zend_memnstr()
161 if (needle_len > off_s) { in zend_memnstr()
165 …if (EXPECTED(off_s < 1024 || needle_len < 9)) { /* glibc memchr is faster when needle is too short… in zend_memnstr()
166 const char ne = needle[needle_len-1]; in zend_memnstr()
167 end -= needle_len; in zend_memnstr()
170 if ((p = (const char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) { in zend_memnstr()
171 if (!memcmp(needle+1, p+1, needle_len-2)) { in zend_memnstr()
185 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr()
206 zend_memnrstr(const char *haystack, const char *needle, size_t needle_len, const char *end) in zend_memnrstr() argument
212 if (needle_len == 0) { in zend_memnrstr()
216 if (needle_len == 1) { in zend_memnrstr()
223 if (needle_len > off_s) { in zend_memnrstr()
227 if (EXPECTED(off_s < 1024 || needle_len < 3)) { in zend_memnrstr()
228 const char ne = needle[needle_len-1]; in zend_memnrstr()
229 p -= needle_len; in zend_memnrstr()
236 if (ne == p[needle_len-1] && !memcmp(needle + 1, p + 1, needle_len - 2)) { in zend_memnrstr()
243 return zend_memnrstr_ex(haystack, needle, needle_len, end); in zend_memnrstr()