Index: source/common/udataswp.h |
diff --git a/source/common/udataswp.h b/source/common/udataswp.h |
index 66c849556767086eab1b5fb9b032ef506700dc71..07e06c221a7075963bf00b3edd75dbaad1bc01eb 100644 |
--- a/source/common/udataswp.h |
+++ b/source/common/udataswp.h |
@@ -1,3 +1,5 @@ |
+// Copyright (C) 2016 and later: Unicode, Inc. and others. |
+// License & terms of use: http://www.unicode.org/copyright.html |
/* |
******************************************************************************* |
* |
@@ -318,6 +320,20 @@ uprv_compareInvEbcdic(const UDataSwapper *ds, |
const char *outString, int32_t outLength, |
const UChar *localString, int32_t localLength); |
+/** |
+ * \def uprv_compareInvWithUChar |
+ * Compare an invariant-character strings with a UChar string |
+ * @internal |
+ */ |
+#if U_CHARSET_FAMILY==U_ASCII_FAMILY |
+# define uprv_compareInvWithUChar uprv_compareInvAscii |
+#elif U_CHARSET_FAMILY==U_EBCDIC_FAMILY |
+# define uprv_compareInvWithUChar uprv_compareInvEbcdic |
+#else |
+# error Unknown charset family! |
+#endif |
+ |
+ |
/* material... -------------------------------------------------------------- */ |
#if 0 |