Lines Matching defs:pat
327 // Find the position of the last character in pat from patIndex
328 int GetGoodSuffixLengthByLastChar(uint8_t *pat, int patIndex, int patLen)
333 if (pat[patIndex] == pat[lastIndex]) {
342 // Find the position of the first character in pat from patIndex
343 int GetGoodSuffixLengthByFirstChar(uint8_t *pat, int patIndex, int tarlen)
347 if (pat[0] == pat[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)
361 if (pat[i] == singleChar) {
369 // Get the position of character c in pat
370 int GetBadCharLengthInSequence(uint8_t *pat, char singleChar, int patIndex, int tarlen)
374 if (singleChar == pat[i]) {