summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-11-27 10:26:01 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-11-28 04:49:14 -0800
commite2e755386e52b4bdb22a5c9618390859ed5f7323 (patch)
treed610bd004bf05cbe53f0f33d9df2b0b5691c7eec /handy.h
parent35bae5983226710c4c6eb1565b5e105b0599a820 (diff)
downloadperl-e2e755386e52b4bdb22a5c9618390859ed5f7323.tar.gz
regexec.c: Latin1 chars can fold match UTF8_ALL
Some ANYOF regnodes have the ANYOF_UNICODE_ALL flag set, which means they match any non-Latin1 character. These should match /i (in a utf8 target string) any ASCII or Latin1 character that folds outside the Latin1 range As part of this patch, an internal only macro is renamed to account for its new use in regexec.c. The cumbersome name is to ward off others from using it until the final semantics have been settled on.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 391156a42e..216d0ead47 100644
--- a/handy.h
+++ b/handy.h
@@ -609,7 +609,7 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
# define isUPPER_A(c) cBOOL(FITS_IN_8_BITS(c) && (PL_charclass[(U8) NATIVE_TO_UNI(c)] & _CC_UPPER_A))
# define isWORDCHAR_A(c) cBOOL(FITS_IN_8_BITS(c) && (PL_charclass[(U8) NATIVE_TO_UNI(c)] & _CC_WORDCHAR_A))
# define isXDIGIT_A(c) cBOOL(FITS_IN_8_BITS(c) && (PL_charclass[(U8) NATIVE_TO_UNI(c)] & _CC_XDIGIT_A))
-# define _NONLATIN1_FOLD_CLOSURE_ONLY_FOR_USE_BY_REGCOMP_DOT_C(c) ((! cBOOL(FITS_IN_8_BITS(c))) || (PL_charclass[(U8) NATIVE_TO_UNI(c)] & _CC_NONLATIN1_FOLD))
+# define _HAS_NONLATIN1_FOLD_CLOSURE_ONLY_FOR_USE_BY_REGCOMP_DOT_C_AND_REGEXEC_DOT_C(c) ((! cBOOL(FITS_IN_8_BITS(c))) || (PL_charclass[(U8) NATIVE_TO_UNI(c)] & _CC_NONLATIN1_FOLD))
#else /* No perl.h. */
# define isOCTAL_A(c) ((c) >= '0' && (c) <= '9')
# ifdef EBCDIC