• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/tre-0.8.0/lib/

Lines Matching defs:tnfa

56 		const tre_tnfa_t *tnfa, int *tags, int match_eo)
66 DPRINT(("end tag = t%d = %d\n", tnfa->end_tag, match_eo));
67 submatch_data = tnfa->submatch_data;
68 while (i < tnfa->num_submatches && i < nmatch)
70 if (submatch_data[i].so_tag == tnfa->end_tag)
75 if (submatch_data[i].eo_tag == tnfa->end_tag)
93 while (i < tnfa->num_submatches && i < nmatch)
128 tre_tnfa_t *tnfa = (void *)preg->TRE_REGEX_T_FIELD;
129 return tnfa->have_backrefs;
135 tre_tnfa_t *tnfa = (void *)preg->TRE_REGEX_T_FIELD;
136 return tnfa->have_approx;
140 tre_match(const tre_tnfa_t *tnfa, const void *string, size_t len,
146 if (tnfa->num_tags > 0 && nmatch > 0)
149 tags = alloca(sizeof(*tags) * tnfa->num_tags);
151 tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
158 if (tnfa->have_backrefs || eflags & REG_BACKTRACKING_MATCHER)
169 status = tre_tnfa_run_backtrack(tnfa, string, (int)len, type,
173 else if (tnfa->have_approx || eflags & REG_APPROX_MATCHER)
181 status = tre_tnfa_run_approx(tnfa, string, (int)len, type, tags,
188 status = tre_tnfa_run_parallel(tnfa, string, (int)len, type,
194 tre_fill_pmatch(nmatch, pmatch, tnfa->cflags, tnfa, tags, eo);
206 tre_tnfa_t *tnfa = (void *)preg->TRE_REGEX_T_FIELD;
209 return tre_match(tnfa, str, len, type, nmatch, pmatch, eflags);
226 tre_tnfa_t *tnfa = (void *)preg->TRE_REGEX_T_FIELD;
227 return tre_match(tnfa, str, len, STR_WIDE, nmatch, pmatch, eflags);
243 tre_tnfa_t *tnfa = (void *)preg->TRE_REGEX_T_FIELD;
244 return tre_match(tnfa, str, (unsigned)-1, STR_USER, nmatch, pmatch, eflags);
255 tre_match_approx(const tre_tnfa_t *tnfa, const void *string, size_t len,
265 if (params.max_cost == 0 && !tnfa->have_approx
267 return tre_match(tnfa, string, len, type, match->nmatch, match->pmatch,
271 if (tnfa->have_backrefs)
274 if (tnfa->num_tags > 0 && match->nmatch > 0)
277 tags = alloca(sizeof(*tags) * tnfa->num_tags);
279 tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
284 status = tre_tnfa_run_approx(tnfa, string, (int)len, type, tags,
287 tre_fill_pmatch(match->nmatch, match->pmatch, tnfa->cflags, tnfa, tags, eo);
299 tre_tnfa_t *tnfa = (void *)preg->TRE_REGEX_T_FIELD;
302 return tre_match_approx(tnfa, str, len, type, match, params, eflags);
318 tre_tnfa_t *tnfa = (void *)preg->TRE_REGEX_T_FIELD;
319 return tre_match_approx(tnfa, str, len, STR_WIDE,