Searched refs:haystack (Results 1 – 2 of 2) sorted by relevance
| /optee_os/lib/libutils/isoc/newlib/ |
| H A D | strstr.c | 121 const char *haystack = searchee; 130 while (*haystack && *needle) 131 ok &= *haystack++ == *needle++; 140 haystack = strchr (searchee + 1, *lookfor); 141 if (!haystack || needle_len == 1) 142 return (char *) haystack; 143 haystack_len = (haystack > searchee + needle_len ? 1 144 : needle_len + searchee - haystack); 148 return two_way_short_needle ((const unsigned char *) haystack, 151 return two_way_long_needle ((const unsigned char *) haystack, haystack_len,
|
| H A D | str-two-way.h | 230 two_way_short_needle (const unsigned char *haystack, size_t haystack_len, in two_way_short_needle() argument 252 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_short_needle() 257 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle() 264 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle() 267 return (RETURN_TYPE) (haystack + j); in two_way_short_needle() 286 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_short_needle() 291 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle() 298 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle() 301 return (RETURN_TYPE) (haystack + j); in two_way_short_needle() 324 two_way_long_needle (const unsigned char *haystack, size_t haystack_len, in two_way_long_needle() argument [all …]
|