Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Dquantityformatter.cpp152 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in selectPlural() local
153 if (decFmt != NULL) { in selectPlural()
155 decFmt->formatToDecimalQuantity(number, dq, status); in selectPlural()
160 decFmt->format(number, formattedNumber, pos, status); in selectPlural()
Dupluralrules.cpp40 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in select() local
41 if (decFmt != NULL) { in select()
43 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 decFmt->toNumberFormatter().formatImpl(&data, status); // mutates &data in format()
Dmsgfmt.cpp1972 auto* decFmt = dynamic_cast<const DecimalFormat *>(context.formatter); in select() local
1973 if(decFmt != NULL) { in select()
1975 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.java1159 NumberFormat decFmt = new DecimalFormat("#,###.################"); in doTest() local
1167 Number num = decFmt.parse(number); in doTest()
1176 String actualNumber = decFmt.format(formatter in doTest()
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp2331 DecimalFormat decFmt("#,###.################", dfs, status); in doTest() local
2342 decFmt.parse(escapedNumString, expectedNumber, status); in doTest()
2352 decFmt.format(expectedNumber, msg, status); in doTest()
2359 decFmt.format(expectedNumber, msg, status); in doTest()
2385 decFmt.format(expectedNumber, msg, status); in doTest()
2387 decFmt.format(parsedNumber, msg, status); in doTest()
2404 NumberFormat* decFmt = NumberFormat::createInstance(Locale::getUS(), status); in doLenientParseTest() local
2427 decFmt->parse(asciiUSNumberString, expectedNumber, status); in doLenientParseTest()
2436 decFmt->format(actualNumber, actualNumberString, status); in doLenientParseTest()
2437 decFmt->format(expectedNumber, expectedNumberString, status); in doLenientParseTest()
[all …]
Dnumfmtst.cpp6518 DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(status); in TestFieldPositionIterator() local
6528 decFmt->format(num, str1, &iter1, status); in TestFieldPositionIterator()
6530 decFmt->format(num, str2, &iter2, status); in TestFieldPositionIterator()
6539 decFmt->format(num, str2, NULL, status); in TestFieldPositionIterator()
6542 delete decFmt; in TestFieldPositionIterator()
6548 …DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_CURRENCY, stat… in TestFormatAttributes() local
6564 decFmt->format(val, result, &posIter, status); in TestFormatAttributes()
6570 decFmt->format(val, result, fp); in TestFormatAttributes()
6576 decFmt->format(val, result, fp); in TestFormatAttributes()
6579 delete decFmt; in TestFormatAttributes()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java1156 NumberFormat decFmt = new DecimalFormat("#,###.################"); in doTest() local
1164 Number num = decFmt.parse(number); in doTest()
1173 String actualNumber = decFmt.format(formatter in doTest()