Lines Matching refs:SRE
16 SRE(at)(SRE_STATE* state, SRE_CHAR* ptr, SRE_CODE at)
104 SRE(charset)(SRE_STATE* state, SRE_CODE* set, SRE_CODE ch)
190 LOCAL(Py_ssize_t) SRE(match)(SRE_STATE* state, SRE_CODE* pattern, int match_all);
193 SRE(count)(SRE_STATE* state, SRE_CODE* pattern, Py_ssize_t maxcount)
210 while (ptr < end && SRE(charset)(state, pattern + 2, *ptr))
276 i = SRE(match)(state, pattern, 0);
294 SRE(info)(SRE_STATE* state, SRE_CODE* pattern)
320 /* The macros below should be used to protect recursive SRE(match)()
324 * - Recursive SRE(match)() returned true: that's usually a success
328 * - Recursive SRE(match)() returned false but the current SRE(match)()
329 * is returning to the caller: If the current SRE(match)() is the
332 * If it's *not* the top function, it will be a recursive SRE(match)()
333 * failure by itself, and the calling SRE(match)() will have to deal
337 * - Recursive SRE(match)() returned false, and will continue the
341 * - Recursive SRE(match)() returned false, and will be called again
343 * loop iteration, since the recursive SRE(match)() could do anything,
380 DATA_STACK_LOOKUP_AT(state, SRE(match_context), ctx, ctx_pos); \
401 DATA_STACK_LOOKUP_AT(state, SRE(match_context), ctx, ctx_pos); \
470 DATA_ALLOC(SRE(match_context), nextctx); \
500 } SRE(match_context);
505 SRE(match)(SRE_STATE* state, SRE_CODE* pattern, int match_all)
513 SRE(match_context)* ctx;
514 SRE(match_context)* nextctx;
518 DATA_ALLOC(SRE(match_context), ctx);
605 if (!SRE(at)(state, ctx->ptr, *ctx->pattern))
644 !SRE(charset)(state, ctx->pattern + 1, *ctx->ptr))
673 || !SRE(charset)(state, ctx->pattern+1,
704 !SRE(charset)(state, ctx->pattern + 3,
741 ret = SRE(count)(state, ctx->pattern+3, ctx->pattern[2]);
743 DATA_LOOKUP_AT(SRE(match_context), ctx, ctx_pos);
829 ret = SRE(count)(state, ctx->pattern+3, ctx->pattern[1]);
831 DATA_LOOKUP_AT(SRE(match_context), ctx, ctx_pos);
859 ret = SRE(count)(state, ctx->pattern+3, 1);
861 DATA_LOOKUP_AT(SRE(match_context), ctx, ctx_pos);
1152 DATA_LOOKUP_AT(SRE(match_context), ctx, ctx_pos);
1204 SRE(search)(SRE_STATE* state, SRE_CODE* pattern)
1275 status = SRE(match)(state, pattern + 2*prefix_skip, 0);
1319 status = SRE(match)(state, pattern + 2*prefix_skip, 0);
1336 while (ptr < end && !SRE(charset)(state, charset, *ptr))
1343 status = SRE(match)(state, pattern, 0);
1354 status = SRE(match)(state, pattern, 0);
1366 #undef SRE