Home | History | Annotate | Download | only in i18n

Lines Matching refs:ec

306 _findMetaData(const UChar* currency, UErrorCode& ec) {
309 if (U_SUCCESS(ec)) {
310 ec = U_ILLEGAL_ARGUMENT_ERROR;
318 UResourceBundle* currencyData = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &ec);
319 UResourceBundle* currencyMeta = ures_getByKey(currencyData, CURRENCY_META, currencyData, &ec);
321 if (U_FAILURE(ec)) {
333 rb = ures_getByKey(currencyMeta,DEFAULT_META, NULL, &ec);
334 if (U_FAILURE(ec)) {
343 const int32_t *data = ures_getIntVector(rb, &len, &ec);
344 if (U_FAILURE(ec) || len != 4) {
346 if (U_SUCCESS(ec)) {
347 ec = U_INVALID_FORMAT_ERROR;
366 idForLocale(const char* locale, char* countryAndVariant, int capacity, UErrorCode* ec)
373 uloc_getCountry(locale, countryAndVariant, capacity, ec);
374 uloc_getVariant(locale, variant, sizeof(variant), ec);
548 UErrorCode* ec)
552 if (ecec)) {
565 uint32_t variantType = idForLocale(locale, id, sizeof(id), ec);
567 if (U_FAILURE(*ec)) {
615 uloc_getParent(locale, id, sizeof(id), ec);
616 *ec = U_USING_FALLBACK_WARNING;
617 return ucurr_forLocale(id, buff, buffCapacity, ec);
619 else if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) {
621 *ec = localStatus;
623 if (U_SUCCESS(*ec)) {
629 return u_terminateUChars(buff, buffCapacity, resLen, ec);
631 *ec = U_ILLEGAL_ARGUMENT_ERROR;
669 UErrorCode* ec) {
682 if (U_FAILURE(*ec)) {
688 *ec = U_ILLEGAL_ARGUMENT_ERROR;
708 *ec = U_ILLEGAL_ARGUMENT_ERROR;
734 || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) {
735 *ec = ec2;
758 *ec = U_USING_DEFAULT_WARNING;
768 UErrorCode* ec) {
780 if (U_FAILURE(*ec)) {
791 *ec = U_ILLEGAL_ARGUMENT_ERROR;
816 isChoiceFormat, len, ec);
825 || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) {
826 *ec = ec2;
834 *ec = U_USING_DEFAULT_WARNING;
961 UErrorCode ec = U_ZERO_ERROR;
962 int32_t destLen = u_strToUpper(dest, 0, source, len, locale, &ec);
964 ec = U_ZERO_ERROR;
966 u_strToUpper(dest, destLen, source, len, locale, &ec);
967 if (U_FAILURE(ec)) {
986 UErrorCode& ec) {
995 ec = U_ILLEGAL_ARGUMENT_ERROR;
1440 UErrorCode& ec)
1444 if (U_FAILURE(ec)) {
1475 collectCurrencyNames(locale, &currencyNames, &total_currency_name_count, &currencySymbols, &total_currency_symbol_count, ec);
1476 if (U_FAILURE(ec)) {
1592 icu::UnicodeString& result, UErrorCode& ec)
1599 &isChoiceFormat, &len, &ec);
1600 if (U_SUCCESS(ec)) {
1605 ChoiceFormat f(UnicodeString(TRUE, currname, len), ec);
1606 if (U_SUCCESS(ec)) {
1618 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) {
1619 return (_findMetaData(currency, *ec))[0];
1623 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec) {
1624 const int32_t *data = _findMetaData(currency, *ec);
1628 if (U_SUCCESS(*ec)) {
1629 *ec = U_INVALID_FORMAT_ERROR;
2216 UErrorCode* ec)
2220 if (ec != NULL && U_SUCCESS(*ec))
2227 /*uint32_t variantType =*/ idForLocale(locale, id, sizeof(id), ec);
2229 if (U_FAILURE(*ec))
2300 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR)
2304 *ec = localStatus;
2307 if (U_SUCCESS(*ec))
2326 UErrorCode* ec)
2332 if (ec != NULL && U_SUCCESS(*ec))
2343 /*uint32_t variantType =*/ idForLocale(locale, id, sizeof(id), ec);
2344 if (U_FAILURE(*ec))
2438 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR)
2442 *ec = localStatus;
2445 if (U_SUCCESS(*ec))
2460 return u_terminateUChars(buff, buffCapacity, resLen, ec);
2465 *ec = U_ILLEGAL_ARGUMENT_ERROR;