mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-5138 Keep the two collation hash functions together.
X-SVN-Rev: 19507
This commit is contained in:
parent
3209361c76
commit
20a74838a6
2 changed files with 9 additions and 14 deletions
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue