This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Refactor code dealing with m/[...]/d
authorKarl Williamson <khw@cpan.org>
Wed, 13 Jul 2016 03:15:07 +0000 (21:15 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 16 Jul 2016 23:42:39 +0000 (17:42 -0600)
commit02517e3f826bb5fb01dfc68e372f98bec694a499
treec4824585d9c1cab38387d070cf7be544dd35721c
parentd555b9dd665a725cb821a516235ceaa30169c3e6
regcomp.c: Refactor code dealing with m/[...]/d

This consolidates some code that deals with bracketed character classes
under /d.  As a result, some throw-away steps can be omitted, and things
aren't scattered about.  The earlier version skipped doing some things
if the class is to be inverted.  The reason turns out to not be because
it was necessary, but that the dump of the compiled pattern was unclear.
Previous commits have fixed that, so this now handles inverted character
classes.
regcomp.c
t/re/anyof.t