Lines Matching refs:ec
239 UErrorCode ec = U_ZERO_ERROR;
241 UBool startsInDST = tz.inDaylightTime(min, ec);
242 if (failure(ec, "TimeZone::inDaylightTime")) return;
243 if (tz.inDaylightTime(max, ec) == startsInDST) {
248 if (failure(ec, "TimeZone::inDaylightTime")) return;
251 if (tz.inDaylightTime(mid, ec) == startsInDST) {
256 if (failure(ec, "TimeZone::inDaylightTime")) return;
368 UErrorCode ec = U_ZERO_ERROR;
429 s_length = s->count(ec);
433 *buf += *s->snext(ec);
435 *buf += UnicodeString(s->next(NULL, ec), "");
441 if(s2 == NULL || s_length != s2->count(ec)) {
456 s->reset(ec);
459 const UnicodeString* id = s->snext(ec);
481 s_length = s->count(ec);
484 *buf += *s->snext(ec);
495 s_length = s->count(ec);
498 *buf += *s->snext(ec);
528 UErrorCode ec = U_ZERO_ERROR;
542 any = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, NULL, ec);
543 if (U_FAILURE(ec)) {
548 canonical = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, NULL, NULL, ec);
549 if (U_FAILURE(ec)) {
554 canonicalLoc = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, NULL, NULL, ec);
555 if (U_FAILURE(ec)) {
560 any_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", NULL, ec);
561 if (U_FAILURE(ec)) {
566 canonical_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, "US", NULL, ec);
567 if (U_FAILURE(ec)) {
572 canonicalLoc_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, "US", NULL, ec);
573 if (U_FAILURE(ec)) {
579 any_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, &rawOffset, ec);
580 if (U_FAILURE(ec)) {
585 any_CA_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "CA", &rawOffset, ec);
586 if (U_FAILURE(ec)) {
592 any_US_E14 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", &rawOffset, ec);
593 if (U_FAILURE(ec)) {
612 any->reset(ec);
613 while ((id1 = any->snext(ec)) != NULL) {
615 canonical->reset(ec);
616 while ((id2 = canonical->snext(ec)) != NULL) {
622 if (U_FAILURE(ec)) {
626 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec);
627 if (U_FAILURE(ec)) {
638 if (U_FAILURE(ec)) {
640 ec = U_ZERO_ERROR;
644 canonical->reset(ec);
645 while ((id1 = canonical->snext(ec)) != NULL) {
646 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec);
647 if (U_FAILURE(ec)) {
657 if (U_FAILURE(ec)) {
659 ec = U_ZERO_ERROR;
663 canonicalLoc->reset(ec);
664 while ((id1 = canonicalLoc->snext(ec)) != NULL) {
665 TimeZone::getRegion(*id1, region, sizeof(region), ec);
666 if (U_FAILURE(ec)) {
673 if (U_FAILURE(ec)) {
675 ec = U_ZERO_ERROR;
679 any_US->reset(ec);
680 while ((id1 = any_US->snext(ec)) != NULL) {
681 TimeZone::getRegion(*id1, region, sizeof(region), ec);
682 if (U_FAILURE(ec)) {
689 if (U_FAILURE(ec)) {
691 ec = U_ZERO_ERROR;
695 any_W5->reset(ec);
696 while ((id1 = any_W5->snext(ec)) != NULL) {
703 if (U_FAILURE(ec)) {
705 ec = U_ZERO_ERROR;
709 zoneCount = any_US_E14->count(ec);
710 if (U_FAILURE(ec)) {
712 ec = U_ZERO_ERROR;
733 UErrorCode ec = U_ZERO_ERROR;
736 s2->reset(ec);
738 while ((id2 = s2->snext(ec)) != NULL) {
740 s1->reset(ec);
741 while ((id1 = s1->snext(ec)) != NULL) {
753 if (U_FAILURE(ec)) {
1692 UErrorCode ec = U_ZERO_ERROR;
1699 n = s->count(ec);
1710 const UnicodeString* id = s->snext(ec);
1725 n = s->count(ec);
1729 const UnicodeString* id = s->snext(ec);
1744 const UnicodeString* id1 = s1->snext(ec);
1745 if(id1==NULL || U_FAILURE(ec)){
1750 const UnicodeString* id2 = s2->snext(ec);
1751 if(id2==NULL || U_FAILURE(ec)){
1800 UErrorCode ec = U_ZERO_ERROR;
1803 tz->getOffset(when, FALSE, raw, dst, ec);
1804 if (U_FAILURE(ec)) {
1995 UErrorCode ec = U_ZERO_ERROR;
2003 s_length = s->count(ec);
2005 const UnicodeString *tzid = s->snext(ec);
2017 TimeZone::getCanonicalID(tmp, tmpCanonical, ec);
2018 if (U_FAILURE(ec)) {
2020 ec = U_ZERO_ERROR;
2083 TimeZone::getCanonicalID(UnicodeString(data[i].id), canonicalID, isSystemID, ec);
2084 if (U_FAILURE(ec)) {
2085 if (ec != U_ILLEGAL_ARGUMENT_ERROR || data[i].expected != 0) {
2089 ec = U_ZERO_ERROR;