diff options
author | Karl Williamson <khw@cpan.org> | 2019-03-30 18:45:20 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-05-31 08:20:01 -0600 |
commit | 6966a05b6e7353ca4162fd3f65c1f0a963a243f0 (patch) | |
tree | 05a0140fc73c32a96050eb8576831b427177a352 /regcomp.sym | |
parent | e3c1dc81bda4523bfc897fec8afe25b162e29cb6 (diff) | |
download | perl-6966a05b6e7353ca4162fd3f65c1f0a963a243f0.tar.gz |
Split ANYOFH regnode into two types
ANYOFHb will be for nodes where all the matching code points share the
frst UTF-8 byte. ANYOFH will be for all others. Neither of these has a
bitmap.
I noticed that we can omit some execution conditionals by splitting the
nodes.
Diffstat (limited to 'regcomp.sym')
-rw-r--r-- | regcomp.sym | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regcomp.sym b/regcomp.sym index 51f3176bcf..b702c437a1 100644 --- a/regcomp.sym +++ b/regcomp.sym @@ -62,7 +62,8 @@ ANYOF ANYOF, sv charclass S ; Match character in (or not in) this ANYOFD ANYOF, sv charclass S ; Like ANYOF, but /d is in effect ANYOFL ANYOF, sv charclass S ; Like ANYOF, but /l is in effect ANYOFPOSIXL ANYOF, sv charclass_posixl S ; Like ANYOFL, but matches [[:posix:]] classes -ANYOFH ANYOF, sv 1 S ; Like ANYOF, but only has "High" matches, none in the bitmap; non-zero flags "f" means "f" is the first UTF-8 byte shared in common by all code points matched +ANYOFH ANYOF, sv 1 S ; Like ANYOF, but only has "High" matches, none in the bitmap; +ANYOFHb ANYOF, sv 1 S ; Like ANYOFH, but all matches share the same first byte, the repurposed flags field contains it ANYOFM ANYOFM byte 1 S ; Like ANYOF, but matches an invariant byte as determined by the mask and arg NANYOFM ANYOFM byte 1 S ; complement of ANYOFM |