/external/icu/icu4c/source/i18n/ |
D | quantityformatter.cpp | 151 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in selectPlural() local 152 if (decFmt != NULL) { in selectPlural() 153 decFmt->initVisibleDigitsWithExponent(number, digits, status); in selectPlural() 158 decFmt->format(digits, formattedNumber, pos, status); in selectPlural()
|
D | plurfmt.cpp | 271 DecimalFormat *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local 272 if(decFmt != NULL) { in format() 273 decFmt->initVisibleDigitsWithExponent( in format() 278 decFmt->format(dec, numberString, ignorePos, status); in format() 284 DecimalFormat *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local 285 if(decFmt != NULL) { in format() 286 decFmt->initVisibleDigitsWithExponent( in format() 291 decFmt->format(dec, numberString, ignorePos, status); in format()
|
D | msgfmt.cpp | 1957 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(context.formatter); in select() local 1958 if(decFmt != NULL) { in select() 1960 decFmt->initVisibleDigitsWithExponent(context.number, digits, ec); in select()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/ |
D | RbnfLenientScannerTest.java | 213 NumberFormat decFmt = NumberFormat.getInstance(Locale.US); in doLenientParseTest() local 219 String actualNumber = decFmt.format(formatter.parse(words)); in doLenientParseTest()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | RbnfLenientScannerTest.java | 217 NumberFormat decFmt = NumberFormat.getInstance(Locale.US); in doLenientParseTest() local 223 String actualNumber = decFmt.format(formatter.parse(words)); in doLenientParseTest()
|
D | RbnfTest.java | 1146 NumberFormat decFmt = new DecimalFormat("#,###.################"); in doTest() local 1154 Number num = decFmt.parse(number); in doTest() 1163 String actualNumber = decFmt.format(formatter in doTest()
|
/external/icu/icu4c/source/test/intltest/ |
D | itrbnf.cpp | 2228 DecimalFormat decFmt("#,###.################", dfs, status); in doTest() local 2239 decFmt.parse(escapedNumString, expectedNumber, status); in doTest() 2249 decFmt.format(expectedNumber, msg, status); in doTest() 2256 decFmt.format(expectedNumber, msg, status); in doTest() 2282 decFmt.format(expectedNumber, msg, status); in doTest() 2284 decFmt.format(parsedNumber, msg, status); in doTest() 2301 NumberFormat* decFmt = NumberFormat::createInstance(Locale::getUS(), status); in doLenientParseTest() local 2324 decFmt->parse(asciiUSNumberString, expectedNumber, status); in doLenientParseTest() 2333 decFmt->format(actualNumber, actualNumberString, status); in doLenientParseTest() 2334 decFmt->format(expectedNumber, expectedNumberString, status); in doLenientParseTest() [all …]
|
D | numfmtst.cpp | 6700 DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(status); in TestFieldPositionIterator() local 6710 decFmt->format(num, str1, &iter1, status); in TestFieldPositionIterator() 6712 decFmt->format(num, str2, &iter2, status); in TestFieldPositionIterator() 6721 decFmt->format(num, str2, NULL, status); in TestFieldPositionIterator() 6724 delete decFmt; in TestFieldPositionIterator() 6730 …DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_CURRENCY, stat… in TestFormatAttributes() local 6746 decFmt->format(val, result, &posIter, status); in TestFormatAttributes() 6752 decFmt->format(val, result, fp); in TestFormatAttributes() 6758 decFmt->format(val, result, fp); in TestFormatAttributes() 6761 delete decFmt; in TestFormatAttributes() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | RbnfTest.java | 1142 NumberFormat decFmt = new DecimalFormat("#,###.################"); in doTest() local 1150 Number num = decFmt.parse(number); in doTest() 1159 String actualNumber = decFmt.format(formatter in doTest()
|