summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-12-15 18:34:59 -0700
committerKarl Williamson <public@khwilliamson.com>2010-12-20 16:05:35 -0700
commit390656605358790e356331349a2f922ae36ae5df (patch)
tree1bb444ae420b11af97ee5cbc3560144db454e3ac /utf8.h
parentf53580fec42f3b12264ee27b756dec257c0bb77a (diff)
downloadperl-390656605358790e356331349a2f922ae36ae5df.tar.gz
Change name of regex intrnl macro to new meaning
ANYOF_FOLD is now used only under fewer conditions. Otherwise the bitmap of character 0-255 is fully calculated with the folds, and the flag is not set. One condition is under locale, where the folds aren't known at compile time; the other is for things accessible through a swash. By changing the name to its new meaning, certain optimizations become more obvious.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 405b8b4cb3..a162114ca2 100644
--- a/utf8.h
+++ b/utf8.h
@@ -291,7 +291,7 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
#define ANYOF_FOLD_SHARP_S(node, input, end) \
(ANYOF_BITMAP_TEST(node, LATIN_SMALL_LETTER_SHARP_S) && \
(ANYOF_FLAGS(node) & ANYOF_NONBITMAP) && \
- (ANYOF_FLAGS(node) & ANYOF_FOLD) && \
+ (ANYOF_FLAGS(node) & ANYOF_LOC_NONBITMAP_FOLD) && \
((end) > (input) + 1) && \
toLOWER((input)[0]) == 's' && \
toLOWER((input)[1]) == 's')