Searched refs:haystack (Results 1 – 6 of 6) sorted by relevance
/picolibc-3.7.0-3.6.0/newlib/libc/string/ |
D | str-two-way.h | 199 two_way_short_needle (const unsigned char *haystack, size_t haystack_len, in two_way_short_needle() argument 221 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_short_needle() 226 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle() 233 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle() 236 return (RETURN_TYPE) (haystack + j); in two_way_short_needle() 255 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_short_needle() 260 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle() 267 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle() 270 return (RETURN_TYPE) (haystack + j); in two_way_short_needle() 293 two_way_long_needle (const unsigned char *haystack, size_t haystack_len, in two_way_long_needle() argument [all …]
|
D | strcasestr.c | 118 const char *haystack = s; in strcasestr() 127 while (*haystack && *needle) in strcasestr() 128 ok &= (tolower ((unsigned char) *haystack++) in strcasestr() 135 haystack = s + 1; in strcasestr() 140 return two_way_short_needle ((const unsigned char *) haystack, in strcasestr() 143 return two_way_long_needle ((const unsigned char *) haystack, haystack_len, in strcasestr()
|
D | strnstr.c | 42 strnstr(const char *haystack, const char *needle, size_t haystack_len) in strnstr() argument 47 char *x = memmem(haystack, haystack_len, needle, needle_len); in strnstr() 48 if (x && !memchr(haystack, 0, x - haystack)) in strnstr()
|
D | memmem.c | 69 memmem (const void *haystack, size_t hs_len, const void *needle, size_t ne_len) in memmem() argument 71 const char *hs = haystack; in memmem() 114 memmem (const void *haystack, size_t hs_len, const void *needle, size_t ne_len) in memmem() argument 116 const unsigned char *hs = haystack; in memmem()
|
D | strstr.c | 161 strstr (const char *haystack, const char *needle) in strstr() argument 163 const unsigned char *hs = (const unsigned char *) haystack; in strstr()
|
/picolibc-3.7.0-3.6.0/test/ |
D | test-strchr.c | 40 const char haystack[] = "hello world"; variable 43 char *ptr = func(haystack, needle); \ 46 result = ptr - haystack; \ 49 #func, haystack, needle, result, expect); \
|