diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-03-08 21:57:24 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-03-08 23:22:17 -0700 |
commit | ace6b0e469777649cb9a908e00e8780b3af366d0 (patch) | |
tree | cdf7fb56ec49dee280c121bafa1b216ddca8c253 /regcomp.h | |
parent | c613755a4b4fc8e64a77639d47d7e208fee68edc (diff) | |
download | perl-ace6b0e469777649cb9a908e00e8780b3af366d0.tar.gz |
regcomp.h: #define of ANYOF flags immune from inversion
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -361,6 +361,16 @@ struct regnode_charclass_class { #define ANYOF_FLAGS_ALL 0xff +/* These are the flags that ANYOF_INVERT being set or not doesn't affect + * whether they are operative or not. e.g., the node still has LOCALE + * regardless of being inverted; whereas ANYOF_UNICODE_ALL means something + * different if inverted */ +#define INVERSION_UNAFFECTED_FLAGS (ANYOF_LOCALE \ + |ANYOF_LOC_NONBITMAP_FOLD \ + |ANYOF_CLASS \ + |ANYOF_EOS \ + |ANYOF_NONBITMAP_NON_UTF8) + /* Character classes for node->classflags of ANYOF */ /* Should be synchronized with a table in regprop() */ /* 2n should pair with 2n+1 */ |