diff options
author | Karl Williamson <khw@cpan.org> | 2018-11-17 15:51:19 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-11-27 09:54:46 -0700 |
commit | f6b4b99d2e584fbcd85eeed475eea10b87858e54 (patch) | |
tree | 8ecdbacbe8841a096baf9453e3afb486d530ecf1 /regcomp.sym | |
parent | 51fa1a74ca7dc85c6e81e990c50128380cac9da5 (diff) | |
download | perl-f6b4b99d2e584fbcd85eeed475eea10b87858e54.tar.gz |
Add regnode EXACT_ONLY8
This is a regnode that otherwise would be an EXACT except that it
contains a code point that requires UTF-8 to represent. Hence if the
target string isn't UTF-8, we know it can't possibly match, without
needing to try.
Diffstat (limited to 'regcomp.sym')
-rw-r--r-- | regcomp.sym | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/regcomp.sym b/regcomp.sym index 02bd9986b5..08fea13530 100644 --- a/regcomp.sym +++ b/regcomp.sym @@ -111,6 +111,8 @@ EXACTFU_SS EXACT, str ; Match this string (folded iff in UTF-8, length i EXACTFLU8 EXACT, str ; Rare circumstances: like EXACTFU, but is under /l, UTF-8, folded, and everything in it is above 255. 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 + #*Do nothing types NOTHING NOTHING, no ; Match empty string. |