Home | History | Annotate | Download | only in grep

Lines Matching refs:pattern

62 	fg->pattern = (unsigned char *)grep_strdup(pat);
65 for (i = 0; fg->pattern[i]; i++)
66 fg->pattern[i] = towupper((unsigned char)fg->pattern[i]);
77 unsigned char ch = fg->pattern[i];
97 /* Preprocess pattern. */
152 if (fg->pattern[i] == '.') {
159 /* Closest dot to the end of the pattern. */
166 free(fg->pattern);
167 fg->pattern = NULL;
183 grep_revstr(fg->pattern, fg->len);
188 * next character after the comparison is within the pattern. With
196 * Pattern Max shift
205 /* Preprocess pattern. */
209 * Put pattern back to normal after pre-processing to allow for easy
213 grep_revstr(fg->pattern, fg->len);
240 /* Verify data is >= pattern length before searching on it. */
245 if (grep_cmp(fg->pattern, data + j,
256 if (grep_cmp(fg->pattern, data + j - fg->len,
272 if (grep_cmp(fg->pattern, data + j, fg->len) == -1) {