This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor is(SPACE|PSXSP)_(uni|utf8) macros and utf8.c
authorKarl Williamson <public@khwilliamson.com>
Mon, 19 Nov 2012 21:36:12 +0000 (14:36 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 20 Nov 2012 00:13:02 +0000 (17:13 -0700)
commitadd4123adc9db7056121c97112791dbf273707c4
treee87b87ee0b61cd7910dc346eb25c9128812b016c
parentbedac28b0a4795ca4264d391bfdd7dd3190f80d3
Refactor is(SPACE|PSXSP)_(uni|utf8) macros and utf8.c

This refactors the isSPACE_uni, is_SPACE_utf8, isPSXSPC_uni,
and is_PSXSPC_utf8 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
utf8.c