Home
last modified time | relevance | path

Searched refs:needle_len (Results 1 – 7 of 7) sorted by relevance

/PHP-5.6/ext/intl/grapheme/
H A Dgrapheme_string.c112 int haystack_len, needle_len; in PHP_FUNCTION() local
139 if (needle_len == 0) { in PHP_FUNCTION()
180 int haystack_len, needle_len; in PHP_FUNCTION() local
207 if (needle_len == 0) { in PHP_FUNCTION()
220 php_strtolower((char *)needle_dup, needle_len); in PHP_FUNCTION()
256 int haystack_len, needle_len; in PHP_FUNCTION() local
282 if (needle_len == 0) { in PHP_FUNCTION()
326 int haystack_len, needle_len; in PHP_FUNCTION() local
352 if (needle_len == 0) { in PHP_FUNCTION()
618 int haystack_len, needle_len; in strstr_common_handler() local
[all …]
H A Dgrapheme_util.h28 …ed char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset,…
30 …ed char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset,…
42 …d char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset);
H A Dgrapheme_util.c131 …ed char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset,… in grapheme_strpos_utf16() argument
151 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, (char *) needle, needle_len, &status ); in grapheme_strpos_utf16()
337 …ed char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) in grapheme_strrpos_ascii() argument
343 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
346 if (needle_len > -offset) { in grapheme_strrpos_ascii()
347 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
353 if (needle_len == 1) { in grapheme_strrpos_ascii()
365 if (memcmp(e, needle, needle_len) == 0) { in grapheme_strrpos_ascii()
/PHP-5.6/ext/standard/
H A Dstring.c1961 needle_len = 1;
1982 if (needle_len > -offset) {
1989 if (needle_len == 1) {
2035 needle_len = 1;
2042 if (needle_len == 1) {
2093 if (needle_len > -offset) {
3714 if (needle_len < length) {
3770 o += needle_len;
5217 if (needle_len == 0) {
5249 if (needle_len == 1) {
[all …]
H A Dphp_string.h132 …int needle_len, char *str, int str_len, int *_new_length, int case_sensitivity, int *replace_count…
134 int needle_len, char *str, int str_len, int *_new_length);
/PHP-5.6/Zend/
H A Dzend_operators.h274 zend_memnstr(const char *haystack, const char *needle, int needle_len, char *end) in zend_memnstr() argument
277 const char ne = needle[needle_len-1]; in zend_memnstr()
279 if (needle_len == 1) { in zend_memnstr()
283 if (needle_len > end-haystack) { in zend_memnstr()
287 end -= needle_len; in zend_memnstr()
290 if ((p = (char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) { in zend_memnstr()
291 if (!memcmp(needle, p, needle_len-1)) { in zend_memnstr()
/PHP-5.6/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c875 int needle_len; member
895 if (pc->needle_pos >= pc->needle_len) { in collector_strpos()
1089 unsigned int needle_u8_len = needle_u8->len, needle_len = 0; in mbfl_strpos() local
1101 ++needle_len; in mbfl_strpos()
1103 ++needle_len; in mbfl_strpos()
1109 ++needle_len; in mbfl_strpos()
1111 ++needle_len; in mbfl_strpos()
1118 if (-offset > needle_len) { in mbfl_strpos()
1119 offset += needle_len; in mbfl_strpos()
1225 pc.needle_len = pc.needle.pos; in mbfl_substr_count()
[all …]

Completed in 39 milliseconds