Lines Matching refs:regex
12 * regex.h/c were introduced to hold all dependencies on the regular
13 * expression back-end when we started supporting PCRE2. regex.h defines a
17 #include "regex.h"
50 struct regex_data * regex; /* backend dependent regular expression data */
51 bool regex_compiled; /* bool to indicate if the regex is compiled */
52 pthread_mutex_t regex_lock; /* lock for lazy compilation of regex */
304 * the root directory or a regex that is too complex for us). */
373 /* Check if another thread compiled the regex while we waited
407 rc = regex_prepare_data(&spec->regex, anchored_regex, &error_data);
439 char *regex = NULL, *type = NULL, *context = NULL;
445 items = read_spec_entries(line_buf, &errbuf, 3, ®ex, &type, &context);
467 free(regex);
476 len = get_stem_from_spec(regex);
477 if (len && prefix && strncmp(prefix, regex, len)) {
478 /* Stem of regex does not match requested prefix, discard. */
479 free(regex);
492 spec_arr[nspec].stem_id = find_stem_from_spec(data, regex);
493 spec_arr[nspec].regex_str = regex;
512 "%s: line %u has invalid regex %s: %s\n",
513 path, lineno, regex, errbuf);