Home
last modified time | relevance | path

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

/PHP-8.4/ext/intl/grapheme/
H A Dgrapheme_string.c85 size_t haystack_len, needle_len; in PHP_FUNCTION() local
94 Z_PARAM_STRING(needle, needle_len) in PHP_FUNCTION()
138 size_t haystack_len, needle_len; in PHP_FUNCTION() local
147 Z_PARAM_STRING(needle, needle_len) in PHP_FUNCTION()
168 zend_str_tolower(needle_dup, needle_len); in PHP_FUNCTION()
203 size_t haystack_len, needle_len; in PHP_FUNCTION() local
211 Z_PARAM_STRING(needle, needle_len) in PHP_FUNCTION()
261 size_t haystack_len, needle_len; in PHP_FUNCTION() local
269 Z_PARAM_STRING(needle, needle_len) in PHP_FUNCTION()
542 size_t haystack_len, needle_len; in strstr_common_handler() local
[all …]
H A Dgrapheme_util.h26 …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 Dgrapheme_util.c97 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,… in grapheme_strpos_utf16() argument
116 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_len, &status ); in grapheme_strpos_utf16()
331 …strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset) in grapheme_strrpos_ascii() argument
337 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
340 if (needle_len > (size_t)-offset) { in grapheme_strrpos_ascii()
341 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
347 if (needle_len == 1) { in grapheme_strrpos_ascii()
359 if (memcmp(e, needle, needle_len) == 0) { in grapheme_strrpos_ascii()
/PHP-8.4/Zend/
H A Dzend_operators.h184 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()
967 if (needle_len == 1) { in zend_memnistr()
[all …]
H A Dzend_operators.c3666 td[i] = needle_len + 1;
3670 for (i = needle_len - 1; i >= 0; i--) {
3676 for (i = 0; i < needle_len; i++) {
3689 if (needle_len == 0 || (end - haystack) < needle_len) {
3696 end -= needle_len;
3699 for (i = 0; i < needle_len; i++) {
3704 if (i == needle_len) {
3723 if (needle_len == 0 || (end - haystack) < needle_len) {
3730 p -= needle_len;
3733 for (i = 0; i < needle_len; i++) {
[all …]
/PHP-8.4/ext/standard/
H A Dstring.c3172 if (needle_len == str_len) {
3193 o += needle_len;
3200 if (str_len > needle_len) {
3327 if (needle_len < length) {
3332 if (needle_len == str_len) {
3340 if (str_len < needle_len) {
3349 o += needle_len;
3357 if (str_len > needle_len) {
5687 if (needle_len == 0) {
5718 if (needle_len == 1) {
[all …]
H A Dphp_string.h47 size_t needle_len, const char *str, size_t str_len);
/PHP-8.4/ext/mbstring/
H A Dmbstring.c1932 …size_t needle_len = pointer_to_offset_utf8((unsigned char*)ZSTR_VAL(needle), (unsigned char*)ZSTR_… in mb_find_strpos() local
1933 …er_utf8(offset_pointer, (unsigned char*)ZSTR_VAL(haystack_u8) + ZSTR_LEN(haystack_u8), needle_len); in mb_find_strpos()

Completed in 95 milliseconds