diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-03-25 13:09:09 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-09-10 21:02:58 -0600 |
commit | 6f2d5cbcfe6275cad930b63e81bfd159b3964944 (patch) | |
tree | e0394a94a69d8e3922dffab69c5ea80399aef261 /utf8.c | |
parent | c11b1469027c6226458c10ea61522ddcdbee226c (diff) | |
download | perl-6f2d5cbcfe6275cad930b63e81bfd159b3964944.tar.gz |
Use separate macros for byte vs uv Unicode
This removes a macro not yet even in a development release, and splits
its calls into two classes: those where the input is a byte; and those
where it can be any unsigned integer. The byte implementation avoids a
function call on EBCDIC platforms.
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1693,7 +1693,7 @@ Perl__to_upper_title_latin1(pTHX_ const U8 c, U8* p, STRLEN *lenp, const char S_ assert(S_or_s == 'S' || S_or_s == 's'); - if (NATIVE_IS_INVARIANT(converted)) { /* No difference between the two for + if (UVCHR_IS_INVARIANT(converted)) { /* No difference between the two for characters in this range */ *p = (U8) converted; *lenp = 1; @@ -1794,7 +1794,7 @@ S_to_lower_latin1(pTHX_ const U8 c, U8* p, STRLEN *lenp) U8 converted = toLOWER_LATIN1(c); if (p != NULL) { - if (NATIVE_IS_INVARIANT(converted)) { + if (NATIVE_BYTE_IS_INVARIANT(converted)) { *p = converted; *lenp = 1; } @@ -1864,7 +1864,7 @@ Perl__to_fold_latin1(pTHX_ const U8 c, U8* p, STRLEN *lenp, const unsigned int f converted = toLOWER_LATIN1(c); } - if (NATIVE_IS_INVARIANT(converted)) { + if (UVCHR_IS_INVARIANT(converted)) { *p = (U8) converted; *lenp = 1; } |