summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-03-08 21:57:24 -0700
committerKarl Williamson <public@khwilliamson.com>2011-03-08 23:22:17 -0700
commitace6b0e469777649cb9a908e00e8780b3af366d0 (patch)
treecdf7fb56ec49dee280c121bafa1b216ddca8c253 /regcomp.h
parentc613755a4b4fc8e64a77639d47d7e208fee68edc (diff)
downloadperl-ace6b0e469777649cb9a908e00e8780b3af366d0.tar.gz
regcomp.h: #define of ANYOF flags immune from inversion
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index 9ffca0e969..cc6708b0e8 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -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 */