ICU-5138 Keep the two collation hash functions together.

X-SVN-Rev: 19507
This commit is contained in:
George Rhoten 2006-04-01 17:29:49 +00:00
parent 3209361c76
commit 20a74838a6
2 changed files with 9 additions and 14 deletions

View 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)
{
CollationKey newKey(key, length);
return newKey.hashCode();
}
#endif /* #if !UCONFIG_NO_COLLATION */

View file

@ -31,19 +31,6 @@ typedef struct collIterate collIterator;
/* public methods ---------------------------------------------------- */
/**
* Since this is going to be deprecated, I'll leave it as it is
*/
U_CAPI int32_t U_EXPORT2
ucol_keyHashCode(const uint8_t *key,
int32_t length)
{
CollationKey newKey(key, length);
return newKey.hashCode();
}
U_CAPI UCollationElements* U_EXPORT2
ucol_openElements(const UCollator *coll,
const UChar *text,