summaryrefslogtreecommitdiff
path: root/regcomp.sym
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-11-27 09:42:45 -0700
committerKarl Williamson <khw@cpan.org>2018-11-27 09:54:46 -0700
commita9f8c7ac75c364c3e05305718f38c5f8ccd935d8 (patch)
tree52f54e16dc812f810621bf5ced938f50045112d9 /regcomp.sym
parentf6b4b99d2e584fbcd85eeed475eea10b87858e54 (diff)
downloadperl-a9f8c7ac75c364c3e05305718f38c5f8ccd935d8.tar.gz
Add regnode EXACTFU_ONLY8
This is a regnode that otherwise would be an EXACTFU except that it contains a code point that requires UTF-8 to match, including all the possible folds involving it. Hence if the target string isn't UTF-8, we know it can't possibly match, without needing to try. For completeness, there could also be an EXACTFAA_ONLY8 and an EXACTFL_ONLY8 created, but I think these are unlikely to actually appear in the wild, since using /aa is mainly about ASCII, and /l mostly will involve characters that don't require UTF-8.
Diffstat (limited to 'regcomp.sym')
-rw-r--r--regcomp.sym3
1 files changed, 3 insertions, 0 deletions
diff --git a/regcomp.sym b/regcomp.sym
index 08fea13530..f5450786c4 100644
--- a/regcomp.sym
+++ b/regcomp.sym
@@ -112,6 +112,9 @@ EXACTFLU8 EXACT, str ; Rare circumstances: like EXACTFU, but is under /
EXACTFAA_NO_TRIE EXACT, str ; Match this string (which is not trie-able; not guaranteed to be folded) using /iaa rules (w/len).
EXACT_ONLY8 EXACT, str ; Like EXACT, but no strings that aren't in UTF-8 can match
+EXACTFU_ONLY8 EXACT, str ; Like EXACTFU, but no strings that aren't in UTF-8 can match
+# One could add EXACTFAA8 and and something that has the same effect for /l,
+# but these would be extremely uncommon
#*Do nothing types