Home
last modified time | relevance | path

Searched refs:tzID (Results 1 – 25 of 51) sorted by relevance

123

/external/icu/icu4c/source/i18n/
Dtznames.cpp112 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const;
113 UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const;
114 …ring& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const;
117 …UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeSt…
119 UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const;
122 …void getDisplayNames(const UnicodeString& tzID, const UTimeZoneNameType types[], int32_t numTypes,…
257 TimeZoneNamesDelegate::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const… in getAvailableMetaZoneIDs() argument
258 return fTZnamesCacheEntry->names->getAvailableMetaZoneIDs(tzID, status); in getAvailableMetaZoneIDs()
262 TimeZoneNamesDelegate::getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) co… in getMetaZoneID() argument
263 return fTZnamesCacheEntry->names->getMetaZoneID(tzID, date, mzID); in getMetaZoneID()
[all …]
Dtznames_impl.h180 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const;
182 UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const;
183 …ring& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const;
186 …UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeSt…
188 UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const;
193 …void getDisplayNames(const UnicodeString& tzID, const UTimeZoneNameType types[], int32_t numTypes,…
195 …static UnicodeString& getDefaultExemplarLocationName(const UnicodeString& tzID, UnicodeString& nam…
198 … static StringEnumeration* _getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status);
199 … static UnicodeString& _getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID);
200 …odeString& _getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID);
[all …]
Dtznames_impl.cpp100 const UChar* tzID; member
656 const UnicodeString& tzID, UErrorCode& status) { in createTimeZoneAndPutInCache() argument
664 TimeZoneNamesImpl::getDefaultExemplarLocationName(tzID, locationNameUniStr); in createTimeZoneAndPutInCache()
682 void* key = (void*) ZoneMeta::findTimeZoneID(tzID); in createTimeZoneAndPutInCache()
700 void addAsTimeZoneIntoTrie(const UChar* tzID, TextTrieMap& trie, UErrorCode& status) { in addAsTimeZoneIntoTrie() argument
701 addNamesIntoTrie(NULL, tzID, trie, status); in addAsTimeZoneIntoTrie()
704 void addNamesIntoTrie(const UChar* mzID, const UChar* tzID, TextTrieMap& trie, in addNamesIntoTrie() argument
719 nameinfo->tzID = tzID; in addNamesIntoTrie()
755 …void loadTimeZone(const UResourceBundle* zoneStrings, const UnicodeString& tzID, UErrorCode& error… in loadTimeZone()
757 UnicodeString uKey(tzID); in loadTimeZone()
[all …]
Dtzgnames.cpp61 const UChar* tzID; member
73 UnicodeString str(p->tzID); in hashPartialLocationKey()
96 return (p1->tzID == p2->tzID && p1->mzID == p2->mzID && p1->isLong == p2->isLong); in comparePartialLocationKey()
112 const UChar* tzID; member
137 UnicodeString& getTimeZoneID(int32_t index, UnicodeString& tzID) const;
180 TimeZoneGenericNameMatchInfo::getTimeZoneID(int32_t index, UnicodeString& tzID) const { in getTimeZoneID()
182 if (minfo != NULL && minfo->gnameInfo->tzID != NULL) { in getTimeZoneID()
183 tzID.setTo(TRUE, minfo->gnameInfo->tzID, -1); in getTimeZoneID()
185 tzID.setToBogus(); in getTimeZoneID()
187 return tzID; in getTimeZoneID()
[all …]
Dudateintervalformat.cpp41 const UChar* tzID, in udtitvfmt_open() argument
49 (tzID == NULL ? tzIDLength != 0 : tzIDLength < -1) in udtitvfmt_open()
60 if(tzID != 0) { in udtitvfmt_open()
61 …TimeZone *zone = TimeZone::createTimeZone(UnicodeString((UBool)(tzIDLength == -1), tzID, tzIDLengt… in udtitvfmt_open()
Dtzfmt.cpp866 UnicodeString tzID(tzIDBuf, 0, UPRV_LENGTHOF(tzIDBuf)); in parse() local
975 getTimeZoneID(specificMatches.getAlias(), matchIdx, tzID); in parse()
976 U_ASSERT(!tzID.isEmpty()); in parse()
977 return TimeZone::createTimeZone(tzID); in parse()
1008 getTimeZoneID(tzdbNameMatches.getAlias(), matchIdx, tzID); in parse()
1009 U_ASSERT(!tzID.isEmpty()); in parse()
1010 return TimeZone::createTimeZone(tzID); in parse()
1043 len = gnames->findBestMatch(text, startIdx, genericNameTypes, tzID, tt, status); in parse()
1055 U_ASSERT(!tzID.isEmpty()); in parse()
1056 return TimeZone::createTimeZone(tzID); in parse()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeZoneNames.java221 public abstract Set<String> getAvailableMetaZoneIDs(String tzID); in getAvailableMetaZoneIDs() argument
235 public abstract String getMetaZoneID(String tzID, long date); in getMetaZoneID() argument
287 public final String getDisplayName(String tzID, NameType type, long date) { in getDisplayName() argument
288 String name = getTimeZoneDisplayName(tzID, type); in getDisplayName()
290 String mzID = getMetaZoneID(tzID, date); in getDisplayName()
308 public abstract String getTimeZoneDisplayName(String tzID, NameType type); in getTimeZoneDisplayName() argument
329 public String getExemplarLocationName(String tzID) { in getExemplarLocationName() argument
330 return TimeZoneNamesImpl.getDefaultExemplarLocationName(tzID); in getExemplarLocationName()
376 public MatchInfo(NameType nameType, String tzID, String mzID, int matchLength) { in MatchInfo() argument
380 if (tzID == null && mzID == null) { in MatchInfo()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeZoneNames.java198 public abstract Set<String> getAvailableMetaZoneIDs(String tzID); in getAvailableMetaZoneIDs() argument
211 public abstract String getMetaZoneID(String tzID, long date); in getMetaZoneID() argument
260 public final String getDisplayName(String tzID, NameType type, long date) { in getDisplayName() argument
261 String name = getTimeZoneDisplayName(tzID, type); in getDisplayName()
263 String mzID = getMetaZoneID(tzID, date); in getDisplayName()
280 public abstract String getTimeZoneDisplayName(String tzID, NameType type); in getTimeZoneDisplayName() argument
300 public String getExemplarLocationName(String tzID) { in getExemplarLocationName() argument
301 return TimeZoneNamesImpl.getDefaultExemplarLocationName(tzID); in getExemplarLocationName()
345 public MatchInfo(NameType nameType, String tzID, String mzID, int matchLength) { in MatchInfo() argument
349 if (tzID == null && mzID == null) { in MatchInfo()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTimeZoneNamesImpl.java96 public Set<String> getAvailableMetaZoneIDs(String tzID) { in getAvailableMetaZoneIDs() argument
97 return _getAvailableMetaZoneIDs(tzID); in getAvailableMetaZoneIDs()
100 static Set<String> _getAvailableMetaZoneIDs(String tzID) { in _getAvailableMetaZoneIDs() argument
101 if (tzID == null || tzID.length() == 0) { in _getAvailableMetaZoneIDs()
104 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); in _getAvailableMetaZoneIDs()
120 public String getMetaZoneID(String tzID, long date) { in getMetaZoneID() argument
121 return _getMetaZoneID(tzID, date); in getMetaZoneID()
124 static String _getMetaZoneID(String tzID, long date) { in _getMetaZoneID() argument
125 if (tzID == null || tzID.length() == 0) { in _getMetaZoneID()
129 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); in _getMetaZoneID()
[all …]
DTimeZoneGenericNames.java330 String tzID = ZoneMeta.getCanonicalCLDRID(tz); in formatGenericNonLocationName() local
332 if (tzID == null) { in formatGenericNonLocationName()
338 String name = _tznames.getTimeZoneDisplayName(tzID, nameType); in formatGenericNonLocationName()
345 String mzID = _tznames.getMetaZoneID(tzID, date); in formatGenericNonLocationName()
387 String stdName = _tznames.getDisplayName(tzID, stdNameType, date); in formatGenericNonLocationName()
411 if (goldenID != null && !goldenID.equals(tzID)) { in formatGenericNonLocationName()
423 … name = getPartialLocationName(tzID, mzID, (nameType == NameType.LONG_GENERIC), mzName); in formatGenericNonLocationName()
545 …private String getPartialLocationName(String tzID, String mzID, boolean isLong, String mzDisplayNa… in getPartialLocationName() argument
547 String key = tzID + "&" + mzID + "#" + letter; in getPartialLocationName()
553 String countryCode = ZoneMeta.getCanonicalCountry(tzID); in getPartialLocationName()
[all …]
DTZDBTimeZoneNames.java76 public Set<String> getAvailableMetaZoneIDs(String tzID) { in getAvailableMetaZoneIDs() argument
77 return TimeZoneNamesImpl._getAvailableMetaZoneIDs(tzID); in getAvailableMetaZoneIDs()
84 public String getMetaZoneID(String tzID, long date) { in getMetaZoneID() argument
85 return TimeZoneNamesImpl._getMetaZoneID(tzID, date); in getMetaZoneID()
114 public String getTimeZoneDisplayName(String tzID, NameType type) { in getTimeZoneDisplayName() argument
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTimeZoneNamesImpl.java94 public Set<String> getAvailableMetaZoneIDs(String tzID) { in getAvailableMetaZoneIDs() argument
95 return _getAvailableMetaZoneIDs(tzID); in getAvailableMetaZoneIDs()
98 static Set<String> _getAvailableMetaZoneIDs(String tzID) { in _getAvailableMetaZoneIDs() argument
99 if (tzID == null || tzID.length() == 0) { in _getAvailableMetaZoneIDs()
102 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); in _getAvailableMetaZoneIDs()
118 public String getMetaZoneID(String tzID, long date) { in getMetaZoneID() argument
119 return _getMetaZoneID(tzID, date); in getMetaZoneID()
122 static String _getMetaZoneID(String tzID, long date) { in _getMetaZoneID() argument
123 if (tzID == null || tzID.length() == 0) { in _getMetaZoneID()
127 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); in _getMetaZoneID()
[all …]
DTimeZoneGenericNames.java326 String tzID = ZoneMeta.getCanonicalCLDRID(tz); in formatGenericNonLocationName() local
328 if (tzID == null) { in formatGenericNonLocationName()
334 String name = _tznames.getTimeZoneDisplayName(tzID, nameType); in formatGenericNonLocationName()
341 String mzID = _tznames.getMetaZoneID(tzID, date); in formatGenericNonLocationName()
383 String stdName = _tznames.getDisplayName(tzID, stdNameType, date); in formatGenericNonLocationName()
407 if (goldenID != null && !goldenID.equals(tzID)) { in formatGenericNonLocationName()
419 … name = getPartialLocationName(tzID, mzID, (nameType == NameType.LONG_GENERIC), mzName); in formatGenericNonLocationName()
541 …private String getPartialLocationName(String tzID, String mzID, boolean isLong, String mzDisplayNa… in getPartialLocationName() argument
543 String key = tzID + "&" + mzID + "#" + letter; in getPartialLocationName()
549 String countryCode = ZoneMeta.getCanonicalCountry(tzID); in getPartialLocationName()
[all …]
DTZDBTimeZoneNames.java74 public Set<String> getAvailableMetaZoneIDs(String tzID) { in getAvailableMetaZoneIDs() argument
75 return TimeZoneNamesImpl._getAvailableMetaZoneIDs(tzID); in getAvailableMetaZoneIDs()
82 public String getMetaZoneID(String tzID, long date) { in getMetaZoneID() argument
83 return TimeZoneNamesImpl._getMetaZoneID(tzID, date); in getMetaZoneID()
112 public String getTimeZoneDisplayName(String tzID, NameType type) { in getTimeZoneDisplayName() argument
/external/icu/libicu/cts_headers/unicode/
Dtznames.h201 …virtual StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) …
213 …virtual UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) c…
231 …& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const = 0;
255 …virtual UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, U…
276 …virtual UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) con…
293 …virtual UnicodeString& getDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UDate dat…
303 …virtual void getDisplayNames(const UnicodeString& tzID, const UTimeZoneNameType types[], int32_t n…
333 const UnicodeString& tzID, UErrorCode& status);
379 UBool getTimeZoneIDAt(int32_t idx, UnicodeString& tzID) const;
Dtzfmt.h1065 …eZoneID(const TimeZoneNames::MatchInfoCollection* matches, int32_t idx, UnicodeString& tzID) const;
1075 …UnicodeString& parseZoneID(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) con…
1084 …String& parseShortZoneID(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) const;
1093 …g& parseExemplarLocation(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) const;
/external/icu/icu4c/source/i18n/unicode/
Dtznames.h201 …virtual StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) …
213 …virtual UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) c…
231 …& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const = 0;
255 …virtual UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, U…
276 …virtual UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) con…
293 …virtual UnicodeString& getDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UDate dat…
303 …virtual void getDisplayNames(const UnicodeString& tzID, const UTimeZoneNameType types[], int32_t n…
333 const UnicodeString& tzID, UErrorCode& status);
379 UBool getTimeZoneIDAt(int32_t idx, UnicodeString& tzID) const;
/external/icu/libicu/cts_headers/
Dtznames_impl.h180 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const;
182 UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const;
183 …ring& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const;
186 …UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeSt…
188 UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const;
193 …void getDisplayNames(const UnicodeString& tzID, const UTimeZoneNameType types[], int32_t numTypes,…
195 …static UnicodeString& getDefaultExemplarLocationName(const UnicodeString& tzID, UnicodeString& nam…
198 … static StringEnumeration* _getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status);
199 … static UnicodeString& _getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID);
200 …odeString& _getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID);
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcdtdptst.c235 UChar *pattern=NULL, *tzID=NULL; in TestCzechMonths459() local
258 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestCzechMonths459()
259 u_uastrcpy(tzID, "GMT"); in TestCzechMonths459()
260 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); in TestCzechMonths459()
300 free(tzID); in TestCzechMonths459()
312 UChar *tzID = NULL; in TestQuotePattern161() local
330 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestQuotePattern161()
331 u_uastrcpy(tzID, "PST"); in TestQuotePattern161()
335 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestQuotePattern161()
353 free(tzID); in TestQuotePattern161()
Dccaltst.c110 UChar tzID[4]; in TestCalendar() local
301 u_uastrcpy(tzID, "PST"); in TestCalendar()
302 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar()
307 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar()
311 u_strcpy(tzID, fgGMTID); in TestCalendar()
312 calfr=ucal_open(tzID, u_strlen(tzID), "fr_FR", UCAL_TRADITIONAL, &status); in TestCalendar()
316 calit=ucal_open(tzID, u_strlen(tzID), "it_IT", UCAL_TRADITIONAL, &status); in TestCalendar()
519 UChar tzID[4]; in TestGetSetDateAPI() local
533 u_strcpy(tzID, fgGMTID); in TestGetSetDateAPI()
535 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestGetSetDateAPI()
[all …]
Dcdtrgtst.c211 UChar tzID[4]; in Test4059917() local
214 u_uastrcpy(tzID, "PST"); in Test4059917()
217 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917()
230 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917()
283 UChar dateString[30], pattern[20], tzID[4]; in Test4060212() local
289 u_uastrcpy(tzID, "PST"); in Test4060212()
291 …formatter = udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US",tzID,-1,pattern, u_strlen(pattern), &statu… in Test4060212()
296 fmt = udat_open(UDAT_FULL,UDAT_LONG ,NULL, tzID, -1, NULL, 0, &status); in Test4060212()
305 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status); in Test4060212()
Dcmsgtst.c381 UChar *result = NULL, tzID[4], str[25]; in TestNewFormatAndParseAPI() local
400 u_uastrcpy(tzID, "PST"); in TestNewFormatAndParseAPI()
401 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestNewFormatAndParseAPI()
483 UChar *result, *tzID, *str; in TestSampleFormatAndParseWithError() local
502 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParseWithError()
503 u_uastrcpy(tzID, "PST"); in TestSampleFormatAndParseWithError()
504 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestSampleFormatAndParseWithError()
574 free(tzID); in TestSampleFormatAndParseWithError()
583 UChar *result, *tzID, *str; in TestSampleFormatAndParse() local
600 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParse()
[all …]
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/icu/text/
DExtendedTimeZoneNames.java185 if (matchInfo.tzID() != null && matchInfo.tzID().equals(currentTzId)) { in matchName()
186 return matchedTimeZone(matchInfo.tzID(), matchInfo); in matchName()
192 if (matchInfo.tzID() != null) { in matchName()
198 return matchedTimeZone(tzMatchInfo.tzID(), tzMatchInfo); in matchName()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatMiscTests.java134 final String tzID = "Asia/Tokyo"; in Test4117335() local
146 if (tzID.equals(zones[i][0])) { in Test4117335()
153 errln("could not find " + tzID); in Test4117335()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatMiscTests.java137 final String tzID = "Asia/Tokyo"; in Test4117335() local
149 if (tzID.equals(zones[i][0])) { in Test4117335()
156 errln("could not find " + tzID); in Test4117335()

123