diff options
author | Karl Williamson <khw@cpan.org> | 2015-01-15 20:03:09 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-01-16 13:17:23 -0700 |
commit | 7475a24fb1bcc3d031d46c3a83616671479634f5 (patch) | |
tree | a5db71195de4764549e45f1337bc0a67c1329f66 /cpan/Module-Load-Conditional/lib/Module/Load/Conditional.pm | |
parent | 1cc8089a1939c02111513be3f1f49631ccb84757 (diff) | |
download | perl-7475a24fb1bcc3d031d46c3a83616671479634f5.tar.gz |
regcomp.c: Fix bug in /[A-Z]/i
This also fixes /[a-z]/i.
When not under /i, these two ranges alone in a bracketed character class
can be optimized into qr/[[:upper:]]/a and qr/[[:lower:]]/a respectively.
This optimization saves space in the pattern (as no bitmap is needed),
and I think it executes faster. But this optimization has to be
foregone under /i (unless /a is also present) because otherwise
certain non-ASCII characters such as the \N{KELVIN SIGN} don't match,
and they should.
Diffstat (limited to 'cpan/Module-Load-Conditional/lib/Module/Load/Conditional.pm')
0 files changed, 0 insertions, 0 deletions