From b74fe592196bcf9f41b2e13d774c2c6513a650df Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 29 Mar 2018 16:32:49 -0600 Subject: 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. --- perlvars.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perlvars.h') diff --git a/perlvars.h b/perlvars.h index af48fa8266..b6cc9ca162 100644 --- a/perlvars.h +++ b/perlvars.h @@ -302,3 +302,7 @@ PERLVAR(G, utf8_tofold, SV *) PERLVAR(G, utf8_tosimplefold, SV *) PERLVAR(G, utf8_charname_begin, SV *) PERLVAR(G, utf8_charname_continue, SV *) + +/* Everything that folds to a given character, for case insensitivity regex + * matching */ +PERLVAR(G, utf8_foldclosures, SV *) -- cgit v1.2.1