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. --- embedvar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embedvar.h') diff --git a/embedvar.h b/embedvar.h index 70d640615b..e038ae74b4 100644 --- a/embedvar.h +++ b/embedvar.h @@ -336,7 +336,6 @@ #define PL_unitcheckav_save (vTHX->Iunitcheckav_save) #define PL_unlockhook (vTHX->Iunlockhook) #define PL_unsafe (vTHX->Iunsafe) -#define PL_utf8_foldclosures (vTHX->Iutf8_foldclosures) #define PL_utf8_mark (vTHX->Iutf8_mark) #define PL_utf8cache (vTHX->Iutf8cache) #define PL_utf8locale (vTHX->Iutf8locale) @@ -466,6 +465,8 @@ #define PL_Gutf8_charname_continue (my_vars->Gutf8_charname_continue) #define PL_utf8_foldable (my_vars->Gutf8_foldable) #define PL_Gutf8_foldable (my_vars->Gutf8_foldable) +#define PL_utf8_foldclosures (my_vars->Gutf8_foldclosures) +#define PL_Gutf8_foldclosures (my_vars->Gutf8_foldclosures) #define PL_utf8_idcont (my_vars->Gutf8_idcont) #define PL_Gutf8_idcont (my_vars->Gutf8_idcont) #define PL_utf8_idstart (my_vars->Gutf8_idstart) -- cgit v1.2.1