OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * Copyright (C) 2011-2014, International Business Machines Corporation and | 3 * Copyright (C) 2011-2015, International Business Machines Corporation and |
4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
5 ******************************************************************************* | 5 ******************************************************************************* |
6 */ | 6 */ |
7 #ifndef __TZNAMES_H | 7 #ifndef __TZNAMES_H |
8 #define __TZNAMES_H | 8 #define __TZNAMES_H |
9 | 9 |
10 /** | 10 /** |
11 * \file | 11 * \file |
12 * \brief C++ API: TimeZoneNames | 12 * \brief C++ API: TimeZoneNames |
13 */ | 13 */ |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 /** | 160 /** |
161 * Returns an instance of <code>TimeZoneNames</code> for the specified local
e. | 161 * Returns an instance of <code>TimeZoneNames</code> for the specified local
e. |
162 * | 162 * |
163 * @param locale The locale. | 163 * @param locale The locale. |
164 * @param status Receives the status. | 164 * @param status Receives the status. |
165 * @return An instance of <code>TimeZoneNames</code> | 165 * @return An instance of <code>TimeZoneNames</code> |
166 * @stable ICU 50 | 166 * @stable ICU 50 |
167 */ | 167 */ |
168 static TimeZoneNames* U_EXPORT2 createInstance(const Locale& locale, UErrorC
ode& status); | 168 static TimeZoneNames* U_EXPORT2 createInstance(const Locale& locale, UErrorC
ode& status); |
169 | 169 |
170 #ifndef U_HIDE_DRAFT_API | |
171 /** | 170 /** |
172 * Returns an instance of <code>TimeZoneNames</code> containing only short s
pecific | 171 * Returns an instance of <code>TimeZoneNames</code> containing only short s
pecific |
173 * zone names (SHORT_STANDARD and SHORT_DAYLIGHT), | 172 * zone names (SHORT_STANDARD and SHORT_DAYLIGHT), |
174 * compatible with the IANA tz database's zone abbreviations (not localized)
. | 173 * compatible with the IANA tz database's zone abbreviations (not localized)
. |
175 * <br> | 174 * <br> |
176 * Note: The input locale is used for resolving ambiguous names (e.g. "IST"
is parsed | 175 * Note: The input locale is used for resolving ambiguous names (e.g. "IST"
is parsed |
177 * as Israel Standard Time for Israel, while it is parsed as India Standard
Time for | 176 * as Israel Standard Time for Israel, while it is parsed as India Standard
Time for |
178 * all other regions). The zone names returned by this instance are not loca
lized. | 177 * all other regions). The zone names returned by this instance are not loca
lized. |
179 * @draft ICU 54 | 178 * @stable ICU 54 |
180 */ | 179 */ |
181 static TimeZoneNames* U_EXPORT2 createTZDBInstance(const Locale& locale, UE
rrorCode& status); | 180 static TimeZoneNames* U_EXPORT2 createTZDBInstance(const Locale& locale, UE
rrorCode& status); |
182 #endif /* U_HIDE_DRAFT_API */ | |
183 | 181 |
184 /** | 182 /** |
185 * Returns an enumeration of all available meta zone IDs. | 183 * Returns an enumeration of all available meta zone IDs. |
186 * @param status Receives the status. | 184 * @param status Receives the status. |
187 * @return an enumeration object, owned by the caller. | 185 * @return an enumeration object, owned by the caller. |
188 * @stable ICU 50 | 186 * @stable ICU 50 |
189 */ | 187 */ |
190 virtual StringEnumeration* getAvailableMetaZoneIDs(UErrorCode& status) const
= 0; | 188 virtual StringEnumeration* getAvailableMetaZoneIDs(UErrorCode& status) const
= 0; |
191 | 189 |
192 /** | 190 /** |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 * @see MatchInfoCollection | 393 * @see MatchInfoCollection |
396 * @internal | 394 * @internal |
397 */ | 395 */ |
398 virtual MatchInfoCollection* find(const UnicodeString& text, int32_t start,
uint32_t types, UErrorCode& status) const = 0; | 396 virtual MatchInfoCollection* find(const UnicodeString& text, int32_t start,
uint32_t types, UErrorCode& status) const = 0; |
399 }; | 397 }; |
400 | 398 |
401 U_NAMESPACE_END | 399 U_NAMESPACE_END |
402 | 400 |
403 #endif | 401 #endif |
404 #endif | 402 #endif |
OLD | NEW |