diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-04 13:16:15 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-04 13:16:15 +0000 |
commit | 4f735f9c7efbb40316858ad2efed993d860c7461 (patch) | |
tree | 43ccf38db72347f7b31eee44ec13854565310706 /Build/source/libs/icu/icu-4.8.1/common/uhash_us.cpp | |
parent | a88413671252aebde6da430845232b126d5a71dd (diff) |
icu 49.1 (49_rc)
git-svn-id: svn://tug.org/texlive/trunk@25559 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-4.8.1/common/uhash_us.cpp')
-rw-r--r-- | Build/source/libs/icu/icu-4.8.1/common/uhash_us.cpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/Build/source/libs/icu/icu-4.8.1/common/uhash_us.cpp b/Build/source/libs/icu/icu-4.8.1/common/uhash_us.cpp deleted file mode 100644 index c4ca3ca76e5..00000000000 --- a/Build/source/libs/icu/icu-4.8.1/common/uhash_us.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/* -****************************************************************************** -* Copyright (C) 1997-2010, International Business Machines -* Corporation and others. All Rights Reserved. -****************************************************************************** -* Date Name Description -* 03/22/00 aliu Creation. -* 07/06/01 aliu Modified to support int32_t keys on -* platforms with sizeof(void*) < 32. -****************************************************************************** -*/ - -#include "uhash.h" -#include "hash.h" -#include "uvector.h" -#include "unicode/unistr.h" -#include "unicode/uchar.h" - -/******************************************************************** - * PUBLIC UnicodeString support functions for UHashtable - ********************************************************************/ - -U_CAPI int32_t U_EXPORT2 -uhash_hashUnicodeString(const UHashTok key) { - U_NAMESPACE_USE - const UnicodeString *str = (const UnicodeString*) key.pointer; - return (str == NULL) ? 0 : str->hashCode(); -} - -U_CAPI void U_EXPORT2 -uhash_deleteUnicodeString(void *obj) { - U_NAMESPACE_USE - delete (UnicodeString*) obj; -} - -U_CAPI UBool U_EXPORT2 -uhash_compareUnicodeString(const UHashTok key1, const UHashTok key2) { - U_NAMESPACE_USE - const UnicodeString *str1 = (const UnicodeString*) key1.pointer; - const UnicodeString *str2 = (const UnicodeString*) key2.pointer; - if (str1 == str2) { - return TRUE; - } - if (str1 == NULL || str2 == NULL) { - return FALSE; - } - return *str1 == *str2; -} - -/** - * Deleter for Hashtable objects. - */ -U_CAPI void U_EXPORT2 -uhash_deleteHashtable(void *obj) { - U_NAMESPACE_USE - delete (Hashtable*) obj; -} - -/** - * Deleter for UObject instances. - */ -U_CAPI void U_EXPORT2 -uhash_deleteUObject(void *obj) { - U_NAMESPACE_USE - delete (UObject*) obj; -} - -//eof |