This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor is_BLANK_uni() and is_BLANK_utf8() macros
authorKarl Williamson <public@khwilliamson.com>
Mon, 19 Nov 2012 20:36:56 +0000 (13:36 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 20 Nov 2012 00:13:02 +0000 (17:13 -0700)
commit2cafb56b1b34a7d194edbc8deedcd3e3242a2994
treeb7811ab1d344b368a3043c52dfd55663e8d58b1e
parent840f8e9207353b89e0c2790e03fe16f44071615b
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.
handy.h
regcharclass.h
regen/regcharclass.pl
utf8.c