Home | History | Annotate | Download | only in i18n

Lines Matching refs:ec

152 _findMetaData(const UChar* currency, UErrorCode& ec) {
155 if (U_SUCCESS(ec)) {
156 ec = U_ILLEGAL_ARGUMENT_ERROR;
164 UResourceBundle* currencyData = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &ec);
165 UResourceBundle* currencyMeta = ures_getByKey(currencyData, CURRENCY_META, currencyData, &ec);
167 if (U_FAILURE(ec)) {
179 rb = ures_getByKey(currencyMeta,DEFAULT_META, NULL, &ec);
180 if (U_FAILURE(ec)) {
189 const int32_t *data = ures_getIntVector(rb, &len, &ec);
190 if (U_FAILURE(ec) || len != 2) {
192 if (U_SUCCESS(ec)) {
193 ec = U_INVALID_FORMAT_ERROR;
212 idForLocale(const char* locale, char* countryAndVariant, int capacity, UErrorCode* ec)
219 uloc_getCountry(locale, countryAndVariant, capacity, ec);
220 uloc_getVariant(locale, variant, sizeof(variant), ec);
393 UErrorCode* ec)
397 if (ec != NULL && U_SUCCESS(*ec)) {
410 uint32_t variantType = idForLocale(locale, id, sizeof(id), ec);
412 if (U_FAILURE(*ec)) {
460 uloc_getParent(locale, id, sizeof(id), ec);
461 *ec = U_USING_FALLBACK_WARNING;
462 return ucurr_forLocale(id, buff, buffCapacity, ec);
464 else if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) {
466 *ec = localStatus;
468 if (U_SUCCESS(*ec)) {
474 return u_terminateUChars(buff, buffCapacity, resLen, ec);
476 *ec = U_ILLEGAL_ARGUMENT_ERROR;
514 UErrorCode* ec) {
527 if (U_FAILURE(*ec)) {
533 *ec = U_ILLEGAL_ARGUMENT_ERROR;
553 *ec = U_ILLEGAL_ARGUMENT_ERROR;
579 || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) {
580 *ec = ec2;
603 *ec = U_USING_DEFAULT_WARNING;
613 UErrorCode* ec) {
625 if (U_FAILURE(*ec)) {
636 *ec = U_ILLEGAL_ARGUMENT_ERROR;
661 isChoiceFormat, len, ec);
670 || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) {
671 *ec = ec2;
679 *ec = U_USING_DEFAULT_WARNING;
802 UErrorCode ec = U_ZERO_ERROR;
803 int32_t destLen = u_strToUpper(dest, 0, source, len, locale, &ec);
805 ec = U_ZERO_ERROR;
807 u_strToUpper(dest, destLen, source, len, locale, &ec);
808 if (U_FAILURE(ec)) {
827 UErrorCode& ec) {
835 ec = U_ILLEGAL_ARGUMENT_ERROR;
1269 UErrorCode& ec)
1273 if (U_FAILURE(ec)) {
1304 collectCurrencyNames(locale, &currencyNames, &total_currency_name_count, &currencySymbols, &total_currency_symbol_count, ec);
1305 if (U_FAILURE(ec)) {
1418 icu::UnicodeString& result, UErrorCode& ec)
1425 &isChoiceFormat, &len, &ec);
1426 if (U_SUCCESS(ec)) {
1431 ChoiceFormat f(UnicodeString(TRUE, currname, len), ec);
1432 if (U_SUCCESS(ec)) {
1444 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) {
1445 return (_findMetaData(currency, *ec))[0];
1449 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec) {
1450 const int32_t *data = _findMetaData(currency, *ec);
1454 if (U_SUCCESS(*ec)) {
1455 *ec = U_INVALID_FORMAT_ERROR;
2000 UErrorCode* ec)
2004 if (ec != NULL && U_SUCCESS(*ec))
2011 /*uint32_t variantType =*/ idForLocale(locale, id, sizeof(id), ec);
2013 if (U_FAILURE(*ec))
2084 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR)
2088 *ec = localStatus;
2091 if (U_SUCCESS(*ec))
2110 UErrorCode* ec)
2116 if (ec != NULL && U_SUCCESS(*ec))
2127 /*uint32_t variantType =*/ idForLocale(locale, id, sizeof(id), ec);
2128 if (U_FAILURE(*ec))
2222 if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR)
2226 *ec = localStatus;
2229 if (U_SUCCESS(*ec))
2244 return u_terminateUChars(buff, buffCapacity, resLen, ec);
2249 *ec = U_ILLEGAL_ARGUMENT_ERROR;