summaryrefslogtreecommitdiff
path: root/regcomp.sym
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-12-25 22:56:48 -0700
committerKarl Williamson <khw@cpan.org>2018-12-26 12:50:38 -0700
commitb2296192536090829ba6d2cb367456f4e346dcc6 (patch)
treedc44a3f320b048d1cc3d6950b4e4fd0df15e9e3d /regcomp.sym
parent317a726d5977fc277a50871ea89e79ce9da36bed (diff)
downloadperl-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