Lines Matching refs:i
201 size_t i; /* Index into current byte of NEEDLE. */ in two_way_short_needle() local
223 i = MAX (suffix, memory); in two_way_short_needle()
224 while (i < needle_len && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
225 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
226 ++i; in two_way_short_needle()
227 if (needle_len <= i) in two_way_short_needle()
230 i = suffix - 1; in two_way_short_needle()
231 while (memory < i + 1 && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
232 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
233 --i; in two_way_short_needle()
234 if (i + 1 < memory + 1) in two_way_short_needle()
243 j += i - suffix + 1; in two_way_short_needle()
257 i = suffix; in two_way_short_needle()
258 while (i < needle_len && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
259 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
260 ++i; in two_way_short_needle()
261 if (needle_len <= i) in two_way_short_needle()
264 i = suffix - 1; in two_way_short_needle()
265 while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) in two_way_short_needle()
266 == CANON_ELEMENT (haystack[i + j]))) in two_way_short_needle()
267 --i; in two_way_short_needle()
268 if (i == SIZE_MAX) in two_way_short_needle()
273 j += i - suffix + 1; in two_way_short_needle()
295 size_t i; /* Index into current byte of NEEDLE. */ in two_way_long_needle() local
310 for (i = 0; i < 1U << CHAR_BIT; i++) in two_way_long_needle()
311 shift_table[i] = needle_len; in two_way_long_needle()
312 for (i = 0; i < needle_len; i++) in two_way_long_needle()
313 shift_table[CANON_ELEMENT (needle[i])] = needle_len - i - 1; in two_way_long_needle()
345 i = MAX (suffix, memory); in two_way_long_needle()
346 while (i < needle_len - 1 && (CANON_ELEMENT (needle[i]) in two_way_long_needle()
347 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
348 ++i; in two_way_long_needle()
349 if (needle_len - 1 <= i) in two_way_long_needle()
352 i = suffix - 1; in two_way_long_needle()
353 while (memory < i + 1 && (CANON_ELEMENT (needle[i]) in two_way_long_needle()
354 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
355 --i; in two_way_long_needle()
356 if (i + 1 < memory + 1) in two_way_long_needle()
365 j += i - suffix + 1; in two_way_long_needle()
389 i = suffix; in two_way_long_needle()
390 while (i < needle_len - 1 && (CANON_ELEMENT (needle[i]) in two_way_long_needle()
391 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
392 ++i; in two_way_long_needle()
393 if (needle_len - 1 <= i) in two_way_long_needle()
396 i = suffix - 1; in two_way_long_needle()
397 while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) in two_way_long_needle()
398 == CANON_ELEMENT (haystack[i + j]))) in two_way_long_needle()
399 --i; in two_way_long_needle()
400 if (i == SIZE_MAX) in two_way_long_needle()
405 j += i - suffix + 1; in two_way_long_needle()