Lines Matching refs:status

88         UErrorCode &status) {
91 resource, key, &len, &status);
92 if (U_FAILURE(status)) {
103 UErrorCode &status) {
104 if (U_FAILURE(status)) {
109 resource, key, &len, &status);
110 if (status == U_MISSING_RESOURCE_ERROR) {
112 status = U_ZERO_ERROR;
115 if (U_FAILURE(status)) {
125 UErrorCode &status) {
127 const UChar *resStr = ures_getString(resource, &len, &status);
128 if (U_FAILURE(status)) {
139 UErrorCode &status) {
142 resource, idx, &len, &status);
143 if (U_FAILURE(status)) {
154 UErrorCode &status) {
159 status);
164 status);
169 status);
174 status);
179 status);
186 UErrorCode &status) {
187 if (U_FAILURE(status)) {
193 ures_getByIndex(resource, i, NULL, &status));
194 if (U_FAILURE(status)) {
198 if (!getString(pluralBundle.getAlias(), rawPattern, status)) {
204 status)) {
213 UErrorCode &status) {
216 resource, "relativeTime", NULL, &status));
217 if (U_FAILURE(status)) {
221 topLevel.getAlias(), "future", NULL, &status));
222 if (U_FAILURE(status)) {
228 status);
230 topLevel.getAlias(), "past", NULL, &status));
231 if (U_FAILURE(status)) {
237 status);
244 UErrorCode &status) {
246 ures_getByKeyWithFallback(resource, path, NULL, &status));
247 if (U_FAILURE(status)) {
250 initRelativeUnit(topLevel.getAlias(), relativeUnit, status);
258 UErrorCode &status) {
260 ures_getByKeyWithFallback(resource, path, NULL, &status));
261 if (U_FAILURE(status)) {
264 initRelativeUnit(topLevel.getAlias(), relativeUnit, status);
266 if (!getStringWithFallback(topLevel.getAlias(), "dn", unitName, status)) {
271 topLevel.getAlias(), ULOC_ACTUAL_LOCALE, &status);
272 if (U_FAILURE(status)) {
281 topLevel.getAlias(), "relative", topLevel.getAlias(), &status);
282 if (U_FAILURE(status)) {
289 status);
296 UErrorCode &status) {
298 ures_getByKeyWithFallback(resource, path, NULL, &status));
299 if (U_FAILURE(status)) {
304 status = U_INTERNAL_PROGRAM_ERROR;
308 if (!getStringByIndex(topLevel.getAlias(), i, daysOfWeek[i], status)) {
320 UErrorCode &status) {
322 ures_getByKeyWithFallback(resource, path, NULL, &status));
323 if (U_FAILURE(status)) {
330 status);
336 UErrorCode &status) {
342 status);
348 status);
354 status);
360 status);
365 status);
370 status);
375 status);
380 status);
386 status);
393 status);
400 status);
407 status);
414 status);
421 status);
428 status);
435 status);
436 return U_SUCCESS(status);
442 UErrorCode &status) {
448 status)) {
452 pathBuffer.append("calendar/", status)
453 .appendInvariantChars(defaultCalendarName, status)
454 .append("/DateTimePatterns", status);
457 resource, pathBuffer.data(), NULL, &status));
458 if (U_FAILURE(status)) {
468 return getStringByIndex(topLevel.getAlias(), 8, result, status);
473 const char *localeId, UErrorCode &status) {
474 LocalUResourceBundlePointer topLevel(ures_open(NULL, localeId, &status));
475 if (U_FAILURE(status)) {
481 status = U_MEMORY_ALLOCATION_ERROR;
487 status)) {
491 if (!getDateTimePattern(topLevel.getAlias(), dateTimePattern, status)) {
495 new MessageFormat(dateTimePattern, localeId, status));
496 if (U_FAILURE(status)) {
502 static void U_CALLCONV cacheInit(UErrorCode &status) {
505 gCache = new SimpleLRUCache(100, &createData, status);
506 if (U_FAILURE(status)) {
515 UErrorCode &status) {
516 umtx_initOnce(gCacheInitOnce, &cacheInit, status);
517 if (U_FAILURE(status)) {
521 gCache->get(locale, ptr, status);
522 return U_SUCCESS(status);
525 RelativeDateTimeFormatter::RelativeDateTimeFormatter(UErrorCode& status)
527 init(Locale::getDefault(), NULL, status);
531 const Locale& locale, UErrorCode& status)
533 init(locale, NULL, status);
537 const Locale& locale, NumberFormat *nfToAdopt, UErrorCode& status)
539 init(locale, nfToAdopt, status);
580 UnicodeString& appendTo, UErrorCode& status) const {
581 if (U_FAILURE(status)) {
585 status = U_ILLEGAL_ARGUMENT_ERROR;
596 status);
601 UnicodeString& appendTo, UErrorCode& status) const {
602 if (U_FAILURE(status)) {
606 status = U_ILLEGAL_ARGUMENT_ERROR;
614 UnicodeString& appendTo, UErrorCode& status) const {
618 args, 2, appendTo, fpos, status);
622 const Locale &locale, NumberFormat *nfToAdopt, UErrorCode &status) {
624 if (!getFromCache(locale.getName(), cache, status)) {
629 locale, UPLURAL_TYPE_CARDINAL, status),
631 if (U_FAILURE(status)) {
638 locale, UNUM_DECIMAL, status),
640 if (U_FAILURE(status)) {
647 status = U_MEMORY_ALLOCATION_ERROR;