Home
last modified time | relevance | path

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

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DScientificNumberFormatterTest.java50 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentMarkup() local
51 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentMarkup()
53 decfmt, "<sup>", "</sup>"); in TestPlusSignInExponentMarkup()
63 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentSuperscript() local
64 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentSuperscript()
66 decfmt); in TestPlusSignInExponentSuperscript()
74 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalMarkup() local
76 decfmt, "<sup>", "</sup>"); in TestFixedDecimalMarkup()
84 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalSuperscript() local
85 ScientificNumberFormatter fmt = ScientificNumberFormatter.getSuperscriptInstance(decfmt); in TestFixedDecimalSuperscript()
DIntlTestDecimalFormatAPI.java275 DecimalFormat decfmt = new DecimalFormat(); in testJB6134() local
279 decfmt.format(123, buf, fposByInt); in testJB6134()
283 decfmt.format(123, buf, fposByField); in testJB6134()
294 DecimalFormat decfmt = new DecimalFormat(); in testJB4971() local
298 resultICU = decfmt.getMathContextICU(); in testJB4971()
309 decfmt.setMathContextICU(comp2); in testJB4971()
310 resultICU = decfmt.getMathContextICU(); in testJB4971()
323 decfmt.setMathContext(comp3); in testJB4971()
324 result = decfmt.getMathContext(); in testJB4971()
DNumberFormatTest.java2622 private final DecimalFormat decfmt; field in NumberFormatTest.ParseThreadJB5358
2627 … public ParseThreadJB5358(DecimalFormat decfmt, String numstr, double expect, ArrayList errors) { in ParseThreadJB5358() argument
2628 this.decfmt = decfmt; in ParseThreadJB5358()
2638 Number n = decfmt.parse(numstr); in run()
3734 DecimalFormat decfmt = new DecimalFormat("\u00A4#,##0.00;\u00A4#,##0.00", decfmtsym);
3735 String currFmtResult = decfmt.format(-100.0);
/external/icu/icu4c/source/test/intltest/
Dscientificnumberformattertest.cpp118 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentMarkup() local
123 decfmt->applyPattern("0.00E+0", status); in TestPlusSignInExponentMarkup()
130 new DecimalFormat(*decfmt), "<sup>", "</sup>", status)); in TestPlusSignInExponentMarkup()
145 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentSuperscript() local
150 decfmt->applyPattern("0.00E+0", status); in TestPlusSignInExponentSuperscript()
157 new DecimalFormat(*decfmt), status)); in TestPlusSignInExponentSuperscript()
172 … LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalMarkup() local
178 new DecimalFormat(*decfmt), "<sup>", "</sup>", status)); in TestFixedDecimalMarkup()
194 … LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalSuperscript() local
200 new DecimalFormat(*decfmt), status)); in TestFixedDecimalSuperscript()
Dnumfmtst.cpp7341 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance(Locale("en_US"),… in Test10419RoundingWith0FractionDigits() local
7347 decfmt->setRoundingMode(items[i].mode); in Test10419RoundingWith0FractionDigits()
7348 decfmt->setMaximumFractionDigits(0); in Test10419RoundingWith0FractionDigits()
7350 if (items[i].expected != decfmt->format(items[i].value, actual)) { in Test10419RoundingWith0FractionDigits()
/external/icu/icu4c/source/i18n/
Dmeasfmt.cpp381 DecimalFormat *decfmt = dynamic_cast<DecimalFormat *>(inf); in createObject() local
382 if (decfmt != NULL) { in createObject()
383 decfmt->setRoundingMode(DecimalFormat::kRoundDown); in createObject()
Dsmpdtfmt.cpp245 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(&nf); in fixNumberFormatForDates() local
246 if (decfmt != NULL) { in fixNumberFormatForDates()
247 decfmt->setDecimalSeparatorAlwaysShown(FALSE); in fixNumberFormatForDates()
3653 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(fNumberFormat); in checkIntSuffix() local
3654 if (decfmt != NULL) { in checkIntSuffix()
3656 suf = decfmt->getNegativeSuffix(suf); in checkIntSuffix()
3659 suf = decfmt->getPositiveSuffix(suf); in checkIntSuffix()
Dcompactdecimalformat.cpp180 …LocalPointer<DecimalFormat> decfmt((DecimalFormat*) NumberFormat::makeInstance(inLocale, UNUM_DECI… in createInstance() local
193 … new CompactDecimalFormat(*decfmt, data->unitsByVariant, data->divisors, pluralRules.getAlias()); in createInstance()
Dmsgfmt.cpp1703 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(fmt); in createAppropriateFormat() local
1704 if (decfmt != NULL) { in createAppropriateFormat()
1705 decfmt->applyPattern(style,parseError,ec); in createAppropriateFormat()