]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/sortkey.cpp
ICU-400.39.tar.gz
[apple/icu.git] / icuSources / i18n / sortkey.cpp
index 625468418e3c2c0320159b77b7ec8853e6352f38..ceca9d165063631c74f4731acb61ea12213a7d18 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-* Copyright (C) 1996-2003, International Business Machines Corporation and    *
+* Copyright (C) 1996-2006, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
@@ -392,4 +392,12 @@ CollationKey::hashCode() const
 
 U_NAMESPACE_END
 
+U_CAPI int32_t U_EXPORT2
+ucol_keyHashCode(const uint8_t *key, 
+                       int32_t  length)
+{
+    U_NAMESPACE_QUALIFIER CollationKey newKey(key, length);
+    return newKey.hashCode();
+}
+
 #endif /* #if !UCONFIG_NO_COLLATION */