/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | TimeZoneNamesImpl.java | 93 public Set<String> getAvailableMetaZoneIDs(String tzID) { in getAvailableMetaZoneIDs() argument 94 return _getAvailableMetaZoneIDs(tzID); in getAvailableMetaZoneIDs() 97 static Set<String> _getAvailableMetaZoneIDs(String tzID) { in _getAvailableMetaZoneIDs() argument 98 if (tzID == null || tzID.length() == 0) { in _getAvailableMetaZoneIDs() 101 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); in _getAvailableMetaZoneIDs() 117 public String getMetaZoneID(String tzID, long date) { in getMetaZoneID() argument 118 return _getMetaZoneID(tzID, date); in getMetaZoneID() 121 static String _getMetaZoneID(String tzID, long date) { in _getMetaZoneID() argument 122 if (tzID == null || tzID.length() == 0) { in _getMetaZoneID() 126 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); in _getMetaZoneID() [all …]
|
D | TimeZoneGenericNames.java | 263 info.tzID = canonicalTzID; in getGenericLocationName() 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() [all …]
|
D | TZDBTimeZoneNames.java | 72 public Set<String> getAvailableMetaZoneIDs(String tzID) { in getAvailableMetaZoneIDs() argument 73 return TimeZoneNamesImpl._getAvailableMetaZoneIDs(tzID); in getAvailableMetaZoneIDs() 80 public String getMetaZoneID(String tzID, long date) { in getMetaZoneID() argument 81 return TimeZoneNamesImpl._getMetaZoneID(tzID, date); in getMetaZoneID() 110 public String getTimeZoneDisplayName(String tzID, NameType type) { in getTimeZoneDisplayName() argument
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | TimeZoneNamesImpl.java | 95 public Set<String> getAvailableMetaZoneIDs(String tzID) { in getAvailableMetaZoneIDs() argument 96 return _getAvailableMetaZoneIDs(tzID); in getAvailableMetaZoneIDs() 99 static Set<String> _getAvailableMetaZoneIDs(String tzID) { in _getAvailableMetaZoneIDs() argument 100 if (tzID == null || tzID.length() == 0) { in _getAvailableMetaZoneIDs() 103 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); in _getAvailableMetaZoneIDs() 119 public String getMetaZoneID(String tzID, long date) { in getMetaZoneID() argument 120 return _getMetaZoneID(tzID, date); in getMetaZoneID() 123 static String _getMetaZoneID(String tzID, long date) { in _getMetaZoneID() argument 124 if (tzID == null || tzID.length() == 0) { in _getMetaZoneID() 128 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); in _getMetaZoneID() [all …]
|
D | TimeZoneGenericNames.java | 265 info.tzID = canonicalTzID; in getGenericLocationName() 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() [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/android_icu4j/src/main/java/android/icu/text/ |
D | TimeZoneNames.java | 196 public abstract Set<String> getAvailableMetaZoneIDs(String tzID); in getAvailableMetaZoneIDs() argument 209 public abstract String getMetaZoneID(String tzID, long date); in getMetaZoneID() argument 258 public final String getDisplayName(String tzID, NameType type, long date) { in getDisplayName() argument 259 String name = getTimeZoneDisplayName(tzID, type); in getDisplayName() 261 String mzID = getMetaZoneID(tzID, date); in getDisplayName() 278 public abstract String getTimeZoneDisplayName(String tzID, NameType type); in getTimeZoneDisplayName() argument 298 public String getExemplarLocationName(String tzID) { in getExemplarLocationName() argument 299 return TimeZoneNamesImpl.getDefaultExemplarLocationName(tzID); in getExemplarLocationName() 342 public MatchInfo(NameType nameType, String tzID, String mzID, int matchLength) { in MatchInfo() argument 346 if (tzID == null && mzID == null) { in MatchInfo() [all …]
|
D | TimeZoneFormat.java | 1148 … return TimeZone.getTimeZone(getTimeZoneID(specificMatch.tzID(), specificMatch.mzID())); in parse() 1169 … return TimeZone.getTimeZone(getTimeZoneID(tzdbNameMatch.tzID(), tzdbNameMatch.mzID())); in parse() 1199 return TimeZone.getTimeZone(bestGeneric.tzID()); in parse() 1363 parsedID = getTimeZoneID(specificMatch.tzID(), specificMatch.mzID()); in parse() 1382 parsedID = getTimeZoneID(tzdbNameMatch.tzID(), tzdbNameMatch.mzID()); in parse() 1394 parsedID = genericMatch.tzID(); in parse() 1755 private String getTimeZoneID(String tzID, String mzID) { 1756 String id = tzID; 3005 String tzID = null; 3018 tzID = getTimeZoneID(exemplarMatch.tzID(), exemplarMatch.mzID()); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | TimeZoneNames.java | 219 public abstract Set<String> getAvailableMetaZoneIDs(String tzID); in getAvailableMetaZoneIDs() argument 233 public abstract String getMetaZoneID(String tzID, long date); in getMetaZoneID() argument 285 public final String getDisplayName(String tzID, NameType type, long date) { in getDisplayName() argument 286 String name = getTimeZoneDisplayName(tzID, type); in getDisplayName() 288 String mzID = getMetaZoneID(tzID, date); in getDisplayName() 306 public abstract String getTimeZoneDisplayName(String tzID, NameType type); in getTimeZoneDisplayName() argument 327 public String getExemplarLocationName(String tzID) { in getExemplarLocationName() argument 328 return TimeZoneNamesImpl.getDefaultExemplarLocationName(tzID); in getExemplarLocationName() 374 public MatchInfo(NameType nameType, String tzID, String mzID, int matchLength) { in MatchInfo() argument 378 if (tzID == null && mzID == null) { in MatchInfo() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | tznames.cpp | 110 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const; 111 UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const; 112 …ring& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const; 115 …UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeSt… 117 UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const; 252 TimeZoneNamesDelegate::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const… in getAvailableMetaZoneIDs() argument 253 return fTZnamesCacheEntry->names->getAvailableMetaZoneIDs(tzID, status); in getAvailableMetaZoneIDs() 257 TimeZoneNamesDelegate::getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) co… in getMetaZoneID() argument 258 return fTZnamesCacheEntry->names->getMetaZoneID(tzID, date, mzID); in getMetaZoneID() 262 …ate::getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const { in getReferenceZoneID() [all …]
|
D | tznames_impl.h | 175 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const; 177 UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const; 178 …ring& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const; 181 …UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeSt… 183 UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const; 187 …static UnicodeString& getDefaultExemplarLocationName(const UnicodeString& tzID, UnicodeString& nam… 190 … static StringEnumeration* _getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status); 191 … static UnicodeString& _getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID); 192 …odeString& _getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID); 226 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const; [all …]
|
D | tzgnames.cpp | 55 const UChar* tzID; member 67 UnicodeString str(p->tzID); in hashPartialLocationKey() 90 return (p1->tzID == p2->tzID && p1->mzID == p2->mzID && p1->isLong == p2->isLong); in comparePartialLocationKey() 106 const UChar* tzID; member 131 UnicodeString& getTimeZoneID(int32_t index, UnicodeString& tzID) const; 174 TimeZoneGenericNameMatchInfo::getTimeZoneID(int32_t index, UnicodeString& tzID) const { in getTimeZoneID() 176 if (minfo != NULL && minfo->gnameInfo->tzID != NULL) { in getTimeZoneID() 177 tzID.setTo(TRUE, minfo->gnameInfo->tzID, -1); in getTimeZoneID() 179 tzID.setToBogus(); in getTimeZoneID() 181 return tzID; in getTimeZoneID() [all …]
|
D | tznames_impl.cpp | 634 static TZNames* createInstance(UResourceBundle* rb, const char* key, const UnicodeString& tzID); 662 TZNames::createInstance(UResourceBundle* rb, const char* key, const UnicodeString& tzID) { in createInstance() argument 684 TimeZoneNamesImpl::getDefaultExemplarLocationName(tzID, tmpName); in createInstance() 781 const UChar* tzID; member 844 if (nameinfo->tzID) { in handleMatch() 845 … fResults->addZone(nameinfo->type, matchLength, UnicodeString(nameinfo->tzID, -1), status); in handleMatch() 951 const UChar *tzID = ZoneMeta::getCanonicalCLDRID(*tz); in initialize() local 952 if (tzID != NULL) { in initialize() 953 loadStrings(UnicodeString(tzID)); in initialize() 1036 TimeZoneNamesImpl::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const { in getAvailableMetaZoneIDs() argument [all …]
|
D | udateintervalformat.cpp | 27 const UChar* tzID, in udtitvfmt_open() argument 35 (tzID == NULL ? tzIDLength != 0 : tzIDLength < -1) in udtitvfmt_open() 46 if(tzID != 0) { in udtitvfmt_open() 47 …TimeZone *zone = TimeZone::createTimeZone(UnicodeString((UBool)(tzIDLength == -1), tzID, tzIDLengt… in udtitvfmt_open()
|
D | tzfmt.cpp | 855 UnicodeString tzID(tzIDBuf, 0, UPRV_LENGTHOF(tzIDBuf)); in parse() local 964 getTimeZoneID(specificMatches.getAlias(), matchIdx, tzID); in parse() 965 U_ASSERT(!tzID.isEmpty()); in parse() 966 return TimeZone::createTimeZone(tzID); in parse() 997 getTimeZoneID(tzdbNameMatches.getAlias(), matchIdx, tzID); in parse() 998 U_ASSERT(!tzID.isEmpty()); in parse() 999 return TimeZone::createTimeZone(tzID); in parse() 1032 len = gnames->findBestMatch(text, startIdx, genericNameTypes, tzID, tt, status); in parse() 1044 U_ASSERT(!tzID.isEmpty()); in parse() 1045 return TimeZone::createTimeZone(tzID); in parse() [all …]
|
D | tzgnames.h | 56 UnicodeString& tzID, UTimeZoneFormatTimeType& timeType, UErrorCode& status) const;
|
/external/icu/icu4c/source/i18n/unicode/ |
D | tznames.h | 197 …virtual StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) … 209 …virtual UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) c… 227 …& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const = 0; 251 …virtual UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, U… 272 …virtual UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) con… 289 …virtual UnicodeString& getDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UDate dat… 319 const UnicodeString& tzID, UErrorCode& status); 365 UBool getTimeZoneIDAt(int32_t idx, UnicodeString& tzID) const;
|
D | tzfmt.h | 1061 …eZoneID(const TimeZoneNames::MatchInfoCollection* matches, int32_t idx, UnicodeString& tzID) const; 1071 …UnicodeString& parseZoneID(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) con… 1080 …String& parseShortZoneID(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) const; 1089 …g& parseExemplarLocation(const UnicodeString& text, ParsePosition& pos, UnicodeString& tzID) const;
|
D | udateintervalformat.h | 110 const UChar* tzID,
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccaltst.c | 99 UChar tzID[4]; in TestCalendar() local 278 u_uastrcpy(tzID, "PST"); in TestCalendar() 279 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar() 284 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestCalendar() 288 u_strcpy(tzID, fgGMTID); in TestCalendar() 289 calfr=ucal_open(tzID, u_strlen(tzID), "fr_FR", UCAL_TRADITIONAL, &status); in TestCalendar() 293 calit=ucal_open(tzID, u_strlen(tzID), "it_IT", UCAL_TRADITIONAL, &status); in TestCalendar() 491 UChar tzID[4]; in TestGetSetDateAPI() local 505 u_strcpy(tzID, fgGMTID); in TestGetSetDateAPI() 507 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestGetSetDateAPI() [all …]
|
D | cdtdptst.c | 232 UChar *pattern=NULL, *tzID=NULL; in TestCzechMonths459() local 255 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestCzechMonths459() 256 u_uastrcpy(tzID, "GMT"); in TestCzechMonths459() 257 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); in TestCzechMonths459() 297 free(tzID); in TestCzechMonths459() 308 UChar *pattern, *tzID, *exp; in TestQuotePattern161() local 326 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestQuotePattern161() 327 u_uastrcpy(tzID, "PST"); in TestQuotePattern161() 331 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestQuotePattern161() 348 free(tzID); in TestQuotePattern161()
|
D | cdtrgtst.c | 208 UChar tzID[4]; in Test4059917() local 211 u_uastrcpy(tzID, "PST"); in Test4059917() 214 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917() 227 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917() 280 UChar dateString[30], pattern[20], tzID[4]; in Test4060212() local 286 u_uastrcpy(tzID, "PST"); in Test4060212() 288 …formatter = udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US",tzID,-1,pattern, u_strlen(pattern), &statu… in Test4060212() 293 fmt = udat_open(UDAT_FULL,UDAT_LONG ,NULL, tzID, -1, NULL, 0, &status); in Test4060212() 302 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status); in Test4060212()
|
D | cmsgtst.c | 375 UChar *result, tzID[4], str[25]; in TestNewFormatAndParseAPI() local 394 u_uastrcpy(tzID, "PST"); in TestNewFormatAndParseAPI() 395 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestNewFormatAndParseAPI() 476 UChar *result, *tzID, *str; in TestSampleFormatAndParseWithError() local 495 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParseWithError() 496 u_uastrcpy(tzID, "PST"); in TestSampleFormatAndParseWithError() 497 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); in TestSampleFormatAndParseWithError() 562 free(tzID); in TestSampleFormatAndParseWithError() 571 UChar *result, *tzID, *str; in TestSampleFormatAndParse() local 588 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParse() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateFormatMiscTests.java | 132 final String tzID = "Asia/Tokyo"; in Test4117335() local 144 if (tzID.equals(zones[i][0])) { in Test4117335() 151 errln("could not find " + tzID); in Test4117335()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateFormatMiscTests.java | 128 final String tzID = "Asia/Tokyo"; in Test4117335() local 140 if (tzID.equals(zones[i][0])) { in Test4117335() 147 errln("could not find " + tzID); in Test4117335()
|