• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Libc-997.90.3/regex/TRE/lib/

Lines Matching +defs:match +defs:type

48 #include "tre-match-utils.h"
145 /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match
194 was not part of the match. */
243 tre_str_type_t type, size_t nmatch, regmatch_t pmatch[],
263 type != STR_USER &&
276 if (type == STR_WIDE) offset *= sizeof(wchar_t);
284 if (type == STR_USER)
293 status = tre_tnfa_run_backtrack(tnfa, string + offset, (int)len, type,
300 regamatch_t match;
305 status = tre_tnfa_run_approx(tnfa, string + offset, (int)len, type, tags,
306 &match, params, eflags, &eo);
312 status = tre_tnfa_run_parallel(tnfa, string + offset, (int)len, type,
318 /* A match was found, so fill the submatch registers. */
325 type != STR_USER &&
350 tre_str_type_t type = (TRE_MB_CUR_MAX_L(tnfa->loc) == 1) ? STR_BYTE : STR_MBS;
356 return tre_match(tnfa, str, len, type, nmatch, pmatch, eflags);
415 tre_str_type_t type, regamatch_t *match, regaparams_t params,
428 return tre_match(tnfa, string, len, type, match->nmatch, match->pmatch,
435 if (tnfa->num_tags > 0 && match->nmatch > 0)
448 type != STR_USER &&
450 (eflags & REG_STARTEND) && match->pmatch)
452 if (match->pmatch->rm_so < 0)
456 if (match->pmatch->rm_eo < 0 || match->pmatch->rm_so >
457 match->pmatch->rm_eo)
459 len = match->pmatch->rm_eo - match->pmatch->rm_so;
461 count = offset = match->pmatch->rm_so;
462 if (type == STR_WIDE) offset *= sizeof(wchar_t);
465 status = tre_tnfa_run_approx(tnfa, string, (int)len, type, tags,
466 match, params, eflags, &eo);
469 status = tre_fill_pmatch(match->nmatch, match->pmatch, tnfa->cflags,
476 type != STR_USER &&
478 (eflags & REG_STARTEND) && match->pmatch && match->nmatch > 0)
482 for (i = match->nmatch, p = match->pmatch; i > 0; p++, i--)
498 regamatch_t *match, regaparams_t params, int eflags)
501 tre_str_type_t type = (TRE_MB_CUR_MAX_L(tnfa->loc) == 1) ? STR_BYTE : STR_MBS;
507 return tre_match_approx(tnfa, str, len, type, match, params, eflags);
512 regamatch_t *match, regaparams_t params, int eflags)
514 return tre_reganexec(preg, str, (size_t)-1, match, params, eflags);
521 regamatch_t *match, regaparams_t params, int eflags)
530 match, params, eflags);
535 regamatch_t *match, regaparams_t params, int eflags)
537 return tre_regawnexec(preg, str, (size_t)-1, match, params, eflags);