summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-01-24 11:42:19 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-27 11:07:18 -0700
commit3a8bbffbce67213008d5e0ad49bb873d08cbeee7 (patch)
tree43d3aece553f3ce2395b15514f6c7d1defa1a8da /regen
parent6c62bf0f1cb868c0614cc03720f3babf46da7e34 (diff)
downloadperl-3a8bbffbce67213008d5e0ad49bb873d08cbeee7.tar.gz
Avoid unnecessary malformed checking
regen/regcharclass.pl can create macros for use where we need to worry about the possibility of malformed UTF-8, and for where we don't. In the case of looking at regex patterns, the Perl core has complete control over generating them, and hence isn't generally going to create too short a buffer; if it does, it's a bug that will show up and get fixed. This commit changes to generate and use the faster macros that don't do bounds checking.
Diffstat (limited to 'regen')
-rwxr-xr-xregen/regcharclass.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/regen/regcharclass.pl b/regen/regcharclass.pl
index d6e0010432..8aee7c4fda 100755
--- a/regen/regcharclass.pl
+++ b/regen/regcharclass.pl
@@ -1508,14 +1508,14 @@ QUOTEMETA: Meta-characters that \Q should quote
\p{_Perl_Quotemeta}
MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
-=> UTF8 :safe
+=> UTF8 :fast
do regen/regcharclass_multi_char_folds.pl
# 1 => All folds
&regcharclass_multi_char_folds::multi_char_folds(1)
MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
-=> LATIN1 :safe
+=> LATIN1 :fast
&regcharclass_multi_char_folds::multi_char_folds(0)
# 0 => Latin1-only