Lines Matching refs:pattern
72 /* 5*/ "\t[-e pattern] [-f file] [--binary-files=value] [--color=when]\n",
74 /* 7*/ "\t[pattern] [file ...]\n",
85 char **pattern;
114 bool wflag; /* -w: pattern must start and end on word boundaries */
115 bool xflag; /* -x: pattern must match entire line */
222 * Adds a searching pattern to the internal array.
233 pattern = grep_realloc(pattern, ++pattern_sz *
234 sizeof(*pattern));
239 pattern[patterns] = grep_malloc(len + 1);
240 memcpy(pattern[patterns], pat, len);
241 pattern[patterns][len] = '\0';
246 * Adds a file include/exclude pattern to the internal array.
264 * Adds a directory include/exclude pattern to the internal array.
635 /* Fail if we don't have any pattern */
667 fgrepcomp(&fg_pattern[i], pattern[i]);
670 if (fastcomp(&fg_pattern[i], pattern[i])) {
672 c = regcomp(&r_pattern[i], pattern[i], cflags);