This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Split ANYOF_NONBITMAP into two components
authorKarl Williamson <public@khwilliamson.com>
Sun, 14 Nov 2010 17:37:41 +0000 (10:37 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 22 Nov 2010 21:32:53 +0000 (13:32 -0800)
commitef87b810d4ce2a22ca2d29a43907edb11b57b933
tree3e01fa5fb0f8b85609d577fd3fdc6f55a3bd45fd
parent3e81b2d9f833beb8b7ae28a3f7a705f3232409bd
Split ANYOF_NONBITMAP into two components

ANYOF_NONBITMAP means that the node can match things that aren't in its
bitmap.  Some things can match only when the target string is in utf8,
and some things can match even if it isn't.  If the target string is not
in utf8, and we know that the only possible match is when it is in utf8,
we know it can't match, and avoid a fruitless, expensive swash load.

This change also fixes a number of problems shown in t/re/grind_fold.t
that I will deliver soon.
regcomp.c
regcomp.h
regexec.c