Home | History | Annotate | Download | only in i18n

Lines Matching refs:ec

115  * @param ec input-output error code
120 UErrorCode& ec) :
125 if ((top == NULL || res == NULL) && U_SUCCESS(ec)) {
126 ec = U_ILLEGAL_ARGUMENT_ERROR;
128 if (U_SUCCESS(ec)) {
138 ures_getByKey(res, kTRANSPRE32, &r, &ec);
139 transitionTimesPre32 = ures_getIntVector(&r, &len, &ec);
141 if (ec == U_MISSING_RESOURCE_ERROR) {
145 ec = U_ZERO_ERROR;
146 } else if (U_SUCCESS(ec) && (len < 0 || len > 0x7FFF || (len & 1) != 0) /* len must be even */) {
147 ec = U_INVALID_FORMAT_ERROR;
151 ures_getByKey(res, kTRANS, &r, &ec);
152 transitionTimes32 = ures_getIntVector(&r, &len, &ec);
154 if (ec == U_MISSING_RESOURCE_ERROR) {
158 ec = U_ZERO_ERROR;
159 } else if (U_SUCCESS(ec) && (len < 0 || len > 0x7FFF)) {
160 ec = U_INVALID_FORMAT_ERROR;
164 ures_getByKey(res, kTRANSPOST32, &r, &ec);
165 transitionTimesPost32 = ures_getIntVector(&r, &len, &ec);
167 if (ec == U_MISSING_RESOURCE_ERROR) {
171 ec = U_ZERO_ERROR;
172 } else if (U_SUCCESS(ec) && (len < 0 || len > 0x7FFF || (len & 1) != 0) /* len must be even */) {
173 ec = U_INVALID_FORMAT_ERROR;
177 ures_getByKey(res, kTYPEOFFSETS, &r, &ec);
178 typeOffsets = ures_getIntVector(&r, &len, &ec);
179 if (U_SUCCESS(ec) && (len < 2 || len > 0x7FFE || (len & 1) != 0)) {
180 ec = U_INVALID_FORMAT_ERROR;
187 ures_getByKey(res, kTYPEMAP, &r, &ec);
188 typeMapData = ures_getBinary(&r, &len, &ec);
189 if (ec == U_MISSING_RESOURCE_ERROR) {
191 ec = U_INVALID_FORMAT_ERROR;
192 } else if (U_SUCCESS(ec) && len != transitionCount()) {
193 ec = U_INVALID_FORMAT_ERROR;
198 const UChar *ruleIdUStr = ures_getStringByKey(res, kFINALRULE, &len, &ec);
199 ures_getByKey(res, kFINALRAW, &r, &ec);
200 int32_t ruleRaw = ures_getInt(&r, &ec);
201 ures_getByKey(res, kFINALYEAR, &r, &ec);
202 int32_t ruleYear = ures_getInt(&r, &ec);
203 if (U_SUCCESS(ec)) {
205 UResourceBundle *rule = TimeZone::loadRule(top, ruleID, NULL, ec);
206 const int32_t *ruleData = ures_getIntVector(rule, &len, &ec);
207 if (U_SUCCESS(ec) && len == 11) {
218 ruleData[10] * U_MILLIS_PER_SECOND, ec);
220 ec = U_MEMORY_ALLOCATION_ERROR;
244 ec = U_INVALID_FORMAT_ERROR;
247 } else if (ec == U_MISSING_RESOURCE_ERROR) {
249 ec = U_ZERO_ERROR;
254 canonicalID = ZoneMeta::getCanonicalCLDRID(tzid, ec);
257 if (U_FAILURE(ec)) {
330 int32_t millis, UErrorCode& ec) const {
332 if (U_SUCCESS(ec)) {
333 ec = U_ILLEGAL_ARGUMENT_ERROR;
339 ec);
349 UErrorCode& ec) const {
350 if (U_FAILURE(ec)) {
365 ec = U_ILLEGAL_ARGUMENT_ERROR;
375 millis, monthLength, ec);
389 int32_t& dstoff, UErrorCode& ec) const {
390 if (U_FAILURE(ec)) {
394 finalZone->getOffset(date, local, rawoff, dstoff, ec);
402 int32_t& rawoff, int32_t& dstoff, UErrorCode& ec) /*const*/ {
403 if (U_FAILURE(ec)) {
407 finalZone->getOffsetFromLocal(date, nonExistingTimeOpt, duplicatedTimeOpt, rawoff, dstoff, ec);
428 UErrorCode ec = U_ZERO_ERROR;
431 FALSE, raw, dst, ec);
595 UBool OlsonTimeZone::inDaylightTime(UDate date, UErrorCode& ec) const {
597 getOffset(date, FALSE, raw, dst, ec);