This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use compiled-in C structure for inverted case folds
authorKarl Williamson <khw@cpan.org>
Thu, 29 Mar 2018 22:32:49 +0000 (16:32 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 31 Mar 2018 21:36:46 +0000 (15:36 -0600)
commitb74fe592196bcf9f41b2e13d774c2c6513a650df
tree9f90d065de465962410e8f0c88529939b7ce22a7
parentd2aadf62cbb988487f162551df71b8a36cb54fb6
Use compiled-in C structure for inverted case folds

This commit changes to use the C data structures generated by the
previous commit to compute what characters fold to a given one.  This is
used to find out what things should match under /i.

This now avoids the expensive start up cost of switching to perl
utf8_heavy.pl, loading a file from disk, and constructing a hash from
it.
12 files changed:
embed.fnc
embed.h
embedvar.h
intrpvar.h
perl.c
perlapi.h
perlvars.h
proto.h
regcomp.c
regexec.c
sv.c
utf8.c