extmod/modure: Add ure.sub() function and method, and tests.

This feature is controlled at compile time by MICROPY_PY_URE_SUB, disabled
by default.

Thanks to @dmazzella for the original patch for this feature; see #3770.
This commit is contained in:
Damien George
2018-05-24 13:08:51 +10:00
parent 1e9b871d29
commit e30a5fc7bc
5 changed files with 213 additions and 0 deletions

View File

@@ -1150,6 +1150,10 @@ typedef double mp_float_t;
#define MICROPY_PY_URE_MATCH_SPAN_START_END (0)
#endif
#ifndef MICROPY_PY_URE_SUB
#define MICROPY_PY_URE_SUB (0)
#endif
#ifndef MICROPY_PY_UHEAPQ
#define MICROPY_PY_UHEAPQ (0)
#endif