Home
last modified time | relevance | path

Searched refs:numFmt (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dplurfmts.cpp66 NumberFormat *numFmt = NumberFormat::createInstance(status[0]); in pluralFormatBasicTest() local
85 numberFormatTest(plFmt[i], numFmt, 1, 12, NULL, NULL, FALSE, &message); in pluralFormatBasicTest()
86 numberFormatTest(plFmt[i], numFmt, 100, 112, NULL, NULL, FALSE, &message); in pluralFormatBasicTest()
95 plFmt[0]->setNumberFormat(numFmt,status[0]); in pluralFormatBasicTest()
142 delete numFmt; in pluralFormatBasicTest()
226 LocalPointer<NumberFormat> numFmt(NumberFormat::createInstance(status)); in pluralFormatUnitTest() local
243 … numberFormatTest(&plFmt, numFmt.getAlias(), 1, 10, (UnicodeString *)&patternOddTestResult[i], in pluralFormatUnitTest()
265 numFmt.adoptInstead(NumberFormat::createInstance(Locale::getEnglish(), status)); in pluralFormatUnitTest()
269 numberFormatTest(&pluralFmt, numFmt.getAlias(), 5, 5, NULL, NULL, FALSE, &message); in pluralFormatUnitTest()
683 NumberFormat *numFmt, in numberFormatTest() argument
[all …]
Dplurfmts.h39 NumberFormat *numFmt,
Dnumfmtst.cpp3867 NumberFormat* numFmt = NumberFormat::createInstance(locale, k, status); in TestCurrencyIsoPluralFormat() local
3869 delete numFmt; in TestCurrencyIsoPluralFormat()
3875 numFmt->setCurrency(currencyCode, status); in TestCurrencyIsoPluralFormat()
3877 delete numFmt; in TestCurrencyIsoPluralFormat()
3883 numFmt->format(numberToBeFormat, strBuf); in TestCurrencyIsoPluralFormat()
3893 numFmt->setLenient(TRUE); in TestCurrencyIsoPluralFormat()
3904 numFmt->parse(oneCurrencyFormatResult, parseResult, status); in TestCurrencyIsoPluralFormat()
3919 delete numFmt; in TestCurrencyIsoPluralFormat()
3978 NumberFormat* numFmt = NumberFormat::createInstance(locale, k, status); in TestCurrencyParsing() local
3984 delete numFmt; in TestCurrencyParsing()
[all …]
Dtmsgfmt.cpp1544 NumberFormat* numFmt = NumberFormat::createInstance(locale, ec); in TestRBNF() local
1556 numFmt->parse(values[j], args[0], ec); in TestRBNF()
1577 delete numFmt; in TestRBNF()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTestMessageFormat.java870 final NumberFormat numFmt = NumberFormat.getInstance(locale); in TestRBNF() local
878 num = numFmt.parse(values[j]); in TestRBNF()
DNumberFormatTest.java803 NumberFormat numFmt = NumberFormat.getInstance(locale, k); in TestCurrencyIsoPluralFormat() local
804 numFmt.setCurrency(Currency.getInstance(currencyISOCode)); in TestCurrencyIsoPluralFormat()
805 String strBuf = numFmt.format(numberToBeFormat); in TestCurrencyIsoPluralFormat()
825 CurrencyAmount val = numFmt.parseCurrency(oneCurrencyFormatResult, null); in TestCurrencyIsoPluralFormat()
853 NumberFormat numFmt = NumberFormat.getInstance(locale, NumberFormat.CURRENCYSTYLE); in TestMiscCurrencyParsing() local
855 Number val = numFmt.parse(stringToBeParsed, parsePosition); in TestMiscCurrencyParsing()
866 CurrencyAmount amt = numFmt.parseCurrency(stringToBeParsed, parsePosition); in TestMiscCurrencyParsing()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTestMessageFormat.java867 final NumberFormat numFmt = NumberFormat.getInstance(locale); in TestRBNF() local
875 num = numFmt.parse(values[j]); in TestRBNF()
DNumberFormatTest.java800 NumberFormat numFmt = NumberFormat.getInstance(locale, k); in TestCurrencyIsoPluralFormat() local
801 numFmt.setCurrency(Currency.getInstance(currencyISOCode)); in TestCurrencyIsoPluralFormat()
802 String strBuf = numFmt.format(numberToBeFormat); in TestCurrencyIsoPluralFormat()
822 CurrencyAmount val = numFmt.parseCurrency(oneCurrencyFormatResult, null); in TestCurrencyIsoPluralFormat()
850 NumberFormat numFmt = NumberFormat.getInstance(locale, NumberFormat.CURRENCYSTYLE); in TestMiscCurrencyParsing() local
852 Number val = numFmt.parse(stringToBeParsed, parsePosition); in TestMiscCurrencyParsing()
863 CurrencyAmount amt = numFmt.parseCurrency(stringToBeParsed, parsePosition); in TestMiscCurrencyParsing()