Lines Matching defs:ec
237 UErrorCode ec = U_ZERO_ERROR;
239 UBool startsInDST = tz.inDaylightTime(min, ec);
240 if (failure(ec, "TimeZone::inDaylightTime")) return;
241 if (tz.inDaylightTime(max, ec) == startsInDST) {
246 if (failure(ec, "TimeZone::inDaylightTime")) return;
249 if (tz.inDaylightTime(mid, ec) == startsInDST) {
254 if (failure(ec, "TimeZone::inDaylightTime")) return;
366 UErrorCode ec = U_ZERO_ERROR;
427 s_length = s->count(ec);
431 *buf += *s->snext(ec);
433 *buf += UnicodeString(s->next(NULL, ec), "");
439 if(s2 == NULL || s_length != s2->count(ec)) {
454 s->reset(ec);
457 const UnicodeString* id = s->snext(ec);
479 s_length = s->count(ec);
482 *buf += *s->snext(ec);
493 s_length = s->count(ec);
496 *buf += *s->snext(ec);
526 UErrorCode ec = U_ZERO_ERROR;
540 any = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, NULL, ec);
541 if (U_FAILURE(ec)) {
546 canonical = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, NULL, NULL, ec);
547 if (U_FAILURE(ec)) {
552 canonicalLoc = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, NULL, NULL, ec);
553 if (U_FAILURE(ec)) {
558 any_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", NULL, ec);
559 if (U_FAILURE(ec)) {
564 canonical_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, "US", NULL, ec);
565 if (U_FAILURE(ec)) {
570 canonicalLoc_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, "US", NULL, ec);
571 if (U_FAILURE(ec)) {
577 any_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, &rawOffset, ec);
578 if (U_FAILURE(ec)) {
583 any_CA_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "CA", &rawOffset, ec);
584 if (U_FAILURE(ec)) {
590 any_US_E14 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", &rawOffset, ec);
591 if (U_FAILURE(ec)) {
610 any->reset(ec);
611 while ((id1 = any->snext(ec)) != NULL) {
613 canonical->reset(ec);
614 while ((id2 = canonical->snext(ec)) != NULL) {
620 if (U_FAILURE(ec)) {
624 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec);
625 if (U_FAILURE(ec)) {
636 if (U_FAILURE(ec)) {
638 ec = U_ZERO_ERROR;
642 canonical->reset(ec);
643 while ((id1 = canonical->snext(ec)) != NULL) {
644 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec);
645 if (U_FAILURE(ec)) {
655 if (U_FAILURE(ec)) {
657 ec = U_ZERO_ERROR;
661 canonicalLoc->reset(ec);
662 while ((id1 = canonicalLoc->snext(ec)) != NULL) {
663 TimeZone::getRegion(*id1, region, sizeof(region), ec);
664 if (U_FAILURE(ec)) {
671 if (U_FAILURE(ec)) {
673 ec = U_ZERO_ERROR;
677 any_US->reset(ec);
678 while ((id1 = any_US->snext(ec)) != NULL) {
679 TimeZone::getRegion(*id1, region, sizeof(region), ec);
680 if (U_FAILURE(ec)) {
687 if (U_FAILURE(ec)) {
689 ec = U_ZERO_ERROR;
693 any_W5->reset(ec);
694 while ((id1 = any_W5->snext(ec)) != NULL) {
701 if (U_FAILURE(ec)) {
703 ec = U_ZERO_ERROR;
707 zoneCount = any_US_E14->count(ec);
708 if (U_FAILURE(ec)) {
710 ec = U_ZERO_ERROR;
731 UErrorCode ec = U_ZERO_ERROR;
734 s2->reset(ec);
736 while ((id2 = s2->snext(ec)) != NULL) {
738 s1->reset(ec);
739 while ((id1 = s1->snext(ec)) != NULL) {
751 if (U_FAILURE(ec)) {
1690 UErrorCode ec = U_ZERO_ERROR;
1697 n = s->count(ec);
1708 const UnicodeString* id = s->snext(ec);
1723 n = s->count(ec);
1727 const UnicodeString* id = s->snext(ec);
1742 const UnicodeString* id1 = s1->snext(ec);
1743 if(id1==NULL || U_FAILURE(ec)){
1748 const UnicodeString* id2 = s2->snext(ec);
1749 if(id2==NULL || U_FAILURE(ec)){
1798 UErrorCode ec = U_ZERO_ERROR;
1801 tz->getOffset(when, FALSE, raw, dst, ec);
1802 if (U_FAILURE(ec)) {
1953 UErrorCode ec = U_ZERO_ERROR;
1954 UnicodeString *pResult = &TimeZone::getCanonicalID(bogus, canonicalID, ec);
1955 assertEquals("TimeZone::getCanonicalID(bogus) should fail", U_ILLEGAL_ARGUMENT_ERROR, ec);
1960 ec = U_MEMORY_ALLOCATION_ERROR;
1961 pResult = &TimeZone::getCanonicalID(berlin, canonicalID, ec);
1962 assertEquals("TimeZone::getCanonicalID(failure) should fail", U_MEMORY_ALLOCATION_ERROR, ec);
1967 ec = U_ZERO_ERROR;
1968 pResult = &TimeZone::getCanonicalID(berlin, canonicalID, ec);
1969 assertSuccess("TimeZone::getCanonicalID(bogus dest) should succeed", ec, TRUE);
2086 UErrorCode ec = U_ZERO_ERROR;
2094 s_length = s->count(ec);
2096 const UnicodeString *tzid = s->snext(ec);
2108 TimeZone::getCanonicalID(tmp, tmpCanonical, ec);
2109 if (U_FAILURE(ec)) {
2111 ec = U_ZERO_ERROR;
2174 TimeZone::getCanonicalID(UnicodeString(data[i].id), canonicalID, isSystemID, ec);
2175 if (U_FAILURE(ec)) {
2176 if (ec != U_ILLEGAL_ARGUMENT_ERROR || data[i].expected != 0) {
2180 ec = U_ZERO_ERROR;