diff options
author | Karl Williamson <khw@cpan.org> | 2018-12-25 22:56:48 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-12-26 12:50:38 -0700 |
commit | b2296192536090829ba6d2cb367456f4e346dcc6 (patch) | |
tree | dc44a3f320b048d1cc3d6950b4e4fd0df15e9e3d /regcomp.sym | |
parent | 317a726d5977fc277a50871ea89e79ce9da36bed (diff) | |
download | perl-b2296192536090829ba6d2cb367456f4e346dcc6.tar.gz |
Revamp qr/[...]/ optimizations
This commit extensively changes the optimizations for ANYOF regnodes
that represent bracketed character classes.
The removal of the regex compilation pass now makes these feasible and
desirable. Compilation now tries hard to optimize an ANYOF node into
something smaller and/or faster when feasible.
Now, qr/[X]/ for any single character or POSIX class X, and any
modifiers like /d, /i, etc, should be the same as qr/X/ for the same
modifiers, unless it would require the pattern to be upgraded from
non-UTF-8 to UTF-8, unless not doing so could introduce bugs.
These changes fix some issues with multi-character /i folding.
Diffstat (limited to 'regcomp.sym')
0 files changed, 0 insertions, 0 deletions