diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-12-15 18:34:59 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2010-12-20 16:05:35 -0700 |
commit | 390656605358790e356331349a2f922ae36ae5df (patch) | |
tree | 1bb444ae420b11af97ee5cbc3560144db454e3ac /utf8.h | |
parent | f53580fec42f3b12264ee27b756dec257c0bb77a (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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') |