Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Dquantityformatter.cpp153 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in selectPlural() local
154 if (decFmt != NULL) { in selectPlural()
155 decFmt->initVisibleDigitsWithExponent(number, digits, status); in selectPlural()
160 decFmt->format(digits, formattedNumber, pos, status); in selectPlural()
Dplurfmt.cpp273 DecimalFormat *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local
274 if(decFmt != NULL) { in format()
275 decFmt->initVisibleDigitsWithExponent( in format()
280 decFmt->format(dec, numberString, ignorePos, status); in format()
286 DecimalFormat *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local
287 if(decFmt != NULL) { in format()
288 decFmt->initVisibleDigitsWithExponent( in format()
293 decFmt->format(dec, numberString, ignorePos, status); in format()
Dmsgfmt.cpp1959 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(context.formatter); in select() local
1960 if(decFmt != NULL) { in select()
1962 decFmt->initVisibleDigitsWithExponent(context.number, digits, ec); in select()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfLenientScannerTest.java205 NumberFormat decFmt = NumberFormat.getInstance(Locale.US); in doLenientParseTest() local
211 String actualNumber = decFmt.format(formatter.parse(words)); in doLenientParseTest()
DRbnfTest.java1154 NumberFormat decFmt = new DecimalFormat("#,###.################"); in doTest() local
1162 Number num = decFmt.parse(number); in doTest()
1171 String actualNumber = decFmt.format(formatter in doTest()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DRbnfLenientScannerTest.java204 NumberFormat decFmt = NumberFormat.getInstance(Locale.US); in doLenientParseTest() local
210 String actualNumber = decFmt.format(formatter.parse(words)); in doLenientParseTest()
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp2229 DecimalFormat decFmt("#,###.################", dfs, status); in doTest() local
2240 decFmt.parse(escapedNumString, expectedNumber, status); in doTest()
2250 decFmt.format(expectedNumber, msg, status); in doTest()
2257 decFmt.format(expectedNumber, msg, status); in doTest()
2283 decFmt.format(expectedNumber, msg, status); in doTest()
2285 decFmt.format(parsedNumber, msg, status); in doTest()
2302 NumberFormat* decFmt = NumberFormat::createInstance(Locale::getUS(), status); in doLenientParseTest() local
2325 decFmt->parse(asciiUSNumberString, expectedNumber, status); in doLenientParseTest()
2334 decFmt->format(actualNumber, actualNumberString, status); in doLenientParseTest()
2335 decFmt->format(expectedNumber, expectedNumberString, status); in doLenientParseTest()
[all …]
Dnumfmtst.cpp6702 DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(status); in TestFieldPositionIterator() local
6712 decFmt->format(num, str1, &iter1, status); in TestFieldPositionIterator()
6714 decFmt->format(num, str2, &iter2, status); in TestFieldPositionIterator()
6723 decFmt->format(num, str2, NULL, status); in TestFieldPositionIterator()
6726 delete decFmt; in TestFieldPositionIterator()
6732 …DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_CURRENCY, stat… in TestFormatAttributes() local
6748 decFmt->format(val, result, &posIter, status); in TestFormatAttributes()
6754 decFmt->format(val, result, fp); in TestFormatAttributes()
6760 decFmt->format(val, result, fp); in TestFormatAttributes()
6763 delete decFmt; in TestFormatAttributes()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java1153 NumberFormat decFmt = new DecimalFormat("#,###.################"); in doTest() local
1161 Number num = decFmt.parse(number); in doTest()
1170 String actualNumber = decFmt.format(formatter in doTest()