summaryrefslogtreecommitdiff
path: root/regen/regcharclass.pl
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-11-19 14:24:29 -0700
committerKarl Williamson <public@khwilliamson.com>2012-11-19 17:13:02 -0700
commitbedac28b0a4795ca4264d391bfdd7dd3190f80d3 (patch)
tree37f911d99ef79040bc0bd8837e60ca89d84a7156 /regen/regcharclass.pl
parent4ac6419dea3d3b14ab477d0cd4d87f251b709e28 (diff)
downloadperl-bedac28b0a4795ca4264d391bfdd7dd3190f80d3.tar.gz
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.
Diffstat (limited to 'regen/regcharclass.pl')
-rwxr-xr-xregen/regcharclass.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/regen/regcharclass.pl b/regen/regcharclass.pl
index 46425e4965..0bab57086a 100755
--- a/regen/regcharclass.pl
+++ b/regen/regcharclass.pl
@@ -1400,6 +1400,10 @@ XDIGIT: Hexadecimal digits
=> UTF8 high cp_high :fast
\p{XDigit}
+XPERLSPACE: \p{XPerlSpace}
+=> generic UTF8 high cp_high :fast
+\p{XPerlSpace}
+
REPLACEMENT: Unicode REPLACEMENT CHARACTER
=> UTF8 :safe
0xFFFD