This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Skip work that is a no-op
authorKarl Williamson <khw@cpan.org>
Sun, 11 May 2014 23:41:48 +0000 (17:41 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 1 Jun 2014 14:56:22 +0000 (08:56 -0600)
commitf12c011824bed682b979bcf53cf4106b7e4d7f31
tree0f73c8175087f68a1b52a4b5b9c4b0725870a071
parentcce29a1df20fdbe37080fe3ef4982f7f53db93ba
regcomp.c: Skip work that is a no-op

There are a few characters in the Latin1 range that can be folded to by
above-Latin1 characters.  Some of these are folded to as part of a
single character fold, like KELVIN SIGN folds to 'k'.  More are folded
to as part of a multi-character fold.  Until this commit, there wasn't a
quick way to distinguish between the two classes.  A couple of places
only want the single-character ones.  It is more efficient to look for
just those than to include the multi-char ones which end up not doing
anything.  This uses a bit in l1_char_class_tab.h to indicate those
characters that are in the desired class.
handy.h
l1_char_class_tab.h
regcomp.c
regen/mk_PL_charclass.pl