/external/icu/icu4c/source/i18n/ |
D | tznames.cpp | 112 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 …]
|
D | tznames_impl.h | 177 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const; 179 UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const; 180 …ring& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const; 183 …UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeSt… 185 UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const; 190 …void getDisplayNames(const UnicodeString& tzID, const UTimeZoneNameType types[], int32_t numTypes,… 192 …static UnicodeString& getDefaultExemplarLocationName(const UnicodeString& tzID, UnicodeString& nam… 195 … static StringEnumeration* _getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status); 196 … static UnicodeString& _getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID); 197 …odeString& _getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID); [all …]
|
D | tznames_impl.cpp | 96 const UChar* tzID; member 646 const UnicodeString& tzID, UErrorCode& status) { in createTimeZoneAndPutInCache() argument 654 TimeZoneNamesImpl::getDefaultExemplarLocationName(tzID, locationNameUniStr); in createTimeZoneAndPutInCache() 672 void* key = (void*) ZoneMeta::findTimeZoneID(tzID); in createTimeZoneAndPutInCache() 690 void addAsTimeZoneIntoTrie(const UChar* tzID, TextTrieMap& trie, UErrorCode& status) { in addAsTimeZoneIntoTrie() argument 691 addNamesIntoTrie(NULL, tzID, trie, status); in addAsTimeZoneIntoTrie() 694 void addNamesIntoTrie(const UChar* mzID, const UChar* tzID, TextTrieMap& trie, in addNamesIntoTrie() argument 709 nameinfo->tzID = tzID; in addNamesIntoTrie() 745 …void loadTimeZone(const UResourceBundle* zoneStrings, const UnicodeString& tzID, UErrorCode& error… in loadTimeZone() 747 UnicodeString uKey(tzID); in loadTimeZone() [all …]
|
D | tzgnames.cpp | 57 const UChar* tzID; member 69 UnicodeString str(p->tzID); in hashPartialLocationKey() 92 return (p1->tzID == p2->tzID && p1->mzID == p2->mzID && p1->isLong == p2->isLong); in comparePartialLocationKey() 108 const UChar* tzID; member 133 UnicodeString& getTimeZoneID(int32_t index, UnicodeString& tzID) const; 176 TimeZoneGenericNameMatchInfo::getTimeZoneID(int32_t index, UnicodeString& tzID) const { in getTimeZoneID() 178 if (minfo != NULL && minfo->gnameInfo->tzID != NULL) { in getTimeZoneID() 179 tzID.setTo(TRUE, minfo->gnameInfo->tzID, -1); in getTimeZoneID() 181 tzID.setToBogus(); in getTimeZoneID() 183 return tzID; in getTimeZoneID() [all …]
|
D | udateintervalformat.cpp | 29 const UChar* tzID, in udtitvfmt_open() argument 37 (tzID == NULL ? tzIDLength != 0 : tzIDLength < -1) in udtitvfmt_open() 48 if(tzID != 0) { in udtitvfmt_open() 49 …TimeZone *zone = TimeZone::createTimeZone(UnicodeString((UBool)(tzIDLength == -1), tzID, tzIDLengt… in udtitvfmt_open()
|
D | tzfmt.cpp | 857 UnicodeString tzID(tzIDBuf, 0, UPRV_LENGTHOF(tzIDBuf)); in parse() local 966 getTimeZoneID(specificMatches.getAlias(), matchIdx, tzID); in parse() 967 U_ASSERT(!tzID.isEmpty()); in parse() 968 return TimeZone::createTimeZone(tzID); in parse() 999 getTimeZoneID(tzdbNameMatches.getAlias(), matchIdx, tzID); in parse() 1000 U_ASSERT(!tzID.isEmpty()); in parse() 1001 return TimeZone::createTimeZone(tzID); in parse() 1034 len = gnames->findBestMatch(text, startIdx, genericNameTypes, tzID, tt, status); in parse() 1046 U_ASSERT(!tzID.isEmpty()); in parse() 1047 return TimeZone::createTimeZone(tzID); in parse() [all …]
|
D | tzgnames.h | 58 UnicodeString& tzID, UTimeZoneFormatTimeType& timeType, UErrorCode& status) const;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | TimeZoneNames.java | 221 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/ |
D | TimeZoneNames.java | 198 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() 344 public MatchInfo(NameType nameType, String tzID, String mzID, int matchLength) { in MatchInfo() argument 348 if (tzID == null && mzID == null) { in MatchInfo() [all …]
|
D | TimeZoneFormat.java | 1151 … return TimeZone.getTimeZone(getTimeZoneID(specificMatch.tzID(), specificMatch.mzID())); in parse() 1172 … return TimeZone.getTimeZone(getTimeZoneID(tzdbNameMatch.tzID(), tzdbNameMatch.mzID())); in parse() 1202 return TimeZone.getTimeZone(bestGeneric.tzID()); in parse() 1366 parsedID = getTimeZoneID(specificMatch.tzID(), specificMatch.mzID()); in parse() 1385 parsedID = getTimeZoneID(tzdbNameMatch.tzID(), tzdbNameMatch.mzID()); in parse() 1397 parsedID = genericMatch.tzID(); in parse() 1758 private String getTimeZoneID(String tzID, String mzID) { 1759 String id = tzID; 3008 String tzID = null; 3021 tzID = getTimeZoneID(exemplarMatch.tzID(), exemplarMatch.mzID()); [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | TimeZoneNamesImpl.java | 96 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 …]
|
D | TimeZoneGenericNames.java | 328 String tzID = ZoneMeta.getCanonicalCLDRID(tz); in formatGenericNonLocationName() local 330 if (tzID == null) { in formatGenericNonLocationName() 336 String name = _tznames.getTimeZoneDisplayName(tzID, nameType); in formatGenericNonLocationName() 343 String mzID = _tznames.getMetaZoneID(tzID, date); in formatGenericNonLocationName() 385 String stdName = _tznames.getDisplayName(tzID, stdNameType, date); in formatGenericNonLocationName() 409 if (goldenID != null && !goldenID.equals(tzID)) { in formatGenericNonLocationName() 421 … name = getPartialLocationName(tzID, mzID, (nameType == NameType.LONG_GENERIC), mzName); in formatGenericNonLocationName() 543 …private String getPartialLocationName(String tzID, String mzID, boolean isLong, String mzDisplayNa… in getPartialLocationName() argument 545 String key = tzID + "&" + mzID + "#" + letter; in getPartialLocationName() 551 String countryCode = ZoneMeta.getCanonicalCountry(tzID); in getPartialLocationName() [all …]
|
D | TZDBTimeZoneNames.java | 76 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/ |
D | TimeZoneNamesImpl.java | 94 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 …]
|
D | TimeZoneGenericNames.java | 326 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 …]
|
D | TZDBTimeZoneNames.java | 74 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/icu4c/source/i18n/unicode/ |
D | tznames.h | 199 …virtual StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) … 211 …virtual UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) c… 229 …& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const = 0; 253 …virtual UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, U… 274 …virtual UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) con… 291 …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;
|
D | tzfmt.h | 1063 …eZoneID(const TimeZoneNames::MatchInfoCollection* matches, int32_t idx, UnicodeString& tzID) const; 1073 …UnicodeString& parseZoneID(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) con… 1082 …String& parseShortZoneID(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) const; 1091 …g& parseExemplarLocation(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) const;
|
D | udateintervalformat.h | 112 const UChar* tzID,
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccaltst.c | 107 UChar tzID[4]; in TestCalendar() local 286 u_uastrcpy(tzID, "PST"); in TestCalendar() 287 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar() 292 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar() 296 u_strcpy(tzID, fgGMTID); in TestCalendar() 297 calfr=ucal_open(tzID, u_strlen(tzID), "fr_FR", UCAL_TRADITIONAL, &status); in TestCalendar() 301 calit=ucal_open(tzID, u_strlen(tzID), "it_IT", UCAL_TRADITIONAL, &status); in TestCalendar() 499 UChar tzID[4]; in TestGetSetDateAPI() local 513 u_strcpy(tzID, fgGMTID); in TestGetSetDateAPI() 515 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestGetSetDateAPI() [all …]
|
D | cdtdptst.c | 234 UChar *pattern=NULL, *tzID=NULL; in TestCzechMonths459() local 257 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestCzechMonths459() 258 u_uastrcpy(tzID, "GMT"); in TestCzechMonths459() 259 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); in TestCzechMonths459() 299 free(tzID); in TestCzechMonths459() 310 UChar *pattern, *tzID, *exp; in TestQuotePattern161() local 328 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestQuotePattern161() 329 u_uastrcpy(tzID, "PST"); in TestQuotePattern161() 333 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestQuotePattern161() 350 free(tzID); in TestQuotePattern161()
|
D | cdtrgtst.c | 210 UChar tzID[4]; in Test4059917() local 213 u_uastrcpy(tzID, "PST"); in Test4059917() 216 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917() 229 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917() 282 UChar dateString[30], pattern[20], tzID[4]; in Test4060212() local 288 u_uastrcpy(tzID, "PST"); in Test4060212() 290 …formatter = udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US",tzID,-1,pattern, u_strlen(pattern), &statu… in Test4060212() 295 fmt = udat_open(UDAT_FULL,UDAT_LONG ,NULL, tzID, -1, NULL, 0, &status); in Test4060212() 304 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status); in Test4060212()
|
D | cmsgtst.c | 377 UChar *result, tzID[4], str[25]; in TestNewFormatAndParseAPI() local 396 u_uastrcpy(tzID, "PST"); in TestNewFormatAndParseAPI() 397 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestNewFormatAndParseAPI() 478 UChar *result, *tzID, *str; in TestSampleFormatAndParseWithError() local 497 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParseWithError() 498 u_uastrcpy(tzID, "PST"); in TestSampleFormatAndParseWithError() 499 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestSampleFormatAndParseWithError() 564 free(tzID); in TestSampleFormatAndParseWithError() 573 UChar *result, *tzID, *str; in TestSampleFormatAndParse() local 590 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParse() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateFormatMiscTests.java | 131 final String tzID = "Asia/Tokyo"; in Test4117335() local 143 if (tzID.equals(zones[i][0])) { in Test4117335() 150 errln("could not find " + tzID); in Test4117335()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateFormatMiscTests.java | 130 final String tzID = "Asia/Tokyo"; in Test4117335() local 142 if (tzID.equals(zones[i][0])) { in Test4117335() 149 errln("could not find " + tzID); in Test4117335()
|