summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-11-19 13:36:56 -0700
committerKarl Williamson <public@khwilliamson.com>2012-11-19 17:13:02 -0700
commit2cafb56b1b34a7d194edbc8deedcd3e3242a2994 (patch)
treeb7811ab1d344b368a3043c52dfd55663e8d58b1e /regen
parent840f8e9207353b89e0c2790e03fe16f44071615b (diff)
downloadperl-2cafb56b1b34a7d194edbc8deedcd3e3242a2994.tar.gz
Refactor is_BLANK_uni() and is_BLANK_utf8() macros
This adds macros to regen/regcharclass.pl that are usable as part of the is_BLANK_foo() macros in handy.h, so that no function call need be done to handle above Latin1 input. These macros are quite small, and unlikely to grow over time, as Unicode has mostly finished adding white space equivalents to the Standard. The functions that implement these in utf8.c are also changed to use the macros instead of generating a swash. This should speed things up slightly, with less memory used over time as the swash fills.
Diffstat (limited to 'regen')
-rwxr-xr-xregen/regcharclass.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/regen/regcharclass.pl b/regen/regcharclass.pl
index 830a014fed..ee0fe5d87b 100755
--- a/regen/regcharclass.pl
+++ b/regen/regcharclass.pl
@@ -1389,7 +1389,7 @@ LNBREAK: Line Break: \R
\p{VertSpace}
HORIZWS: Horizontal Whitespace: \h \H
-=> generic UTF8 LATIN1 cp :fast safe
+=> generic UTF8 LATIN1 high cp cp_high :fast safe
\p{HorizSpace}
VERTWS: Vertical Whitespace: \v \V