Lines Matching refs:re

194     backref_t    *re;            /* NULL if there wasn't a regex yet */
460 * shouldn't be evaluated until/unless they're actually used
656 backref_t *re = ctx->intern->re;
662 if (!re || !re->have_match) {
668 else if (re->nsub < idx || idx >= AP_MAX_REG_MATCH) {
672 idx, re->rexp, r->filename);
675 else if (re->match[idx].rm_so < 0 || re->match[idx].rm_eo < 0) {
680 val = apr_pstrmemdup(ctx->dpool, re->source + re->match[idx].rm_so,
681 re->match[idx].rm_eo - re->match[idx].rm_so);
968 backref_t *re = ctx->intern->re;
977 if (!re) {
978 re = ctx->intern->re = apr_palloc(ctx->pool, sizeof(*re));
981 re->source = apr_pstrdup(ctx->pool, string);
982 re->rexp = apr_pstrdup(ctx->pool, rexp);
983 re->nsub = compiled->re_nsub;
984 re->have_match = !ap_regexec(compiled, string, AP_MAX_REG_MATCH,
985 re->match, 0);
988 return re->have_match;
1590 backref_t *re = ctx->intern->re;
1607 if (!re) {
1608 ctx->intern->re = re = apr_pcalloc(ctx->pool, sizeof(*re));
1611 /* ap_expr_exec_ctx() does not care about re->have_match but only about
1612 * re->source
1614 if (!re->have_match)
1615 re->source = NULL;
1629 eval_ctx->re_pmatch = re->match;
1630 eval_ctx->re_source = &re->source;
1643 if (re->source)
1644 re->have_match = 1;
3032 /* full match, we're done */
3420 * Perhaps we're not ready yet. We may have to loop one or
3422 * just re-insert the EOS bucket to allow for an extra loop.
3538 /* we're currently looking for the end of the start sequence */
3564 /* we're currently grabbing the directive name */
3857 intern->re = NULL;
3885 /* we're not a nested include, so we create an initial