diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-08-01 22:47:49 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-08-01 22:47:49 (GMT) |
commit | e186983842f0b27606b141010513fa8e3d0cc5db (patch) | |
tree | 8160cdbd00dc449a79a25cfaa6a16069b4bd74b3 /Modules/sre_constants.h | |
parent | fb06539e999271ea9b07b754d461f2172d65978b (diff) | |
download | cpython-e186983842f0b27606b141010513fa8e3d0cc5db.zip cpython-e186983842f0b27606b141010513fa8e3d0cc5db.tar.gz cpython-e186983842f0b27606b141010513fa8e3d0cc5db.tar.bz2 |
final 0.9.8 updates:
-- added REPEAT_ONE operator
-- added ANY_ALL operator (used to represent "(?s).")
Diffstat (limited to 'Modules/sre_constants.h')
-rw-r--r-- | Modules/sre_constants.h | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/Modules/sre_constants.h b/Modules/sre_constants.h index 5cfe495..5c55c3d 100644 --- a/Modules/sre_constants.h +++ b/Modules/sre_constants.h @@ -14,31 +14,32 @@ #define SRE_OP_FAILURE 0 #define SRE_OP_SUCCESS 1 #define SRE_OP_ANY 2 -#define SRE_OP_ASSERT 3 -#define SRE_OP_ASSERT_NOT 4 -#define SRE_OP_AT 5 -#define SRE_OP_BRANCH 6 -#define SRE_OP_CALL 7 -#define SRE_OP_CATEGORY 8 -#define SRE_OP_CHARSET 9 -#define SRE_OP_GROUPREF 10 -#define SRE_OP_GROUPREF_IGNORE 11 -#define SRE_OP_IN 12 -#define SRE_OP_IN_IGNORE 13 -#define SRE_OP_INFO 14 -#define SRE_OP_JUMP 15 -#define SRE_OP_LITERAL 16 -#define SRE_OP_LITERAL_IGNORE 17 -#define SRE_OP_MARK 18 -#define SRE_OP_MAX_UNTIL 19 -#define SRE_OP_MIN_UNTIL 20 -#define SRE_OP_NOT_LITERAL 21 -#define SRE_OP_NOT_LITERAL_IGNORE 22 -#define SRE_OP_NEGATE 23 -#define SRE_OP_RANGE 24 -#define SRE_OP_REPEAT 25 -#define SRE_OP_REPEAT_ONE 26 -#define SRE_OP_SUBPATTERN 27 +#define SRE_OP_ANY_ALL 3 +#define SRE_OP_ASSERT 4 +#define SRE_OP_ASSERT_NOT 5 +#define SRE_OP_AT 6 +#define SRE_OP_BRANCH 7 +#define SRE_OP_CALL 8 +#define SRE_OP_CATEGORY 9 +#define SRE_OP_CHARSET 10 +#define SRE_OP_GROUPREF 11 +#define SRE_OP_GROUPREF_IGNORE 12 +#define SRE_OP_IN 13 +#define SRE_OP_IN_IGNORE 14 +#define SRE_OP_INFO 15 +#define SRE_OP_JUMP 16 +#define SRE_OP_LITERAL 17 +#define SRE_OP_LITERAL_IGNORE 18 +#define SRE_OP_MARK 19 +#define SRE_OP_MAX_UNTIL 20 +#define SRE_OP_MIN_UNTIL 21 +#define SRE_OP_NOT_LITERAL 22 +#define SRE_OP_NOT_LITERAL_IGNORE 23 +#define SRE_OP_NEGATE 24 +#define SRE_OP_RANGE 25 +#define SRE_OP_REPEAT 26 +#define SRE_OP_REPEAT_ONE 27 +#define SRE_OP_SUBPATTERN 28 #define SRE_AT_BEGINNING 0 #define SRE_AT_BEGINNING_LINE 1 #define SRE_AT_BOUNDARY 2 |