This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Revamp -Dr handling of /[...]/
authorKarl Williamson <khw@cpan.org>
Thu, 18 Feb 2016 21:43:14 +0000 (14:43 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 19 Feb 2016 18:27:10 +0000 (11:27 -0700)
commitb77aba85f6ec3b2a2341077b14f39261c5753cea
tree51748c24ba1863c6a26f316f80ab458b76385e61
parent2bfbbbaf9ef1783ba914ff9e9270e877fbbb6aba
Revamp -Dr handling of /[...]/

This revamps the handling of -Dr for bracketed character classes.  There
were bugs introduced earlier in 5.23, and this consolidates the handling
of /d classes so that the interactions can be better considered.  It
tries inverting the portion that is in the bitmap range to see if the
output is shorter, and clearer that way.  And it always makes the
above-bitmap code points show as not-inverted, as that is clearer.

I ran out of time before the freeze, so I had to not invert in some
cases.
embed.fnc
embed.h
proto.h
regcomp.c