diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /intl/icu/source/i18n/tzgnames.h | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'intl/icu/source/i18n/tzgnames.h')
-rw-r--r-- | intl/icu/source/i18n/tzgnames.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/intl/icu/source/i18n/tzgnames.h b/intl/icu/source/i18n/tzgnames.h new file mode 100644 index 000000000..61a098478 --- /dev/null +++ b/intl/icu/source/i18n/tzgnames.h @@ -0,0 +1,67 @@ +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (C) 2011-2012, International Business Machines Corporation and * +* others. All Rights Reserved. * +******************************************************************************* +*/ +#ifndef __TZGNAMES_H +#define __TZGNAMES_H + +/** + * \file + * \brief C API: Time zone generic names classe + */ + +#include "unicode/utypes.h" + +#if !UCONFIG_NO_FORMATTING + +#include "unicode/locid.h" +#include "unicode/unistr.h" +#include "unicode/tzfmt.h" +#include "unicode/tznames.h" + +U_CDECL_BEGIN + +typedef enum UTimeZoneGenericNameType { + UTZGNM_UNKNOWN = 0x00, + UTZGNM_LOCATION = 0x01, + UTZGNM_LONG = 0x02, + UTZGNM_SHORT = 0x04 +} UTimeZoneGenericNameType; + +U_CDECL_END + +U_NAMESPACE_BEGIN + +class TimeZone; +struct TZGNCoreRef; + +class U_I18N_API TimeZoneGenericNames : public UMemory { +public: + virtual ~TimeZoneGenericNames(); + + static TimeZoneGenericNames* createInstance(const Locale& locale, UErrorCode& status); + + virtual UBool operator==(const TimeZoneGenericNames& other) const; + virtual UBool operator!=(const TimeZoneGenericNames& other) const {return !operator==(other);}; + virtual TimeZoneGenericNames* clone() const; + + UnicodeString& getDisplayName(const TimeZone& tz, UTimeZoneGenericNameType type, + UDate date, UnicodeString& name) const; + + UnicodeString& getGenericLocationName(const UnicodeString& tzCanonicalID, UnicodeString& name) const; + + int32_t findBestMatch(const UnicodeString& text, int32_t start, uint32_t types, + UnicodeString& tzID, UTimeZoneFormatTimeType& timeType, UErrorCode& status) const; + +private: + TimeZoneGenericNames(); + TZGNCoreRef* fRef; +}; + +U_NAMESPACE_END +#endif +#endif |