Home
last modified time | relevance | path

Searched refs:tzid (Results 1 – 16 of 16) sorted by relevance

/external/icu4c/i18n/
Dzonemeta.h37 …static UnicodeString& U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &syste…
44 static const UChar* U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status);
55 …static UnicodeString& U_EXPORT2 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &cano…
63 …static UnicodeString& U_EXPORT2 getSingleCountry(const UnicodeString &tzid, UnicodeString &country…
68 …static UnicodeString& U_EXPORT2 getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString…
74 static const UVector* U_EXPORT2 getMetazoneMappings(const UnicodeString &tzid);
82 static const UChar* U_EXPORT2 findTimeZoneID(const UnicodeString& tzid);
99 static UVector* createMetazoneMappings(const UnicodeString &tzid);
Dzonemeta.cpp214 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status) { in getCanonicalCLDRID() argument
219 int32_t len = tzid.length(); in getCanonicalCLDRID()
253 tzid.extract(utzid, ZID_KEY_MAX + 1, tmpStatus); in getCanonicalCLDRID()
270 const UChar* idChars = tzid.getBuffer(); in getCanonicalCLDRID()
290 canonicalID = TimeZone::findID(tzid); in getCanonicalCLDRID()
307 const UChar *derefer = TimeZone::dereferOlsonLink(tzid); in getCanonicalCLDRID()
349 const UChar* key = ZoneMeta::findTimeZoneID(tzid); in getCanonicalCLDRID()
372 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status… in getCanonicalCLDRID() argument
373 const UChar *canonicalID = getCanonicalCLDRID(tzid, status); in getCanonicalCLDRID()
397 ZoneMeta::getCanonicalCountry(const UnicodeString &tzid, UnicodeString &canonicalCountry) { in getCanonicalCountry() argument
[all …]
Dolsontz.cpp119 const UnicodeString& tzid, in OlsonTimeZone() argument
121 BasicTimeZone(tzid), finalZone(NULL), transitionRulesInitialized(FALSE) in OlsonTimeZone()
254 canonicalID = ZoneMeta::getCanonicalCLDRID(tzid, ec); in OlsonTimeZone()
692 UnicodeString tzid; in initTransitionRules() local
693 getID(tzid); in initTransitionRules()
695 UnicodeString stdName = tzid + UNICODE_STRING_SIMPLE("(STD)"); in initTransitionRules()
696 UnicodeString dstName = tzid + UNICODE_STRING_SIMPLE("(DST)"); in initTransitionRules()
830 finalZone->getID(tzid); in initTransitionRules()
831 firstFinalRule = new TimeArrayTimeZoneRule(tzid, in initTransitionRules()
Dvtzone.cpp358 static void getDefaultTZName(const UnicodeString tzid, UBool isDST, UnicodeString& zonename) { in getDefaultTZName() argument
359 zonename = tzid; in getDefaultTZName()
1357 UnicodeString tzid; in parse() local
1414 tzid = value; in parse()
1428 if (tzid.length() == 0) { in parse()
1500 getDefaultTZName(tzid, dst, zonename); in parse()
1585 getDefaultTZName(tzid, FALSE, zonename); in parse()
1594 rbtz = new RuleBasedTimeZone(tzid, initialRule); in parse()
1700 setID(tzid); in parse()
1778 UnicodeString tzid; in write() local
[all …]
Dsimpletz.cpp1072 UnicodeString tzid; in initTransitionRules() local
1073 getID(tzid); in initTransitionRules()
1106 … dstRule = new AnnualTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), getDSTSavings(), in initTransitionRules()
1144 stdRule = new AnnualTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0, in initTransitionRules()
1159 …initialRule = new InitialTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), dstRule->getDST… in initTransitionRules()
1162 initialRule = new InitialTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0); in initTransitionRules()
1174 initialRule = new InitialTimeZoneRule(tzid, getRawOffset(), 0); in initTransitionRules()
Ddtfmtsym.cpp1085 const UnicodeString *tzid; in initZoneStringsArray() local
1090 while ((tzid = tzids->snext(status))) { in initZoneStringsArray()
1101 zarray[i][0].setTo(*tzid); in initZoneStringsArray()
1102 … zarray[i][1].setTo(tzNames->getDisplayName(*tzid, UTZNM_LONG_STANDARD, now, tzDispName)); in initZoneStringsArray()
1103 … zarray[i][2].setTo(tzNames->getDisplayName(*tzid, UTZNM_SHORT_STANDARD, now, tzDispName)); in initZoneStringsArray()
1104 … zarray[i][3].setTo(tzNames->getDisplayName(*tzid, UTZNM_LONG_DAYLIGHT, now, tzDispName)); in initZoneStringsArray()
1105 … zarray[i][4].setTo(tzNames->getDisplayName(*tzid, UTZNM_SHORT_DAYLIGHT, now, tzDispName)); in initZoneStringsArray()
Dolsontz.h125 const UnicodeString& tzid,
/external/icu4c/test/intltest/
Dtzfmttst.cpp130 const UnicodeString *tzid; in TestTimeZoneRoundTrip() local
131 while ((tzid = tzids->snext(status))) { in TestTimeZoneRoundTrip()
132 TimeZone *tz = TimeZone::createTimeZone(*tzid); in TestTimeZoneRoundTrip()
166 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid); in TestTimeZoneRoundTrip()
180 TimeZone::getCanonicalID(*tzid, canonical, status); in TestTimeZoneRoundTrip()
183 errln((UnicodeString)"Unknown ID " + *tzid); in TestTimeZoneRoundTrip()
190 logln("Canonical round trip failed (as expected); tz=" + *tzid in TestTimeZoneRoundTrip()
195 errln("Canonical round trip failed; tz=" + *tzid in TestTimeZoneRoundTrip()
225 errln((UnicodeString)"Offset round trip failed; tz=" + *tzid in TestTimeZoneRoundTrip()
233 errln((UnicodeString)"Raw offset round trip failed; tz=" + *tzid in TestTimeZoneRoundTrip()
[all …]
Dtzrulets.cpp615 const UnicodeString *tzid = tzenum.snext(status); in TestOlsonTransition() local
616 if (tzid == NULL) { in TestOlsonTransition()
623 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestOlsonTransition()
650 const UnicodeString *tzid = tzenum.snext(status); in TestRBTZTransition() local
651 if (tzid == NULL) { in TestRBTZTransition()
658 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestRBTZTransition()
665 errln((UnicodeString)"FAIL: failed to get the TimeZoneRules from time zone " + *tzid); in TestRBTZTransition()
667 RuleBasedTimeZone *rbtz = new RuleBasedTimeZone(*tzid, initial->clone()); in TestRBTZTransition()
669 … errln((UnicodeString)"FAIL: failed to get the transition rule count from time zone " + *tzid); in TestRBTZTransition()
674 …UnicodeString)"FAIL: failed to add a transition rule at index " + i + " to the RBTZ for " + *tzid); in TestRBTZTransition()
[all …]
Dcaltest.cpp332 UnicodeString tzid("TestZone"); in TestGenericAPI() local
335 SimpleTimeZone *zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI()
394 if (z->getID(str) != tzid || in TestGenericAPI()
2452 const char* tzid; member
2494 for (int32_t i = 0; RPDATA[i].tzid != NULL; i++) { in TestRepeatedWallTime()
2496 TimeZone *tz = TimeZone::createTimeZone(RPDATA[i].tzid); in TestRepeatedWallTime()
2506 + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "]"); in TestRepeatedWallTime()
2509 …LLTIME_LAST ") + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "] is parsed as " in TestRepeatedWallTime()
2522 + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "]"); in TestRepeatedWallTime()
2525 …: (default) ") + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "] is parsed as " in TestRepeatedWallTime()
[all …]
Dtztest.cpp2004 const UnicodeString *tzid = s->snext(ec); in TestCanonicalID() local
2005 int32_t nEquiv = TimeZone::countEquivalentIDs(*tzid); in TestCanonicalID()
2015 UnicodeString tmp = TimeZone::getEquivalentID(*tzid, j); in TestCanonicalID()
2045 if (*tzid == UnicodeString(excluded2[k])) { in TestCanonicalID()
Ddtfmttst.cpp3352 UnicodeString tzid; in TestRoundtripWithCalendar() local
3358 + "\n Expected time zone=" + calendars[i]->getTimeZone().getID(tzid) in TestRoundtripWithCalendar()
3360 + "\n Actual time zone=" + calendars[j]->getTimeZone().getID(tzid)); in TestRoundtripWithCalendar()
/external/icu4c/test/cintltst/
Dcdateintervalformattest.c42 const char * tzid; member
78 const char * tzidForLog = (testItemPtr->tzid)? testItemPtr->tzid: "NULL"; in TestDateIntervalFormat()
82 if ( testItemPtr->tzid ) { in TestDateIntervalFormat()
83 u_unescape(testItemPtr->tzid, tzidBuf, kTZIDBufLen); in TestDateIntervalFormat()
/external/icu4c/test/perf/normperf/
Ddtfmtrtperf.h161 const UnicodeString *tzid; in call() local
162 while ((tzid = tzids->snext(*status))) { in call()
163 TimeZone *tz = TimeZone::createTimeZone(*tzid); in call()
/external/icu4c/common/
Dputil.cpp988 const char *tzid = NULL; in uprv_tzname() local
990 tzid = uprv_detectWindowsTimeZone(); in uprv_tzname()
992 if (tzid != NULL) { in uprv_tzname()
993 return tzid; in uprv_tzname()
1008 tzid = getenv("TZ"); in uprv_tzname()
1009 if (tzid != NULL && isValidOlsonID(tzid)) in uprv_tzname()
1012 skipZoneIDPrefix(&tzid); in uprv_tzname()
1013 return tzid; in uprv_tzname()
1099 tzid = remapShortTimeZone(U_TZNAME[0], U_TZNAME[1], daylightType, uprv_timezone()); in uprv_tzname()
1100 if (tzid != NULL) { in uprv_tzname()
[all …]
/external/icu4c/tools/tzcode/
Dicuzdump.cpp199 … void dumpZone(ostream& out, const char* linesep, UnicodeString tzid, int32_t low, int32_t high) { in dumpZone() argument