Lines Matching refs:i

233   size_t i; /* Index into current byte of NEEDLE.  */  in two_way_short_needle()  local
255 i = MAX (suffix, memory); in two_way_short_needle()
256 while (i < needle_len && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
257 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
258 ++i; in two_way_short_needle()
259 if (needle_len <= i) in two_way_short_needle()
262 i = suffix - 1; in two_way_short_needle()
263 while (memory < i + 1 && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
264 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
265 --i; in two_way_short_needle()
266 if (i + 1 < memory + 1) in two_way_short_needle()
275 j += i - suffix + 1; in two_way_short_needle()
289 i = suffix; in two_way_short_needle()
290 while (i < needle_len && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
291 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
292 ++i; in two_way_short_needle()
293 if (needle_len <= i) in two_way_short_needle()
296 i = suffix - 1; in two_way_short_needle()
297 while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
298 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
299 --i; in two_way_short_needle()
300 if (i == SIZE_MAX) in two_way_short_needle()
305 j += i - suffix + 1; in two_way_short_needle()
327 size_t i; /* Index into current byte of NEEDLE. */ in two_way_long_needle() local
342 for (i = 0; i < 1U << CHAR_BIT; i++) in two_way_long_needle()
343 shift_table[i] = needle_len; in two_way_long_needle()
344 for (i = 0; i < needle_len; i++) in two_way_long_needle()
345 shift_table[CANON_ELEMENT (needle[i])] = needle_len - i - 1; in two_way_long_needle()
377 i = MAX (suffix, memory); in two_way_long_needle()
378 while (i < needle_len - 1 && (CANON_ELEMENT (needle[i]) in two_way_long_needle()
379 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
380 ++i; in two_way_long_needle()
381 if (needle_len - 1 <= i) in two_way_long_needle()
384 i = suffix - 1; in two_way_long_needle()
385 while (memory < i + 1 && (CANON_ELEMENT (needle[i]) in two_way_long_needle()
386 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
387 --i; in two_way_long_needle()
388 if (i + 1 < memory + 1) in two_way_long_needle()
397 j += i - suffix + 1; in two_way_long_needle()
421 i = suffix; in two_way_long_needle()
422 while (i < needle_len - 1 && (CANON_ELEMENT (needle[i]) in two_way_long_needle()
423 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
424 ++i; in two_way_long_needle()
425 if (needle_len - 1 <= i) in two_way_long_needle()
428 i = suffix - 1; in two_way_long_needle()
429 while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) in two_way_long_needle()
430 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
431 --i; in two_way_long_needle()
432 if (i == SIZE_MAX) in two_way_long_needle()
437 j += i - suffix + 1; in two_way_long_needle()