Lines Matching refs:status
127 UErrorCode* status)
130 if(U_FAILURE(*status)) return 0;
133 : _createTimeZone(zoneID, len, status);
135 if (U_FAILURE(*status)) {
145 uloc_setKeywordValue("calendar", "gregorian", localeBuf, ULOC_LOCALE_IDENTIFIER_CAPACITY, status);
146 if (U_FAILURE(*status)) {
149 return (UCalendar*)Calendar::createInstance(zone, Locale(localeBuf), *status);
151 return (UCalendar*)Calendar::createInstance(zone, Locale(locale), *status);
163 UErrorCode* status)
165 if(U_FAILURE(*status)) return 0;
170 *status = U_MEMORY_ALLOCATION_ERROR;
181 UErrorCode *status)
184 if(U_FAILURE(*status))
188 : _createTimeZone(zoneID, len, status);
201 UErrorCode* status)
204 if(U_FAILURE(*status)) return -1;
232 return id.extract(result, resultLength, *status);
237 UErrorCode* status )
240 if(U_FAILURE(*status)) return (UBool) -1;
241 return ((Calendar*)cal)->inDaylightTime(*status);
335 UErrorCode* status)
338 if(U_FAILURE(*status)) return (UDate) 0;
340 return ((Calendar*)cal)->getTime(*status);
346 UErrorCode* status )
348 if(U_FAILURE(*status)) return;
350 ((Calendar*)cal)->setTime(dateTime, *status);
359 UErrorCode *status)
362 if(U_FAILURE(*status)) return;
376 UErrorCode *status)
378 if(U_FAILURE(*status)) return;
395 UErrorCode* status)
398 if(U_FAILURE(*status)) return;
400 ((Calendar*)cal)->add(field, amount, *status);
407 UErrorCode* status)
410 if(U_FAILURE(*status)) return;
412 ((Calendar*)cal)->roll(field, amount, *status);
418 UErrorCode* status )
421 if(U_FAILURE(*status)) return -1;
423 return ((Calendar*)cal)->get(field, *status);
462 UErrorCode *status)
465 if(status==0 || U_FAILURE(*status)) {
484 *status);
488 *status);
497 ucal_getLocaleByType(const UCalendar *cal, ULocDataLocaleType type, UErrorCode* status)
500 if (U_SUCCESS(*status)) {
501 *status = U_ILLEGAL_ARGUMENT_ERROR;
505 return ((Calendar*)cal)->getLocaleID(type, *status);
509 ucal_getTZDataVersion(UErrorCode* status)
511 return TimeZone::getTZDataVersion(*status);
516 UChar* result, int32_t resultCapacity, UBool *isSystemID, UErrorCode* status) {
517 if(status == 0 || U_FAILURE(*status)) {
524 *status = U_ILLEGAL_ARGUMENT_ERROR;
530 TimeZone::getCanonicalID(UnicodeString(id, len), canonical, systemID, *status);
531 if (U_SUCCESS(*status)) {
535 reslen = canonical.extract(result, resultCapacity, *status);
541 ucal_getType(const UCalendar *cal, UErrorCode* status)
543 if (U_FAILURE(*status)) {
550 ucal_getDayOfWeekType(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode* status)
552 if (U_FAILURE(*status)) {
555 return ((Calendar*)cal)->getDayOfWeekType(dayOfWeek, *status);
559 ucal_getWeekendTransition(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode *status)
561 if (U_FAILURE(*status)) {
564 return ((Calendar*)cal)->getWeekendTransition(dayOfWeek, *status);
568 ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status)
570 if (U_FAILURE(*status)) {
573 return ((Calendar*)cal)->isWeekend(date, *status);
605 ucal_getKeywordValuesForLocale(const char * /* key */, const char* locale, UBool commonlyUsed, UErrorCode *status) {
609 prefRegionLength = uloc_getCountry(locale, prefRegion, sizeof(prefRegion), status);
613 locLength = uloc_addLikelySubtags(locale, loc, sizeof(loc), status);
615 status);
619 UResourceBundle *rb = ures_openDirect(NULL, "supplementalData", status);
620 ures_getByKey(rb, "calendarPreferenceData", rb, status);
621 UResourceBundle *order = ures_getByKey(rb, prefRegion, NULL, status);
622 if (*status == U_MISSING_RESOURCE_ERROR && rb != NULL) {
623 *status = U_ZERO_ERROR;
624 order = ures_getByKey(rb, "001", NULL, status);
629 if (U_SUCCESS(*status)) {
630 values = ulist_createEmptyList(status);
631 if (U_SUCCESS(*status)) {
634 const UChar *type = ures_getStringByIndex(order, i, &len, status);
637 *status = U_MEMORY_ALLOCATION_ERROR;
643 ulist_addItemEndList(values, caltype, TRUE, status);
644 if (U_FAILURE(*status)) {
649 if (U_SUCCESS(*status) && !commonlyUsed) {
653 ulist_addItemEndList(values, CAL_TYPES[i], FALSE, status);
654 if (U_FAILURE(*status)) {
660 if (U_FAILURE(*status)) {
670 if (U_FAILURE(*status) || values == NULL) {
677 *status = U_MEMORY_ALLOCATION_ERROR;