/external/chromium_org/third_party/icu/source/i18n/ |
H A D | zonemeta.h | 30 * Return the canonical id for this system tzid, which might be the id itself. 31 * If the given system tzid is not know, U_ILLEGAL_ARGUMENT_ERROR is set in the status. 33 static UnicodeString& U_EXPORT2 getCanonicalSystemID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status); 36 * Return the canonical country code for this tzid. If we have none, or if the time zone 39 static UnicodeString& U_EXPORT2 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &canonicalCountry); 47 static UnicodeString& U_EXPORT2 getSingleCountry(const UnicodeString &tzid, UnicodeString &country); 50 * Returns a CLDR metazone ID for the given Olson tzid and time. 52 static UnicodeString& U_EXPORT2 getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result); 58 static const UVector* U_EXPORT2 getMetazoneMappings(const UnicodeString &tzid); 62 static UVector* createMetazoneMappings(const UnicodeString &tzid); [all...] |
H A D | zstrfmt.h | 270 inline UnicodeString& getLongStandard(const UnicodeString &tzid, UDate date, 272 inline UnicodeString& getLongDaylight(const UnicodeString &tzid, UDate date, 274 inline UnicodeString& getLongGenericNonLocation(const UnicodeString &tzid, UDate date, 276 inline UnicodeString& getLongGenericPartialLocation(const UnicodeString &tzid, UDate date, 278 inline UnicodeString& getShortStandard(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 280 inline UnicodeString& getShortDaylight(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 282 inline UnicodeString& getShortGenericNonLocation(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 284 inline UnicodeString& getShortGenericPartialLocation(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 286 inline UnicodeString& getGenericLocation(const UnicodeString &tzid, UnicodeString &result) const; 310 UnicodeString& getString(const UnicodeString &tzid, TimeZoneTranslationTypeInde 368 getLongStandard(const UnicodeString &tzid, UDate date, UnicodeString &result) const argument 374 getLongDaylight(const UnicodeString &tzid, UDate date, UnicodeString &result) const argument 380 getLongGenericNonLocation(const UnicodeString &tzid, UDate date, UnicodeString &result) const argument 386 getLongGenericPartialLocation(const UnicodeString &tzid, UDate date, UnicodeString &result) const argument 392 getShortStandard(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, UnicodeString &result) const argument 398 getShortDaylight(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, UnicodeString &result) const argument 404 getShortGenericNonLocation(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, UnicodeString &result) const argument 410 getShortGenericPartialLocation(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, UnicodeString &result) const argument 416 getGenericLocation(const UnicodeString &tzid, UnicodeString &result) const argument [all...] |
H A D | zonemeta.cpp | 188 ZoneMeta::getCanonicalSystemID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status) { argument 189 int32_t len = tzid.length(); 197 const UChar* idChars = tzid.getBuffer(); 218 systemID.setTo(tzid); 238 const UChar *derefer = TimeZone::dereferOlsonLink(tzid); 275 ZoneMeta::getCanonicalCountry(const UnicodeString &tzid, UnicodeString &canonicalCountry) { argument 276 const UChar *region = TimeZone::getRegion(tzid); 286 ZoneMeta::getSingleCountry(const UnicodeString &tzid, UnicodeString &country) { argument 288 const UChar *region = TimeZone::getRegion(tzid); 405 ZoneMeta::getMetazoneID(const UnicodeString &tzid, UDat argument 425 getMetazoneMappings(const UnicodeString &tzid) argument 515 createMetazoneMappings(const UnicodeString &tzid) argument 607 const UChar *tzid = NULL; local [all...] |
H A D | zstrfmt.cpp | 679 // because generic location format is generated from tzid for the case. 742 char tzid[ZID_KEY_MAX+1]; local 744 utzid.extract(0, utzid.length(), tzid, ZID_KEY_MAX, US_INV); 823 if (uprv_strlen(tzid) > 4 && uprv_strncmp(tzid, "Etc/", 4) == 0) { 1114 // because generic location format is generated from tzid for the case. 1125 const char *tzid; local 1126 while ((tzid = tzids->next(NULL, status))) { 1131 UnicodeString utzid(tzid, -1, US_INV); 1207 const UChar *tzid; local 1262 UnicodeString tzid; local 1279 UnicodeString tzid; local 1304 UnicodeString tzid; local 1341 getString(const UnicodeString &tzid, TimeZoneTranslationTypeIndex typeIdx, UDate date, UBool commonlyUsedOnly, UnicodeString& result) const argument 1422 UnicodeString tzid; local 1584 getGenericPartialLocationString(const UnicodeString &tzid, UBool isShort, UDate date, UBool commonlyUsedOnly, UnicodeString &result) const argument [all...] |
H A D | vtzone.cpp | 359 static void getDefaultTZName(const UnicodeString tzid, UBool isDST, UnicodeString& zonename) { argument 360 zonename = tzid; 1352 UnicodeString tzid; local 1409 tzid = value; 1422 // tzid must be ready at this point 1423 if (tzid.length() == 0) { 1493 // if zonename is not available, create one from tzid 1495 getDefaultTZName(tzid, dst, zonename); 1580 getDefaultTZName(tzid, FALSE, zonename); 1589 rbtz = new RuleBasedTimeZone(tzid, initialRul 1773 UnicodeString tzid; local 1837 UnicodeString tzid; local 2070 UnicodeString tzid; local 2171 UnicodeString tzid; local [all...] |
H A D | simpletz.cpp | 1072 UnicodeString tzid; local 1073 getID(tzid); 1106 dstRule = new AnnualTimeZoneRule(tzid+DST_STR, getRawOffset(), getDSTSavings(), 1144 stdRule = new AnnualTimeZoneRule(tzid+STD_STR, getRawOffset(), 0, 1159 initialRule = new InitialTimeZoneRule(tzid+DST_STR, getRawOffset(), dstRule->getDSTSavings()); 1162 initialRule = new InitialTimeZoneRule(tzid+STD_STR, getRawOffset(), 0); 1174 initialRule = new InitialTimeZoneRule(tzid, getRawOffset(), 0);
|
H A D | olsontz.cpp | 683 UnicodeString tzid; local 684 getID(tzid); 686 UnicodeString stdName = tzid + UNICODE_STRING_SIMPLE("(STD)"); 687 UnicodeString dstName = tzid + UNICODE_STRING_SIMPLE("(DST)"); 821 finalZone->getID(tzid); 822 firstFinalRule = new TimeArrayTimeZoneRule(tzid,
|
/external/icu4c/i18n/ |
H A D | zonemeta.h | 31 * Return the canonical id for this tzid defined by CLDR, which might be the id itself. 32 * If the given system tzid is not known, U_ILLEGAL_ARGUMENT_ERROR is set in the status. 37 static UnicodeString& U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status); 40 * Return the canonical id for this tzid defined by CLDR, which might be the id itself. 44 static const UChar* U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status); 52 * Return the canonical country code for this tzid. If we have none, or if the time zone 54 * @param tzid Zone ID 59 static UnicodeString& U_EXPORT2 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &country, UBool *isPrimary = NULL); 62 * Returns a CLDR metazone ID for the given Olson tzid and time. 64 static UnicodeString& U_EXPORT2 getMetazoneID(const UnicodeString &tzid, UDat [all...] |
H A D | zonemeta.cpp | 216 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status) { argument 221 int32_t len = tzid.length(); 255 tzid.extract(utzid, ZID_KEY_MAX + 1, tmpStatus); 256 U_ASSERT(tmpStatus == U_ZERO_ERROR); // we checked the length of tzid already 272 const UChar* idChars = tzid.getBuffer(); 292 canonicalID = TimeZone::findID(tzid); 309 const UChar *derefer = TimeZone::dereferOlsonLink(tzid); 351 const UChar* key = ZoneMeta::findTimeZoneID(tzid); 374 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status) { argument 375 const UChar *canonicalID = getCanonicalCLDRID(tzid, statu 397 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &country, UBool *isPrimary ) argument 530 getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result) argument 550 getMetazoneMappings(const UnicodeString &tzid) argument 640 createMetazoneMappings(const UnicodeString &tzid) argument 733 const UChar *tzid = NULL; local 860 findTimeZoneID(const UnicodeString& tzid) argument [all...] |
H A D | olsontz.cpp | 120 const UnicodeString& tzid, 122 BasicTimeZone(tzid), finalZone(NULL), transitionRulesInitialized(FALSE) 255 canonicalID = ZoneMeta::getCanonicalCLDRID(tzid, ec); 715 UnicodeString tzid; local 716 getID(tzid); 718 UnicodeString stdName = tzid + UNICODE_STRING_SIMPLE("(STD)"); 719 UnicodeString dstName = tzid + UNICODE_STRING_SIMPLE("(DST)"); 853 finalZone->getID(tzid); 854 firstFinalRule = new TimeArrayTimeZoneRule(tzid, 118 OlsonTimeZone(const UResourceBundle* top, const UResourceBundle* res, const UnicodeString& tzid, UErrorCode& ec) argument
|
H A D | vtzone.cpp | 358 static void getDefaultTZName(const UnicodeString tzid, UBool isDST, UnicodeString& zonename) { argument 359 zonename = tzid; 1357 UnicodeString tzid; local 1414 tzid = value; 1427 // tzid must be ready at this point 1428 if (tzid.length() == 0) { 1498 // if zonename is not available, create one from tzid 1500 getDefaultTZName(tzid, dst, zonename); 1585 getDefaultTZName(tzid, FALSE, zonename); 1594 rbtz = new RuleBasedTimeZone(tzid, initialRul 1778 UnicodeString tzid; local 1842 UnicodeString tzid; local 2075 UnicodeString tzid; local 2176 UnicodeString tzid; local [all...] |
H A D | simpletz.cpp | 1095 UnicodeString tzid; local 1096 getID(tzid); 1129 dstRule = new AnnualTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), getDSTSavings(), 1167 stdRule = new AnnualTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0, 1182 initialRule = new InitialTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), dstRule->getDSTSavings()); 1185 initialRule = new InitialTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0); 1197 initialRule = new InitialTimeZoneRule(tzid, getRawOffset(), 0);
|
H A D | olsontz.h | 120 * @param tzid the time zone ID 125 const UnicodeString& tzid,
|
H A D | dtfmtsym.cpp | 1121 const UnicodeString *tzid; local 1126 while ((tzid = tzids->snext(status))) { 1137 zarray[i][0].setTo(*tzid); 1138 zarray[i][1].setTo(tzNames->getDisplayName(*tzid, UTZNM_LONG_STANDARD, now, tzDispName)); 1139 zarray[i][2].setTo(tzNames->getDisplayName(*tzid, UTZNM_SHORT_STANDARD, now, tzDispName)); 1140 zarray[i][3].setTo(tzNames->getDisplayName(*tzid, UTZNM_LONG_DAYLIGHT, now, tzDispName)); 1141 zarray[i][4].setTo(tzNames->getDisplayName(*tzid, UTZNM_SHORT_DAYLIGHT, now, tzDispName));
|
/external/icu4c/test/cintltst/ |
H A D | cdateintervalformattest.c | 42 const char * tzid; member in struct:__anon18396 78 const char * tzidForLog = (testItemPtr->tzid)? testItemPtr->tzid: "NULL"; 82 if ( testItemPtr->tzid ) { 83 u_unescape(testItemPtr->tzid, tzidBuf, kTZIDBufLen); 100 log_err("ERROR: udtitvfmt_format for locale %s, skeleton %s, tzid %s, from %.1f, to %.1f: expect %s, get %s\n", 105 log_err("FAIL: udtitvfmt_format for locale %s, skeleton %s, tzid %s, from %.1f, to %.1f: %s\n", 110 log_data_err("FAIL: udtitvfmt_open for locale %s, skeleton %s, tzid %s - %s\n",
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
H A D | tzfmttst.cpp | 126 const UnicodeString *tzid; local 127 while ((tzid = tzids->snext(status))) { 128 TimeZone *tz = TimeZone::createTimeZone(*tzid); 162 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid); 176 TimeZone::getCanonicalID(*tzid, canonical, status); 179 errln((UnicodeString)"Unknown ID " + *tzid); 186 logln("Canonical round trip failed (as expected); tz=" + *tzid 191 errln("Canonical round trip failed; tz=" + *tzid 216 errln((UnicodeString)"Offset round trip failed; tz=" + *tzid 224 errln((UnicodeString)"Raw offset round trip failed; tz=" + *tzid 328 const UnicodeString *tzid; local [all...] |
H A D | tzrulets.cpp | 614 const UnicodeString *tzid = tzenum.snext(status); local 615 if (tzid == NULL) { 622 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 649 const UnicodeString *tzid = tzenum.snext(status); local 650 if (tzid == NULL) { 657 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 664 errln((UnicodeString)"FAIL: failed to get the TimeZoneRules from time zone " + *tzid); 666 RuleBasedTimeZone *rbtz = new RuleBasedTimeZone(*tzid, initial->clone()); 668 errln((UnicodeString)"FAIL: failed to get the transition rule count from time zone " + *tzid); 673 errln((UnicodeString)"FAIL: failed to add a transition rule at index " + i + " to the RBTZ for " + *tzid); 786 const UnicodeString *tzid = tzenum.snext(status); local 886 const UnicodeString *tzid = tzenum.snext(status); local 982 const UnicodeString *tzid = tzenum.snext(status); local 1122 const UnicodeString *tzid = tzenum.snext(status); local 1871 UnicodeString tzid; local 2338 UnicodeString tzid; local [all...] |
/external/icu4c/test/intltest/ |
H A D | tzfmttst.cpp | 173 const UnicodeString *tzid; local 174 while ((tzid = tzids->snext(status))) { 175 TimeZone *tz = TimeZone::createTimeZone(*tzid); 209 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid); 221 TimeZone::getCanonicalID(*tzid, canonicalID, status); 224 errln((UnicodeString)"Unknown ID " + *tzid); 230 logln((UnicodeString)"Canonical round trip failed (probably as expected); tz=" + *tzid 235 errln((UnicodeString)"Canonical round trip failed; tz=" + *tzid 243 if (outtzid != *tzid) { 244 errln((UnicodeString)"Zone ID round trip failued; tz=" + *tzid 436 const UnicodeString *tzid; local [all...] |
H A D | tzrulets.cpp | 615 const UnicodeString *tzid = tzenum.snext(status); local 616 if (tzid == NULL) { 623 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 650 const UnicodeString *tzid = tzenum.snext(status); local 651 if (tzid == NULL) { 658 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 665 errln((UnicodeString)"FAIL: failed to get the TimeZoneRules from time zone " + *tzid); 667 RuleBasedTimeZone *rbtz = new RuleBasedTimeZone(*tzid, initial->clone()); 669 errln((UnicodeString)"FAIL: failed to get the transition rule count from time zone " + *tzid); 674 errln((UnicodeString)"FAIL: failed to add a transition rule at index " + i + " to the RBTZ for " + *tzid); 787 const UnicodeString *tzid = tzenum.snext(status); local 887 const UnicodeString *tzid = tzenum.snext(status); local 983 const UnicodeString *tzid = tzenum.snext(status); local 1123 const UnicodeString *tzid = tzenum.snext(status); local 1872 UnicodeString tzid; local 2339 UnicodeString tzid; local [all...] |
H A D | caltest.cpp | 332 UnicodeString tzid("TestZone"); 335 SimpleTimeZone *zone = new SimpleTimeZone(tzoffset, tzid); 394 if (z->getID(str) != tzid || 2452 const char* tzid; member in struct:__anon18488 2494 for (int32_t i = 0; RPDATA[i].tzid != NULL; i++) { 2496 TimeZone *tz = TimeZone::createTimeZone(RPDATA[i].tzid); 2506 + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "]"); 2509 dataerrln(UnicodeString("Fail: UCAL_WALLTIME_LAST ") + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "] is parsed as " 2522 + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "]"); 2525 dataerrln(UnicodeString("Fail: (default) ") + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid 2550 const char* tzid; member in struct:__anon18489 [all...] |
/external/chromium_org/third_party/icu/source/test/perf/normperf/ |
H A D | dtfmtrtperf.h | 161 const UnicodeString *tzid; local 162 while ((tzid = tzids->snext(*status))) { 163 TimeZone *tz = TimeZone::createTimeZone(*tzid);
|
/external/icu4c/test/perf/normperf/ |
H A D | dtfmtrtperf.h | 161 const UnicodeString *tzid; local 162 while ((tzid = tzids->snext(*status))) { 163 TimeZone *tz = TimeZone::createTimeZone(*tzid);
|
/external/icu4c/common/ |
H A D | putil.cpp | 993 const char *tzid = NULL; local 995 tzid = uprv_detectWindowsTimeZone(); 997 if (tzid != NULL) { 998 return tzid; 1005 tzid = getenv("TZFILE"); 1006 if (tzid != NULL) { 1007 return tzid; 1013 tzid = getenv("TZ"); 1014 if (tzid != NULL && isValidOlsonID(tzid) [all...] |
/external/chromium_org/third_party/icu/source/common/ |
H A D | putil.c | 972 const char *tzid = NULL; local 974 tzid = uprv_detectWindowsTimeZone(); 976 if (tzid != NULL) { 977 return tzid; 984 tzid = getenv("TZFILE"); 985 if (tzid != NULL) { 986 return tzid; 992 tzid = getenv("TZ"); 993 if (tzid != NULL && isValidOlsonID(tzid)) [all...] |
/external/chromium_org/third_party/icu/source/tools/tzcode/ |
H A D | icuzdump.cpp | 199 void dumpZone(ostream& out, const char* linesep, UnicodeString tzid, int32_t low, int32_t high) { argument
|