| Index: source/i18n/tznames_impl.h
|
| diff --git a/source/i18n/tznames_impl.h b/source/i18n/tznames_impl.h
|
| index 5e5d96829e79caa76f4b52617a87e603ae6ef456..6b913bb6bf8c1bfde02dd684b75a18fc01763c4e 100644
|
| --- a/source/i18n/tznames_impl.h
|
| +++ b/source/i18n/tznames_impl.h
|
| @@ -1,7 +1,9 @@
|
| +// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
| +// License & terms of use: http://www.unicode.org/copyright.html
|
| /*
|
| *******************************************************************************
|
| - * Copyright (C) 2011-2014, International Business Machines Corporation and *
|
| - * others. All Rights Reserved. *
|
| + * Copyright (C) 2011-2016, International Business Machines Corporation and
|
| + * others. All Rights Reserved.
|
| *******************************************************************************
|
| */
|
|
|
| @@ -159,8 +161,8 @@ private:
|
|
|
|
|
| class ZNames;
|
| -class TZNames;
|
| class TextTrieMap;
|
| +class ZNameSearchHandler;
|
|
|
| class TimeZoneNamesImpl : public TimeZoneNames {
|
| public:
|
| @@ -184,6 +186,9 @@ public:
|
|
|
| TimeZoneNames::MatchInfoCollection* find(const UnicodeString& text, int32_t start, uint32_t types, UErrorCode& status) const;
|
|
|
| + void loadAllDisplayNames(UErrorCode& status);
|
| + void getDisplayNames(const UnicodeString& tzID, const UTimeZoneNameType types[], int32_t numTypes, UDate date, UnicodeString dest[], UErrorCode& status) const;
|
| +
|
| static UnicodeString& getDefaultExemplarLocationName(const UnicodeString& tzID, UnicodeString& name);
|
|
|
| static StringEnumeration* _getAvailableMetaZoneIDs(UErrorCode& status);
|
| @@ -201,15 +206,23 @@ private:
|
| UHashtable* fMZNamesMap;
|
|
|
| UBool fNamesTrieFullyLoaded;
|
| + UBool fNamesFullyLoaded;
|
| TextTrieMap fNamesTrie;
|
|
|
| void initialize(const Locale& locale, UErrorCode& status);
|
| void cleanup();
|
|
|
| - void loadStrings(const UnicodeString& tzCanonicalID);
|
| + void loadStrings(const UnicodeString& tzCanonicalID, UErrorCode& status);
|
| +
|
| + ZNames* loadMetaZoneNames(const UnicodeString& mzId, UErrorCode& status);
|
| + ZNames* loadTimeZoneNames(const UnicodeString& mzId, UErrorCode& status);
|
| + TimeZoneNames::MatchInfoCollection* doFind(ZNameSearchHandler& handler,
|
| + const UnicodeString& text, int32_t start, UErrorCode& status) const;
|
| + void addAllNamesIntoTrie(UErrorCode& errorCode);
|
| +
|
| + void internalLoadAllDisplayNames(UErrorCode& status);
|
|
|
| - ZNames* loadMetaZoneNames(const UnicodeString& mzId);
|
| - TZNames* loadTimeZoneNames(const UnicodeString& mzId);
|
| + struct ZoneStringsLoader;
|
| };
|
|
|
| class TZDBNames;
|
|
|