Lines Matching refs:ec2
333 UErrorCode ec2 = U_ZERO_ERROR; // local error code: soft failure in _findMetaData() local
334 UResourceBundle* rb = ures_getByKey(currencyMeta, myUCharsToChars(buf, currency), NULL, &ec2); in _findMetaData()
335 if (U_FAILURE(ec2)) { in _findMetaData()
707 UErrorCode ec2 = U_ZERO_ERROR; in ucurr_getName() local
710 uloc_getName(locale, loc, sizeof(loc), &ec2); in ucurr_getName()
711 if (U_FAILURE(ec2) || ec2 == U_STRING_NOT_TERMINATED_WARNING) { in ucurr_getName()
723 ec2 = U_ZERO_ERROR; in ucurr_getName()
724 UResourceBundle* rb = ures_open(U_ICUDATA_CURR, loc, &ec2); in ucurr_getName()
726 rb = ures_getByKey(rb, CURRENCIES, rb, &ec2); in ucurr_getName()
729 rb = ures_getByKeyWithFallback(rb, buf, rb, &ec2); in ucurr_getName()
731 s = ures_getStringByIndex(rb, choice, len, &ec2); in ucurr_getName()
736 if (U_SUCCESS(ec2)) { in ucurr_getName()
737 if (ec2 == U_USING_DEFAULT_WARNING in ucurr_getName()
738 || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) { in ucurr_getName()
739 *ec = ec2; in ucurr_getName()
749 if (U_SUCCESS(ec2)) { in ucurr_getName()
790 UErrorCode ec2 = U_ZERO_ERROR; in ucurr_getPluralName() local
793 uloc_getName(locale, loc, sizeof(loc), &ec2); in ucurr_getPluralName()
794 if (U_FAILURE(ec2) || ec2 == U_STRING_NOT_TERMINATED_WARNING) { in ucurr_getPluralName()
803 ec2 = U_ZERO_ERROR; in ucurr_getPluralName()
804 UResourceBundle* rb = ures_open(U_ICUDATA_CURR, loc, &ec2); in ucurr_getPluralName()
806 rb = ures_getByKey(rb, CURRENCYPLURALS, rb, &ec2); in ucurr_getPluralName()
809 rb = ures_getByKeyWithFallback(rb, buf, rb, &ec2); in ucurr_getPluralName()
811 s = ures_getStringByKeyWithFallback(rb, pluralCount, len, &ec2); in ucurr_getPluralName()
812 if (U_FAILURE(ec2)) { in ucurr_getPluralName()
814 ec2 = U_ZERO_ERROR; in ucurr_getPluralName()
815 s = ures_getStringByKeyWithFallback(rb, "other", len, &ec2); in ucurr_getPluralName()
816 if (U_FAILURE(ec2)) { in ucurr_getPluralName()
827 if (U_SUCCESS(ec2)) { in ucurr_getPluralName()
828 if (ec2 == U_USING_DEFAULT_WARNING in ucurr_getPluralName()
829 || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) { in ucurr_getPluralName()
830 *ec = ec2; in ucurr_getPluralName()
909 UErrorCode ec2 = U_ZERO_ERROR; in getCurrencyNameCount() local
911 UResourceBundle* rb = ures_open(U_ICUDATA_CURR, locale, &ec2); in getCurrencyNameCount()
912 UResourceBundle* curr = ures_getByKey(rb, CURRENCIES, NULL, &ec2); in getCurrencyNameCount()
915 UResourceBundle* names = ures_getByIndex(curr, i, NULL, &ec2); in getCurrencyNameCount()
917 s = ures_getStringByIndex(names, UCURR_SYMBOL_NAME, &len, &ec2); in getCurrencyNameCount()
927 ChoiceFormat fmt(UnicodeString(TRUE, s, len), ec2); in getCurrencyNameCount()
994 UErrorCode ec2 = U_ZERO_ERROR; in collectCurrencyNames() local
997 uloc_getName(locale, loc, sizeof(loc), &ec2); in collectCurrencyNames()
998 if (U_FAILURE(ec2) || ec2 == U_STRING_NOT_TERMINATED_WARNING) { in collectCurrencyNames()
1029 ec2 = U_ZERO_ERROR; in collectCurrencyNames()
1031 UResourceBundle* rb = ures_open(U_ICUDATA_CURR, loc, &ec2); in collectCurrencyNames()
1032 UResourceBundle* curr = ures_getByKey(rb, CURRENCIES, NULL, &ec2); in collectCurrencyNames()
1035 UResourceBundle* names = ures_getByIndex(curr, i, NULL, &ec2); in collectCurrencyNames()
1037 s = ures_getStringByIndex(names, UCURR_SYMBOL_NAME, &len, &ec2); in collectCurrencyNames()
1059 ChoiceFormat fmt(UnicodeString(TRUE, s, len), ec2); in collectCurrencyNames()
1092 s = ures_getStringByIndex(names, UCURR_LONG_NAME, &len, &ec2); in collectCurrencyNames()