Lines Matching refs:ec2
317 UErrorCode ec2 = U_ZERO_ERROR; // local error code: soft failure in _findMetaData() local
318 UResourceBundle* rb = ures_getByKey(currencyMeta, myUCharsToChars(buf, currency), NULL, &ec2); in _findMetaData()
319 if (U_FAILURE(ec2)) { in _findMetaData()
693 UErrorCode ec2 = U_ZERO_ERROR; in ucurr_getName() local
696 uloc_getName(locale, loc, sizeof(loc), &ec2); in ucurr_getName()
697 if (U_FAILURE(ec2) || ec2 == U_STRING_NOT_TERMINATED_WARNING) { in ucurr_getName()
709 ec2 = U_ZERO_ERROR; in ucurr_getName()
710 LocalUResourceBundlePointer rb(ures_open(U_ICUDATA_CURR, loc, &ec2)); in ucurr_getName()
716 key.append(CURRENCIES_NARROW, ec2); in ucurr_getName()
719 key.append(CURRENCIES_FORMAL, ec2); in ucurr_getName()
722 key.append(CURRENCIES_VARIANT, ec2); in ucurr_getName()
728 key.append("/", ec2); in ucurr_getName()
729 key.append(buf, ec2); in ucurr_getName()
730 s = ures_getStringByKeyWithFallback(rb.getAlias(), key.data(), len, &ec2); in ucurr_getName()
731 if (ec2 == U_MISSING_RESOURCE_ERROR) { in ucurr_getName()
733 ec2 = U_ZERO_ERROR; in ucurr_getName()
738 ures_getByKey(rb.getAlias(), CURRENCIES, rb.getAlias(), &ec2); in ucurr_getName()
739 ures_getByKeyWithFallback(rb.getAlias(), buf, rb.getAlias(), &ec2); in ucurr_getName()
740 s = ures_getStringByIndex(rb.getAlias(), choice, len, &ec2); in ucurr_getName()
745 if (U_SUCCESS(ec2)) { in ucurr_getName()
746 if (ec2 == U_USING_DEFAULT_WARNING in ucurr_getName()
747 || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) { in ucurr_getName()
748 *ec = ec2; in ucurr_getName()
757 if (U_SUCCESS(ec2)) { in ucurr_getName()
792 UErrorCode ec2 = U_ZERO_ERROR; in ucurr_getPluralName() local
795 uloc_getName(locale, loc, sizeof(loc), &ec2); in ucurr_getPluralName()
796 if (U_FAILURE(ec2) || ec2 == U_STRING_NOT_TERMINATED_WARNING) { in ucurr_getPluralName()
805 ec2 = U_ZERO_ERROR; in ucurr_getPluralName()
806 UResourceBundle* rb = ures_open(U_ICUDATA_CURR, loc, &ec2); in ucurr_getPluralName()
808 rb = ures_getByKey(rb, CURRENCYPLURALS, rb, &ec2); in ucurr_getPluralName()
811 rb = ures_getByKeyWithFallback(rb, buf, rb, &ec2); in ucurr_getPluralName()
813 s = ures_getStringByKeyWithFallback(rb, pluralCount, len, &ec2); in ucurr_getPluralName()
814 if (U_FAILURE(ec2)) { in ucurr_getPluralName()
816 ec2 = U_ZERO_ERROR; in ucurr_getPluralName()
817 s = ures_getStringByKeyWithFallback(rb, "other", len, &ec2); in ucurr_getPluralName()
818 if (U_FAILURE(ec2)) { in ucurr_getPluralName()
829 if (U_SUCCESS(ec2)) { in ucurr_getPluralName()
830 if (ec2 == U_USING_DEFAULT_WARNING in ucurr_getPluralName()
831 || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) { in ucurr_getPluralName()
832 *ec = ec2; in ucurr_getPluralName()
911 UErrorCode ec2 = U_ZERO_ERROR; in getCurrencyNameCount() local
913 UResourceBundle* rb = ures_open(U_ICUDATA_CURR, locale, &ec2); in getCurrencyNameCount()
914 UResourceBundle* curr = ures_getByKey(rb, CURRENCIES, NULL, &ec2); in getCurrencyNameCount()
917 UResourceBundle* names = ures_getByIndex(curr, i, NULL, &ec2); in getCurrencyNameCount()
919 s = ures_getStringByIndex(names, UCURR_SYMBOL_NAME, &len, &ec2); in getCurrencyNameCount()
980 UErrorCode ec2 = U_ZERO_ERROR; in collectCurrencyNames() local
983 uloc_getName(locale, loc, sizeof(loc), &ec2); in collectCurrencyNames()
984 if (U_FAILURE(ec2) || ec2 == U_STRING_NOT_TERMINATED_WARNING) { in collectCurrencyNames()
1015 ec2 = U_ZERO_ERROR; in collectCurrencyNames()
1017 UResourceBundle* rb = ures_open(U_ICUDATA_CURR, loc, &ec2); in collectCurrencyNames()
1018 UResourceBundle* curr = ures_getByKey(rb, CURRENCIES, NULL, &ec2); in collectCurrencyNames()
1021 UResourceBundle* names = ures_getByIndex(curr, i, NULL, &ec2); in collectCurrencyNames()
1023 s = ures_getStringByIndex(names, UCURR_SYMBOL_NAME, &len, &ec2); in collectCurrencyNames()
1056 s = ures_getStringByIndex(names, UCURR_LONG_NAME, &len, &ec2); in collectCurrencyNames()