Searched refs:haystack_len (Results 1 – 3 of 3) sorted by relevance
/picolibc-latest/newlib/libc/string/ |
D | strnstr.c | 42 strnstr(const char *haystack, const char *needle, size_t haystack_len) in strnstr() argument 44 size_t needle_len = strnlen(needle, haystack_len); in strnstr() 46 if (needle_len < haystack_len || !needle[needle_len]) { in strnstr() 47 char *x = memmem(haystack, haystack_len, needle, needle_len); in strnstr()
|
D | strcasestr.c | 121 size_t haystack_len; /* Known minimum length of HAYSTACK. */ in strcasestr() 136 haystack_len = needle_len - 1; in strcasestr() 141 haystack_len, in strcasestr() 143 return two_way_long_needle ((const unsigned char *) haystack, haystack_len, in strcasestr()
|
D | str-two-way.h | 198 two_way_short_needle (const unsigned char *haystack, size_t haystack_len, in two_way_short_needle() argument 220 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_short_needle() 254 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_short_needle() 292 two_way_long_needle (const unsigned char *haystack, size_t haystack_len, in two_way_long_needle() argument 325 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_long_needle() 377 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_long_needle()
|