summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-12-18 10:42:30 -0700
committerKarl Williamson <khw@cpan.org>2014-12-29 13:52:56 -0700
commita4525e789871d3846f20d0ea7d2d239c6a21a5a4 (patch)
tree06441d6a5a5038c8ef54a185ce585d54f7c56b3a /regcomp.h
parente7fd4aa18abbfe0099d4947060c99ca85f42f764 (diff)
downloadperl-a4525e789871d3846f20d0ea7d2d239c6a21a5a4.tar.gz
Add regex nodes for locale
These will be used in a future commit to distinguish between /l patterns vs non-/l.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index 049ac43a7e..a11189380a 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -389,7 +389,15 @@ struct regnode_ssc {
* probably better than that commit anyway. But it could be reinstated if we
* need a bit. The LOC flags are only for /l nodes; the reverted commit was
* only for /d, so there are no combinatorial issues. The LOC flag to use is
- * probably the POSIXL one.
+ * probably the POSIXL one. Now that there is an ANYOFL (locale) node, another
+ * option would be to make all of those include the POSIXL data structure,
+ * which would get rid of needing a separate POSIXL flag. But it would
+ * increase the size of all such nodes, so it's probably not as atractive as
+ * having an ANYOF_POSIXL node type. But if we did do it, note that not all 32
+ * bits of that extra space are used, one bit of that could be set aside for
+ * the LOC_FOLD flag, yielding yet another bit. This would require extra code
+ * for masking, so again not the most attractive solution.
+ *
* Several flags are not used in synthetic start class (SSC) nodes, so could be
* shared should new flags be needed for SSCs, like SSC_MATCHES_EMPTY_STRING
* now. */