X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..b331163bffd790ced0e88b73f44f86d49ccc48a5:/icuSources/tools/genrb/reslist.h diff --git a/icuSources/tools/genrb/reslist.h b/icuSources/tools/genrb/reslist.h index 52737afd..809b7ba1 100644 --- a/icuSources/tools/genrb/reslist.h +++ b/icuSources/tools/genrb/reslist.h @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2000-2009, International Business Machines +* Copyright (C) 2000-2014, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -29,7 +29,6 @@ #include "cstring.h" #include "unewdata.h" #include "ustr.h" -#include "uhash.h" U_CDECL_BEGIN @@ -54,7 +53,6 @@ struct SRBRoot { int32_t fKeysCount; int32_t fLocalKeyLimit; /* key offset < limit fits into URES_TABLE */ - UHashtable *fStringSet; uint16_t *f16BitUnits; int32_t f16BitUnitsCapacity; int32_t f16BitUnitsLength; @@ -130,30 +128,23 @@ struct SResString { int8_t fNumCharsForLength; }; -struct SResource *string_open(struct SRBRoot *bundle, char *tag, const UChar *value, int32_t len, const struct UString* comment, UErrorCode *status); +struct SResource *string_open(struct SRBRoot *bundle, const char *tag, const UChar *value, int32_t len, const struct UString* comment, UErrorCode *status); -/** - * Remove a string from a bundle and close (delete) it. - * The string must not have been added to a table or array yet. - * This function only undoes what string_open() did. - */ -void bundle_closeString(struct SRBRoot *bundle, struct SResource *string); - -struct SResource *alias_open(struct SRBRoot *bundle, char *tag, UChar *value, int32_t len, const struct UString* comment, UErrorCode *status); +struct SResource *alias_open(struct SRBRoot *bundle, const char *tag, UChar *value, int32_t len, const struct UString* comment, UErrorCode *status); struct SResIntVector { uint32_t fCount; uint32_t *fArray; }; -struct SResource* intvector_open(struct SRBRoot *bundle, char *tag, const struct UString* comment, UErrorCode *status); +struct SResource* intvector_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, UErrorCode *status); void intvector_add(struct SResource *intvector, int32_t value, UErrorCode *status); struct SResInt { uint32_t fValue; }; -struct SResource *int_open(struct SRBRoot *bundle, char *tag, int32_t value, const struct UString* comment, UErrorCode *status); +struct SResource *int_open(struct SRBRoot *bundle, const char *tag, int32_t value, const struct UString* comment, UErrorCode *status); struct SResBinary { uint32_t fLength;