• Home
  • Raw
  • Download

Lines Matching refs:localStatus

524     UErrorCode localStatus = U_ZERO_ERROR;  in ucurr_forLocale()  local
526 currency, UPRV_LENGTHOF(currency), &localStatus); in ucurr_forLocale()
527 if (U_SUCCESS(localStatus) && resLen == 3 && uprv_isInvariantString(currency, resLen)) { in ucurr_forLocale()
562 localStatus = U_MISSING_RESOURCE_ERROR; in ucurr_forLocale()
565 localStatus = U_ZERO_ERROR; in ucurr_forLocale()
566 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_forLocale()
567 UResourceBundle *cm = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_forLocale()
568 UResourceBundle *countryArray = ures_getByKey(rb, id, cm, &localStatus); in ucurr_forLocale()
569 UResourceBundle *currencyReq = ures_getByIndex(countryArray, 0, NULL, &localStatus); in ucurr_forLocale()
570 s = ures_getStringByKey(currencyReq, "id", &resLen, &localStatus); in ucurr_forLocale()
575 if ((U_FAILURE(localStatus)) && strchr(id, '_') != 0) { in ucurr_forLocale()
583 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) { in ucurr_forLocale()
585 *ec = localStatus; in ucurr_forLocale()
2068 UErrorCode localStatus = U_ZERO_ERROR; in ucurr_createCurrencyList() local
2071 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_createCurrencyList()
2072 UResourceBundle *currencyMapArray = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_createCurrencyList()
2074 if (U_SUCCESS(localStatus)) { in ucurr_createCurrencyList()
2078 … UResourceBundle *currencyArray = ures_getByIndex(currencyMapArray, i, NULL, &localStatus); in ucurr_createCurrencyList()
2080 if (U_SUCCESS(localStatus)) { in ucurr_createCurrencyList()
2083 … UResourceBundle *currencyRes = ures_getByIndex(currencyArray, j, NULL, &localStatus); in ucurr_createCurrencyList()
2092 UResourceBundle *idRes = ures_getByKey(currencyRes, "id", NULL, &localStatus); in ucurr_createCurrencyList()
2096 const UChar *isoCode = ures_getString(idRes, &isoLength, &localStatus); in ucurr_createCurrencyList()
2100 … UResourceBundle *fromRes = ures_getByKey(currencyRes, "from", NULL, &localStatus); in ucurr_createCurrencyList()
2102 if (U_SUCCESS(localStatus)) { in ucurr_createCurrencyList()
2104 … const int32_t *fromArray = ures_getIntVector(fromRes, &fromLength, &localStatus); in ucurr_createCurrencyList()
2113 localStatus = U_ZERO_ERROR; in ucurr_createCurrencyList()
2114 UResourceBundle *toRes = ures_getByKey(currencyRes, "to", NULL, &localStatus); in ucurr_createCurrencyList()
2116 if (U_SUCCESS(localStatus)) { in ucurr_createCurrencyList()
2118 const int32_t *toArray = ures_getIntVector(toRes, &toLength, &localStatus); in ucurr_createCurrencyList()
2132 localStatus = U_ZERO_ERROR; in ucurr_createCurrencyList()
2133 uhash_put(isoCodes, (UChar *)isoCode, entry, &localStatus); in ucurr_createCurrencyList()
2136 *status = localStatus; in ucurr_createCurrencyList()
2141 *status = localStatus; in ucurr_createCurrencyList()
2275 UErrorCode localStatus = U_ZERO_ERROR; in ucurr_countCurrencies() local
2294 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_countCurrencies()
2295 UResourceBundle *cm = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_countCurrencies()
2298 UResourceBundle *countryArray = ures_getByKey(rb, id, cm, &localStatus); in ucurr_countCurrencies()
2301 if (U_SUCCESS(localStatus)) in ucurr_countCurrencies()
2306 UResourceBundle *currencyRes = ures_getByIndex(countryArray, i, NULL, &localStatus); in ucurr_countCurrencies()
2310 UResourceBundle *fromRes = ures_getByKey(currencyRes, "from", NULL, &localStatus); in ucurr_countCurrencies()
2311 const int32_t *fromArray = ures_getIntVector(fromRes, &fromLength, &localStatus); in ucurr_countCurrencies()
2320 UResourceBundle *toRes = ures_getByKey(currencyRes, "to", NULL, &localStatus); in ucurr_countCurrencies()
2321 const int32_t *toArray = ures_getIntVector(toRes, &toLength, &localStatus); in ucurr_countCurrencies()
2352 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) in ucurr_countCurrencies()
2356 *ec = localStatus; in ucurr_countCurrencies()
2390 UErrorCode localStatus = U_ZERO_ERROR; in ucurr_forLocaleAndDate() local
2408 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_forLocaleAndDate()
2409 UResourceBundle *cm = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_forLocaleAndDate()
2412 UResourceBundle *countryArray = ures_getByKey(rb, id, cm, &localStatus); in ucurr_forLocaleAndDate()
2416 if (U_SUCCESS(localStatus)) in ucurr_forLocaleAndDate()
2428 … UResourceBundle *currencyRes = ures_getByIndex(countryArray, i, NULL, &localStatus); in ucurr_forLocaleAndDate()
2429 s = ures_getStringByKey(currencyRes, "id", &resLen, &localStatus); in ucurr_forLocaleAndDate()
2433 … UResourceBundle *fromRes = ures_getByKey(currencyRes, "from", NULL, &localStatus); in ucurr_forLocaleAndDate()
2434 … const int32_t *fromArray = ures_getIntVector(fromRes, &fromLength, &localStatus); in ucurr_forLocaleAndDate()
2443 … UResourceBundle *toRes = ures_getByKey(currencyRes, "to", NULL, &localStatus); in ucurr_forLocaleAndDate()
2444 const int32_t *toArray = ures_getIntVector(toRes, &toLength, &localStatus); in ucurr_forLocaleAndDate()
2489 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) in ucurr_forLocaleAndDate()
2493 *ec = localStatus; in ucurr_forLocaleAndDate()