Lines Matching +defs:match +defs:string
2 tre-match-approx.c - TRE approximate regex matching engine
19 #include <string.h>
35 #include "tre-match-utils.h"
51 /* Position in input string. */
188 tre_tnfa_run_approx(const tre_tnfa_t *tnfa, const void *string, int len,
190 regamatch_t *match, regaparams_t default_params,
195 const char *str_byte = string;
199 const wchar_t *str_wide = string;
218 /* End offset of best match so far, or -1 if no match found yet. */
220 /* Costs of the match. */
314 /* Add initial states to `reach_next' if an exact match has not yet
356 /* If this is the final state, mark the exact match. */
374 give a better match than what we already have. */
586 DPRINT((" setting new match at %d, cost %d\n",
613 /* Check for end of string. */
673 the string, so match it in place of whatever was supposed
769 DPRINT((" setting new match at %d, cost %d\n",
781 DPRINT(("match end offset = %d, match cost = %d\n", match_eo,
789 match->cost = match_costs[TRE_M_COST];
790 match->num_ins = match_costs[TRE_M_NUM_INS];
791 match->num_del = match_costs[TRE_M_NUM_DEL];
792 match->num_subst = match_costs[TRE_M_NUM_SUBST];