Lines Matching defs:match

184                here, so let's just pretend it didn't match... */
202 LOCAL(Py_ssize_t) SRE(match)(SRE_STATE* state, const SRE_CODE* pattern, int toplevel);
247 ; /* literal can't match: doesn't fit in char width */
285 ptr = end; /* literal can't match: doesn't fit in char width */
320 i = SRE(match)(state, pattern, 0);
336 /* The macros below should be used to protect recursive SRE(match)()
340 * - Recursive SRE(match)() returned true: that's usually a success
344 * - Recursive SRE(match)() returned false but the current SRE(match)()
345 * is returning to the caller: If the current SRE(match)() is the
348 * If it's *not* the top function, it will be a recursive SRE(match)()
349 * failure by itself, and the calling SRE(match)() will have to deal
353 * - Recursive SRE(match)() returned false, and will continue the
357 * - Recursive SRE(match)() returned false, and will be called again
359 * loop iteration, since the recursive SRE(match)() could do anything,
560 SRE(match)(SRE_STATE* state, const SRE_CODE* pattern, int toplevel)
633 /* match literal string */
644 /* match anything that is not literal character */
667 /* match at given position */
676 /* match at given category */
687 /* match anything (except a newline) */
696 /* match anything */
705 /* match set member (or non_member) */
847 /* match repeated sequence (maximizing regexp) */
860 RETURN_FAILURE; /* cannot match */
893 the rest of the pattern cannot possibly match */
946 /* match repeated sequence (minimizing regexp) */
959 RETURN_FAILURE; /* cannot match */
971 /* didn't match minimum number of times */
1024 /* match repeated sequence (maximizing regexp) without
1039 RETURN_FAILURE; /* cannot match */
1055 /* Test for not enough repetitions in match */
1064 match successful. */
1074 /* Attempt to match the rest of the string */
1146 match another item, do so */
1150 /* zero-width match protection */
1167 /* cannot match more repeated items here. make sure the
1235 /* zero-width match protection */
1279 doesn't match the global state so that the while loop can
1294 /* zero-width match protection */
1301 the most recent match. Thus, if state's Input
1308 consider this match successful. */
1312 match once more. */
1316 /* Check to see if the last attempted match
1328 /* Last attempted match failed. */
1332 did not match, then restore that to the global
1382 /* match backreference */
1406 /* match backreference */
1431 /* match backreference */
1456 /* match backreference */
1626 /* need to reset capturing groups between two SRE(match) callings in loops */
1689 return 0; /* literal can't match: doesn't fit in char width */
1703 status = SRE(match)(state, pattern + 2*prefix_skip, 0);
1723 return 0; /* literal can't match: doesn't fit in char width */
1743 /* found a potential match */
1749 status = SRE(match)(state, pattern + 2*prefix_skip, 0);
1775 status = SRE(match)(state, pattern, 0);
1786 status = SRE(match)(state, pattern, 1);
1800 status = SRE(match)(state, pattern, 0);