Home
last modified time | relevance | path

Searched refs:decFmt (Results 1 – 10 of 10) sorted by relevance

/external/icu/icu4c/source/i18n/
Dquantityformatter.cpp154 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in selectPlural() local
155 if (decFmt != NULL) { in selectPlural()
157 decFmt->formatToDecimalQuantity(number, dq, status); in selectPlural()
162 decFmt->format(number, formattedNumber, pos, status); in selectPlural()
Dupluralrules.cpp43 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in select() local
44 if (decFmt != NULL) { in select()
46 decFmt->formatToDecimalQuantity(obj, dq, status); in select()
Dplurfmt.cpp278 auto *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local
279 if(decFmt != nullptr) { in format()
280 const number::LocalizedNumberFormatter* lnf = decFmt->toNumberFormatter(status); in format()
Dmsgfmt.cpp1984 auto* decFmt = dynamic_cast<const DecimalFormat *>(context.formatter); in select() local
1985 if(decFmt != NULL) { in select()
1987 decFmt->formatToDecimalQuantity(context.number, dq, ec); in select()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DRbnfLenientScannerTest.java207 NumberFormat decFmt = NumberFormat.getInstance(Locale.US); in doLenientParseTest() local
213 String actualNumber = decFmt.format(formatter.parse(words)); in doLenientParseTest()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfLenientScannerTest.java210 NumberFormat decFmt = NumberFormat.getInstance(Locale.US); in doLenientParseTest() local
216 String actualNumber = decFmt.format(formatter.parse(words)); in doLenientParseTest()
DRbnfTest.java1215 NumberFormat decFmt = createDecimalFormatter(); in doTest() local
1223 Number num = decFmt.parse(number); in doTest()
1232 String actualNumber = decFmt.format(formatter in doTest()
1250 NumberFormat decFmt = createDecimalFormatter(); in doParsingTest() local
1258 Number expectedNumber = decFmt.parse(testData[i][1]); in doParsingTest()
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp2332 DecimalFormat decFmt("#,###.################", dfs, status); in doTest() local
2343 decFmt.parse(escapedNumString, expectedNumber, status); in doTest()
2353 decFmt.format(expectedNumber, msg, status); in doTest()
2360 decFmt.format(expectedNumber, msg, status); in doTest()
2386 decFmt.format(expectedNumber, msg, status); in doTest()
2388 decFmt.format(parsedNumber, msg, status); in doTest()
2405 NumberFormat* decFmt = NumberFormat::createInstance(Locale::getUS(), status); in doLenientParseTest() local
2428 decFmt->parse(asciiUSNumberString, expectedNumber, status); in doLenientParseTest()
2437 decFmt->format(actualNumber, actualNumberString, status); in doLenientParseTest()
2438 decFmt->format(expectedNumber, expectedNumberString, status); in doLenientParseTest()
[all …]
Dnumfmtst.cpp6703 DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(status); in TestFieldPositionIterator() local
6713 decFmt->format(num, str1, &iter1, status); in TestFieldPositionIterator()
6715 decFmt->format(num, str2, &iter2, status); in TestFieldPositionIterator()
6724 decFmt->format(num, str2, NULL, status); in TestFieldPositionIterator()
6727 delete decFmt; in TestFieldPositionIterator()
6733 …DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_CURRENCY, stat… in TestFormatAttributes() local
6749 decFmt->format(val, result, &posIter, status); in TestFormatAttributes()
6755 decFmt->format(val, result, fp); in TestFormatAttributes()
6761 decFmt->format(val, result, fp); in TestFormatAttributes()
6764 delete decFmt; in TestFormatAttributes()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java1212 NumberFormat decFmt = createDecimalFormatter(); in doTest() local
1220 Number num = decFmt.parse(number); in doTest()
1229 String actualNumber = decFmt.format(formatter in doTest()
1247 NumberFormat decFmt = createDecimalFormatter(); in doParsingTest() local
1255 Number expectedNumber = decFmt.parse(testData[i][1]); in doParsingTest()