• Home
  • Raw
  • Download

Lines Matching refs:localStatus

558     UErrorCode localStatus = U_ZERO_ERROR;  in ucurr_forLocale()  local
560 currency, UPRV_LENGTHOF(currency), &localStatus); in ucurr_forLocale()
561 if (U_SUCCESS(localStatus) && resLen == 3 && uprv_isInvariantString(currency, resLen)) { in ucurr_forLocale()
596 localStatus = U_MISSING_RESOURCE_ERROR; in ucurr_forLocale()
599 localStatus = U_ZERO_ERROR; in ucurr_forLocale()
600 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_forLocale()
601 UResourceBundle *cm = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_forLocale()
602 UResourceBundle *countryArray = ures_getByKey(rb, id, cm, &localStatus); in ucurr_forLocale()
603 UResourceBundle *currencyReq = ures_getByIndex(countryArray, 0, NULL, &localStatus); in ucurr_forLocale()
604 s = ures_getStringByKey(currencyReq, "id", &resLen, &localStatus); in ucurr_forLocale()
611 if (U_SUCCESS(localStatus)) { in ucurr_forLocale()
613 currencyReq = ures_getByIndex(countryArray, 1, currencyReq, &localStatus); in ucurr_forLocale()
614 s = ures_getStringByKey(currencyReq, "id", &resLen, &localStatus); in ucurr_forLocale()
623 if ((U_FAILURE(localStatus)) && strchr(id, '_') != 0) { in ucurr_forLocale()
631 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) { in ucurr_forLocale()
633 *ec = localStatus; in ucurr_forLocale()
2096 UErrorCode localStatus = U_ZERO_ERROR; in ucurr_createCurrencyList() local
2099 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_createCurrencyList()
2100 UResourceBundle *currencyMapArray = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_createCurrencyList()
2102 if (U_SUCCESS(localStatus)) { in ucurr_createCurrencyList()
2106 … UResourceBundle *currencyArray = ures_getByIndex(currencyMapArray, i, NULL, &localStatus); in ucurr_createCurrencyList()
2108 if (U_SUCCESS(localStatus)) { in ucurr_createCurrencyList()
2111 … UResourceBundle *currencyRes = ures_getByIndex(currencyArray, j, NULL, &localStatus); in ucurr_createCurrencyList()
2120 UResourceBundle *idRes = ures_getByKey(currencyRes, "id", NULL, &localStatus); in ucurr_createCurrencyList()
2124 const UChar *isoCode = ures_getString(idRes, &isoLength, &localStatus); in ucurr_createCurrencyList()
2128 … UResourceBundle *fromRes = ures_getByKey(currencyRes, "from", NULL, &localStatus); in ucurr_createCurrencyList()
2130 if (U_SUCCESS(localStatus)) { in ucurr_createCurrencyList()
2132 … const int32_t *fromArray = ures_getIntVector(fromRes, &fromLength, &localStatus); in ucurr_createCurrencyList()
2141 localStatus = U_ZERO_ERROR; in ucurr_createCurrencyList()
2142 UResourceBundle *toRes = ures_getByKey(currencyRes, "to", NULL, &localStatus); in ucurr_createCurrencyList()
2144 if (U_SUCCESS(localStatus)) { in ucurr_createCurrencyList()
2146 const int32_t *toArray = ures_getIntVector(toRes, &toLength, &localStatus); in ucurr_createCurrencyList()
2160 localStatus = U_ZERO_ERROR; in ucurr_createCurrencyList()
2161 uhash_put(isoCodes, (UChar *)isoCode, entry, &localStatus); in ucurr_createCurrencyList()
2164 *status = localStatus; in ucurr_createCurrencyList()
2169 *status = localStatus; in ucurr_createCurrencyList()
2303 UErrorCode localStatus = U_ZERO_ERROR; in ucurr_countCurrencies() local
2305 uloc_getKeywordValue(locale, "currency", id, ULOC_FULLNAME_CAPACITY, &localStatus); in ucurr_countCurrencies()
2323 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_countCurrencies()
2324 UResourceBundle *cm = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_countCurrencies()
2327 UResourceBundle *countryArray = ures_getByKey(rb, id, cm, &localStatus); in ucurr_countCurrencies()
2330 if (U_SUCCESS(localStatus)) in ucurr_countCurrencies()
2335 UResourceBundle *currencyRes = ures_getByIndex(countryArray, i, NULL, &localStatus); in ucurr_countCurrencies()
2339 UResourceBundle *fromRes = ures_getByKey(currencyRes, "from", NULL, &localStatus); in ucurr_countCurrencies()
2340 const int32_t *fromArray = ures_getIntVector(fromRes, &fromLength, &localStatus); in ucurr_countCurrencies()
2349 UResourceBundle *toRes = ures_getByKey(currencyRes, "to", NULL, &localStatus); in ucurr_countCurrencies()
2350 const int32_t *toArray = ures_getIntVector(toRes, &toLength, &localStatus); in ucurr_countCurrencies()
2381 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) in ucurr_countCurrencies()
2385 *ec = localStatus; in ucurr_countCurrencies()
2419 UErrorCode localStatus = U_ZERO_ERROR; in ucurr_forLocaleAndDate() local
2421 … resLen = uloc_getKeywordValue(locale, "currency", id, ULOC_FULLNAME_CAPACITY, &localStatus); in ucurr_forLocaleAndDate()
2438 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_forLocaleAndDate()
2439 UResourceBundle *cm = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_forLocaleAndDate()
2442 UResourceBundle *countryArray = ures_getByKey(rb, id, cm, &localStatus); in ucurr_forLocaleAndDate()
2446 if (U_SUCCESS(localStatus)) in ucurr_forLocaleAndDate()
2458 … UResourceBundle *currencyRes = ures_getByIndex(countryArray, i, NULL, &localStatus); in ucurr_forLocaleAndDate()
2459 s = ures_getStringByKey(currencyRes, "id", &resLen, &localStatus); in ucurr_forLocaleAndDate()
2463 … UResourceBundle *fromRes = ures_getByKey(currencyRes, "from", NULL, &localStatus); in ucurr_forLocaleAndDate()
2464 … const int32_t *fromArray = ures_getIntVector(fromRes, &fromLength, &localStatus); in ucurr_forLocaleAndDate()
2473 … UResourceBundle *toRes = ures_getByKey(currencyRes, "to", NULL, &localStatus); in ucurr_forLocaleAndDate()
2474 const int32_t *toArray = ures_getIntVector(toRes, &toLength, &localStatus); in ucurr_forLocaleAndDate()
2519 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) in ucurr_forLocaleAndDate()
2523 *ec = localStatus; in ucurr_forLocaleAndDate()