Lines Matching refs:haystack

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
357 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_long_needle()
361 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in two_way_long_needle()
379 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
386 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
389 return (RETURN_TYPE) (haystack + j); in two_way_long_needle()
409 while (AVAILABLE (haystack, haystack_len, j, needle_len)) in two_way_long_needle()
413 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in two_way_long_needle()
423 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
430 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
433 return (RETURN_TYPE) (haystack + j); in two_way_long_needle()