Lines Matching defs:regex
11 * regex.h/c were introduced to hold all dependencies on the regular
12 * expression back-end when we started supporting PCRE2. regex.h defines a
16 #include "regex.h"
46 struct regex_data * regex; /* backend dependent regular expression data */
47 bool regex_compiled; /* bool to indicate if the regex is compiled */
48 pthread_mutex_t regex_lock; /* lock for lazy compilation of regex */
299 * the root directory or a regex that is too complex for us). */
359 /* Check if another thread compiled the regex while we waited
391 rc = regex_prepare_data(&spec->regex, anchored_regex, &error_data);
417 char *regex = NULL, *type = NULL, *context = NULL;
423 items = read_spec_entries(line_buf, &errbuf, 3, ®ex, &type, &context);
441 free(regex);
450 len = get_stem_from_spec(regex);
451 if (len && prefix && strncmp(prefix, regex, len)) {
452 /* Stem of regex does not match requested prefix, discard. */
453 free(regex);
466 spec_arr[nspec].stem_id = find_stem_from_spec(data, regex);
467 spec_arr[nspec].regex_str = regex;
485 "%s: line %u has invalid regex %s: %s\n",
486 path, lineno, regex, errbuf);