Searched refs:needle_len (Results 1 – 8 of 8) sorted by relevance
/PHP-8.3/ext/intl/grapheme/ |
H A D | grapheme_string.c | 85 size_t haystack_len, needle_len; in PHP_FUNCTION() local 135 size_t haystack_len, needle_len; in PHP_FUNCTION() local 161 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION() 162 zend_str_tolower(needle_dup, needle_len); in PHP_FUNCTION() 176 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION() 197 size_t haystack_len, needle_len; in PHP_FUNCTION() local 229 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION() 252 size_t haystack_len, needle_len; in PHP_FUNCTION() local 277 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION() 278 zend_str_tolower(needle_dup, needle_len); in PHP_FUNCTION() [all …]
|
H A D | grapheme_util.h | 26 …trrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset); 28 int32_t grapheme_strrpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len… 29 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,…
|
H A D | grapheme_util.c | 99 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,… in grapheme_strpos_utf16() argument 118 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_len, &status ); in grapheme_strpos_utf16() 333 …strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset) in grapheme_strrpos_ascii() argument 339 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii() 342 if (needle_len > (size_t)-offset) { in grapheme_strrpos_ascii() 343 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii() 349 if (needle_len == 1) { in grapheme_strrpos_ascii() 361 if (memcmp(e, needle, needle_len) == 0) { in grapheme_strrpos_ascii()
|
/PHP-8.3/Zend/ |
H A D | zend_operators.h | 184 if (needle_len == 1) { in zend_memnstr() 192 if (needle_len > off_s) { in zend_memnstr() 198 end -= needle_len; in zend_memnstr() 202 if (ne == p[needle_len-1] && !memcmp(needle+1, p+1, needle_len-2)) { in zend_memnstr() 245 if (needle_len == 0) { in zend_memnrstr() 249 if (needle_len == 1) { in zend_memnrstr() 256 if (needle_len > off_s) { in zend_memnrstr() 262 p -= needle_len; in zend_memnrstr() 269 if (ne == p[needle_len-1] && !memcmp(needle + 1, p + 1, needle_len - 2)) { in zend_memnrstr() 958 if (needle_len == 1) { in zend_memnistr() [all …]
|
H A D | zend_operators.c | 3654 td[i] = needle_len + 1; 3658 for (i = needle_len - 1; i >= 0; i--) { 3664 for (i = 0; i < needle_len; i++) { 3677 if (needle_len == 0 || (end - haystack) < needle_len) { 3684 end -= needle_len; 3687 for (i = 0; i < needle_len; i++) { 3692 if (i == needle_len) { 3711 if (needle_len == 0 || (end - haystack) < needle_len) { 3718 p -= needle_len; 3721 for (i = 0; i < needle_len; i++) { [all …]
|
/PHP-8.3/ext/standard/ |
H A D | string.c | 2946 if (needle_len == str_len) { 2967 o += needle_len; 2974 if (str_len > needle_len) { 3107 if (needle_len < length) { 3112 if (needle_len == str_len) { 3120 if (str_len < needle_len) { 3129 o += needle_len; 3137 if (str_len > needle_len) { 5378 if (needle_len == 0) { 5409 if (needle_len == 1) { [all …]
|
H A D | php_string.h | 51 size_t needle_len, const char *str, size_t str_len);
|
/PHP-8.3/ext/mbstring/ |
H A D | mbstring.c | 1927 …size_t needle_len = pointer_to_offset_utf8((unsigned char*)ZSTR_VAL(needle), (unsigned char*)ZSTR_… in mb_find_strpos() local 1928 …er_utf8(offset_pointer, (unsigned char*)ZSTR_VAL(haystack_u8) + ZSTR_LEN(haystack_u8), needle_len); in mb_find_strpos()
|
Completed in 83 milliseconds