diff options
author | Karl Williamson <khw@cpan.org> | 2015-10-29 21:19:40 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-12-05 22:06:49 -0700 |
commit | c03c0950362cd6989da96074362b2d4456a8204d (patch) | |
tree | 2c83864f1ac40af0cdc5957086405e5cb208acbb /utfebcdic.h | |
parent | e92b5416baeb0c13e693ffd0dc4447382beffd89 (diff) | |
download | perl-c03c0950362cd6989da96074362b2d4456a8204d.tar.gz |
utf8.h, utfebcdic.h: Fix-up UTF8_MAXBYTES_CASE defn
The definition had gotten moved away from its comments in utf8.h, and
the wrong thing was being guarded by a #error, (UTF8_MAXBYTES instead).
And it is possible to generalize to get the compiler to do the
calculation, and to consolidate the definitions from the two files into
a single one.
Diffstat (limited to 'utfebcdic.h')
-rw-r--r-- | utfebcdic.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/utfebcdic.h b/utfebcdic.h index bf54d4c096..c5a78599e7 100644 --- a/utfebcdic.h +++ b/utfebcdic.h @@ -239,12 +239,6 @@ above what a 64 bit word can hold */ #define UTF_CONTINUATION_MASK ((U8)0x1f) #define UTF_ACCUMULATION_SHIFT 5 -/* The maximum number of UTF-8 bytes a single Unicode character can - * uppercase/lowercase/fold into. Unicode guarantees that the maximum - * expansion is 3 characters. On EBCDIC platforms, the highest Unicode - * character occupies 5 bytes, therefore this number is 15 */ -#define UTF8_MAXBYTES_CASE 15 - /* ^? is defined to be APC on EBCDIC systems. See the definition of toCTRL() * for more */ #define QUESTION_MARK_CTRL LATIN1_TO_NATIVE(0x9F) |