Home | History | Annotate | Download | only in lib

Lines Matching refs:preg

41 static reg_errcode_t re_search_internal (const regex_t *preg,
75 static reg_errcode_t set_regs (const regex_t *preg,
212 /* regexec searches for a given pattern, specified by PREG, in the
227 regexec (preg, string, nmatch, pmatch, eflags)
228 const regex_t *_Restrict_ preg;
237 re_dfa_t *dfa = (re_dfa_t *) preg->buffer;
255 if (preg->no_sub)
256 err = re_search_internal (preg, string, length, start, length,
259 err = re_search_internal (preg, string, length, start, length,
274 __compat_regexec (const regex_t *_Restrict_ preg,
278 return regexec (preg, string, nmatch, pmatch,
635 /* Searches for a compiled pattern PREG in the string STRING, whose
646 re_search_internal (const regex_t *preg,
653 const re_dfa_t *dfa = (const re_dfa_t *) preg->buffer;
668 char *fastmap = ((preg->fastmap != NULL && preg->fastmap_accurate
669 && start != last_start && !preg->can_be_null)
670 ? preg->fastmap : NULL);
671 RE_TRANSLATE_TYPE t = preg->translate;
678 extra_nmatch = (nmatch > preg->re_nsub) ? nmatch - (preg->re_nsub + 1) : 0;
682 if (BE (preg->used == 0 || dfa->init_state == NULL
693 the regex must be anchored. If preg->newline_anchor is set,
698 || !preg->newline_anchor))
709 preg->translate, (preg->syntax & RE_ICASE) != 0,
715 mctx.input.newline_anchor = preg->newline_anchor;
755 ? ((sb || !(preg->syntax & RE_ICASE || t) ? 4 : 0)
877 if ((!preg->no_sub && nmatch > 1) || dfa->nbackref)
883 if ((!preg->no_sub && nmatch > 1 && dfa->has_plural_match)
922 if (!preg->no_sub && nmatch > 1)
924 err = set_regs (preg, &mctx, nmatch, pmatch,
1441 set_regs (const regex_t *preg, const re_match_context_t *mctx, size_t nmatch,
1444 const re_dfa_t *dfa = (const re_dfa_t *) preg->buffer;