]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/uinvchar.h
ICU-531.30.tar.gz
[apple/icu.git] / icuSources / common / uinvchar.h
index 0f405727dd06ccdeb57c13bee6d8ab9d4f07b7e9..f307bd6a6296eccb05ef45a3ee7f5eb2be9a72a4 100644 (file)
@@ -83,6 +83,26 @@ uprv_compareInvEbcdicAsAscii(const char *s1, const char *s2);
 #   error Unknown charset family!
 #endif
 
+/**
+ * Converts an EBCDIC invariant character to lowercase ASCII.
+ * @internal
+ */
+U_INTERNAL char U_EXPORT2
+uprv_ebcdicToLowercaseAscii(char c);
+
+/**
+ * \def uprv_invCharToLowercaseAscii
+ * Converts an invariant character to lowercase ASCII.
+ * @internal
+ */
+#if U_CHARSET_FAMILY==U_ASCII_FAMILY
+#   define uprv_invCharToLowercaseAscii uprv_asciitolower
+#elif U_CHARSET_FAMILY==U_EBCDIC_FAMILY
+#   define uprv_invCharToLowercaseAscii uprv_ebcdicToLowercaseAscii
+#else
+#   error Unknown charset family!
+#endif
+
 /**
  * Copy EBCDIC to ASCII
  * @internal