diff options
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -314,9 +314,18 @@ struct regnode_charclass_class { /* Flags for node->flags of ANYOF */ -#define ANYOF_LOCALE 0x01 -#define ANYOF_FOLD 0x02 -#define ANYOF_INVERT 0x04 +#define ANYOF_LOCALE 0x01 + +/* The fold is calculated and stored in the bitmap where possible at compile + * time. However there are two cases where it isn't possible. These share + * this bit: 1) under locale, where the actual folding varies depending on + * what the locale is at the time of execution; and 2) where the folding is + * specified in a swash, not the bitmap, such as characters which aren't + * specified in the bitmap, or properties that aren't looked at at compile time + */ +#define ANYOF_LOC_NONBITMAP_FOLD 0x02 + +#define ANYOF_INVERT 0x04 /* CLASS is never set unless LOCALE is too: has runtime \d, \w, [:posix:], ... */ #define ANYOF_CLASS 0x08 |