diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-11-21 16:21:58 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-11-21 17:20:23 -0700 |
commit | cdebb8b0c889de1ef60309f57d244b28e54c4b90 (patch) | |
tree | 511f588384bebf97965d91610debde7130ef6fb2 /utfebcdic.h | |
parent | aeb94125fdbede01d51e414ee1086f5ac0c9b48e (diff) | |
download | perl-cdebb8b0c889de1ef60309f57d244b28e54c4b90.tar.gz |
utfebcdic.h: Add synonymous macros
I8 is a synonym for 'UTF' in this context, and is more meaningful to me.
Diffstat (limited to 'utfebcdic.h')
-rw-r--r-- | utfebcdic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utfebcdic.h b/utfebcdic.h index a9197a9bef..0cb4675b3a 100644 --- a/utfebcdic.h +++ b/utfebcdic.h @@ -544,7 +544,9 @@ END_EXTERN_C #define ASCII_TO_NATIVE(ch) PL_a2e[(U8)(ch)] /* Transform after encoding, essentially converts to/from I8 */ #define NATIVE_TO_UTF(ch) PL_e2utf[(U8)(ch)] /* to I8 */ +#define NATIVE_TO_I8(ch) NATIVE_TO_UTF(ch) /* synonym */ #define UTF_TO_NATIVE(ch) PL_utf2e[(U8)(ch)] /* from I8 */ +#define I8_TO_NATIVE(ch) UTF_TO_NATIVE(ch) /* synonym */ /* Transform in wide UV char space */ #define NATIVE_TO_UNI(ch) (((ch) > 255) ? (ch) : NATIVE_TO_ASCII(ch)) #define UNI_TO_NATIVE(ch) (((ch) > 255) ? (ch) : ASCII_TO_NATIVE(ch)) |