Lines Matching refs:patIndex
327 // Find the position of the last character in pat from patIndex
328 int GetGoodSuffixLengthByLastChar(uint8_t *pat, int patIndex, int patLen)
332 while (patIndex >= 0) {
333 if (pat[patIndex] == pat[lastIndex]) {
334 index = patIndex;
337 patIndex--;
342 // Find the position of the first character in pat from patIndex
343 int GetGoodSuffixLengthByFirstChar(uint8_t *pat, int patIndex, int tarlen)
346 for (int i = patIndex; i < tarlen; i++) {
355 // Match forward from patIndex to get the position of the singleChar in the pat
357 int GetBadCharLengthInReverseOrder(uint8_t *pat, char singleChar, int patIndex)
360 for (int i = patIndex - 1; i >= 0; --i) {
366 return patIndex - index;
370 int GetBadCharLengthInSequence(uint8_t *pat, char singleChar, int patIndex, int tarlen)
373 for (int i = patIndex; i < tarlen; i++) {