diff options
author | Karl Williamson <khw@cpan.org> | 2019-09-28 11:58:59 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-09-29 11:46:26 -0600 |
commit | 5cd61b66283b55e639490151d4e730a840ab13d5 (patch) | |
tree | dd4f8ed1815291c2af682668c32c66d504a5af7d /regcomp.sym | |
parent | 3363c7035ff1df0c3ffeae0cd18bb86cc39d62e4 (diff) | |
download | perl-5cd61b66283b55e639490151d4e730a840ab13d5.tar.gz |
regex: Add LEXACT_ONLY8 node type
This is like LEXACT, but it is known that only strings encoded in UTF-8
will match it, so don't even have to try if that condition isn't met.
Diffstat (limited to 'regcomp.sym')
-rw-r--r-- | regcomp.sym | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/regcomp.sym b/regcomp.sym index 5512c0f8a1..fd594dfdcd 100644 --- a/regcomp.sym +++ b/regcomp.sym @@ -141,6 +141,7 @@ EXACTFAA_NO_TRIE EXACT, str ; Like EXACT, but match using /iaa rules (string EXACT_ONLY8 EXACT, str ; Like EXACT, but only UTF-8 encoded targets can match +LEXACT_ONLY8 EXACT, len:str 1 ; Like LEXACT, but only UTF-8 encoded targets can match EXACTFU_ONLY8 EXACT, str ; Like EXACTFU, but only UTF-8 encoded targets can match # One could add EXACTFAA8 and something that has the same effect for /l, # but these would be extremely uncommon |