Home | History | Annotate | Download | only in src

Lines Matching defs:regex

14 #include <regex.h>
30 regex_t regex; /* compiled regular expression */
31 char regcomp; /* regex_str has been compiled to regex */
91 * the root directory or a regex that is too complex for us). */
125 * there is no match - IE for a file in the root directory or a regex that is
254 regerr = regcomp(&spec->regex, anchored_regex,
258 errsz = regerror(regerr, &spec->regex, NULL, 0);
262 (void)regerror(regerr, &spec->regex,
283 char *buf_p, *regex = buf1, *type = buf2, *context = buf3;
297 items = sscanf(line_buf, "%255s %255s %255s", regex, type, context);
309 len = get_stem_from_spec(regex);
310 if (len && prefix && strncmp(prefix, regex, len)) {
311 /* Stem of regex does not match requested prefix, discard. */
318 spec_arr[nspec].stem_id = find_stem_from_spec(data, regex);
319 spec_arr[nspec].regex_str = strdup(regex);
322 "%s: out of memory at line %d on regex %s\n",
323 path, lineno, regex);
329 "%s: line %d has invalid regex %s: %s\n",
330 path, lineno, regex,
553 regfree(&spec->regex);
615 * a regex check */
623 rc = regexec(&spec_arr[i].regex, key, 0, 0, 0);
625 rc = regexec(&spec_arr[i].regex, buf, 0, 0, 0);