Lines Matching refs:ctx
185 static void pcre_keyvalue_buffer_append_match(buffer *b, const pcre_keyvalue_ctx *ctx, unsigned int… in pcre_keyvalue_buffer_append_match() argument
186 if (num < (unsigned int)ctx->n) { /* n is always > 0 */ in pcre_keyvalue_buffer_append_match()
188 const PCRE2_SIZE *ovec = (PCRE2_SIZE *)ctx->ovec; in pcre_keyvalue_buffer_append_match()
190 const int *ovec = (int *)ctx->ovec; in pcre_keyvalue_buffer_append_match()
194 burl_append(b, ctx->subject + off, len, flags); in pcre_keyvalue_buffer_append_match()
198 static void pcre_keyvalue_buffer_append_ctxmatch(buffer *b, const pcre_keyvalue_ctx *ctx, unsigned … in pcre_keyvalue_buffer_append_ctxmatch() argument
199 const struct cond_match_t * const cache = ctx->cache; in pcre_keyvalue_buffer_append_ctxmatch()
215 … int pcre_keyvalue_buffer_subst_ext(buffer *b, const char *pattern, const pcre_keyvalue_ctx *ctx) { in pcre_keyvalue_buffer_subst_ext() argument
278 const struct burl_parts_t * const burl = ctx->burl; in pcre_keyvalue_buffer_subst_ext()
314 const buffer *qs = ctx->burl->query; in pcre_keyvalue_buffer_subst_ext()
352 ? pcre_keyvalue_buffer_append_match(b, ctx, num, flags) in pcre_keyvalue_buffer_subst_ext()
353 : pcre_keyvalue_buffer_append_ctxmatch(b, ctx, num, flags); in pcre_keyvalue_buffer_subst_ext()
359 … void pcre_keyvalue_buffer_subst(buffer *b, const buffer *patternb, const pcre_keyvalue_ctx *ctx) { in pcre_keyvalue_buffer_subst() argument
374 int num = pcre_keyvalue_buffer_subst_ext(b, pattern+k, ctx); in pcre_keyvalue_buffer_subst()
381 ? pcre_keyvalue_buffer_append_match(b, ctx, num, 0) in pcre_keyvalue_buffer_subst()
382 : pcre_keyvalue_buffer_append_ctxmatch(b, ctx, num, 0); in pcre_keyvalue_buffer_subst()
397 handler_t pcre_keyvalue_buffer_process(const pcre_keyvalue_buffer *kvb, pcre_keyvalue_ctx *ctx, con… in pcre_keyvalue_buffer_process() argument
427 ctx->m = i; in pcre_keyvalue_buffer_process()
431 ctx->m = i; in pcre_keyvalue_buffer_process()
432 ctx->n = n; in pcre_keyvalue_buffer_process()
433 ctx->subject = input->ptr; in pcre_keyvalue_buffer_process()
436 ctx->ovec = pcre2_get_ovector_pointer(kv->match_data); in pcre_keyvalue_buffer_process()
438 ctx->ovec = ovec; in pcre_keyvalue_buffer_process()
441 pcre_keyvalue_buffer_subst(result, &kv->value, ctx); in pcre_keyvalue_buffer_process()