/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | ScientificNumberFormatterTest.java | 50 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()
|
D | IntlTestDecimalFormatAPI.java | 275 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()
|
D | NumberFormatTest.java | 2622 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/ |
D | scientificnumberformattertest.cpp | 118 …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()
|
D | numfmtst.cpp | 7341 …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/ |
D | measfmt.cpp | 381 DecimalFormat *decfmt = dynamic_cast<DecimalFormat *>(inf); in createObject() local 382 if (decfmt != NULL) { in createObject() 383 decfmt->setRoundingMode(DecimalFormat::kRoundDown); in createObject()
|
D | smpdtfmt.cpp | 245 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()
|
D | compactdecimalformat.cpp | 180 …LocalPointer<DecimalFormat> decfmt((DecimalFormat*) NumberFormat::makeInstance(inLocale, UNUM_DECI… in createInstance() local 193 … new CompactDecimalFormat(*decfmt, data->unitsByVariant, data->divisors, pluralRules.getAlias()); in createInstance()
|
D | msgfmt.cpp | 1703 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(fmt); in createAppropriateFormat() local 1704 if (decfmt != NULL) { in createAppropriateFormat() 1705 decfmt->applyPattern(style,parseError,ec); in createAppropriateFormat()
|