This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c: Use SPACE macros instead of swash
authorKarl Williamson <public@khwilliamson.com>
Mon, 19 Nov 2012 21:24:29 +0000 (14:24 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 20 Nov 2012 00:13:02 +0000 (17:13 -0700)
commitbedac28b0a4795ca4264d391bfdd7dd3190f80d3
tree37f911d99ef79040bc0bd8837e60ca89d84a7156
parent4ac6419dea3d3b14ab477d0cd4d87f251b709e28
regexec.c: Use SPACE macros instead of swash

This will avoid loading a swash when an above Latin1 code point is
tested to see if it matches \s.  The SPACE macro is quite small, and
unlikely to grow over time, as Unicode has mostly finished adding white
space equivalents to the Standard.

The CCC_TRY_U macro in regexec.c could not be used for this, and I just
expanded out what it would generate, modified to use the macro instead
of a swash.
regcharclass.h
regen/regcharclass.pl
regexec.c