Lines Matching defs: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 */
223 * Adds a searching pattern to the internal array.
234 pattern = grep_realloc(pattern, ++pattern_sz *
235 sizeof(*pattern));
240 pattern[patterns] = grep_malloc(len + 1);
241 memcpy(pattern[patterns], pat, len);
242 pattern[patterns][len] = '\0';
247 * Adds a file include/exclude pattern to the internal array.
265 * Adds a directory include/exclude pattern to the internal array.
638 /* Fail if we don't have any pattern */
670 fgrepcomp(&fg_pattern[i], pattern[i]);
673 if (fastcomp(&fg_pattern[i], pattern[i])) {
675 c = regcomp(&r_pattern[i], pattern[i], cflags);