Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DScientificNumberFormatterTest.java54 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentMarkup() local
55 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentMarkup()
57 decfmt, "<sup>", "</sup>"); in TestPlusSignInExponentMarkup()
68 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentSuperscript() local
69 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentSuperscript()
71 decfmt); in TestPlusSignInExponentSuperscript()
80 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalMarkup() local
82 decfmt, "<sup>", "</sup>"); in TestFixedDecimalMarkup()
91 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalSuperscript() local
92 ScientificNumberFormatter fmt = ScientificNumberFormatter.getSuperscriptInstance(decfmt); in TestFixedDecimalSuperscript()
DIntlTestDecimalFormatAPI.java279 DecimalFormat decfmt = new DecimalFormat(); in testJB6134() local
283 decfmt.format(123, buf, fposByInt); in testJB6134()
287 decfmt.format(123, buf, fposByField); in testJB6134()
299 DecimalFormat decfmt = new DecimalFormat(); in testJB4971() local
303 resultICU = decfmt.getMathContextICU(); in testJB4971()
314 decfmt.setMathContextICU(comp2); in testJB4971()
315 resultICU = decfmt.getMathContextICU(); in testJB4971()
328 decfmt.setMathContext(comp3); in testJB4971()
329 result = decfmt.getMathContext(); in testJB4971()
DNumberFormatTest.java1252 …DecimalFormat decfmt = (DecimalFormat)NumberFormat.getInstance(new ULocale("en_US"), NumberFormat.… in TestParseCurrPatternWithDecStyle() local
1253 decfmt.applyPattern(currpat); in TestParseCurrPatternWithDecStyle()
1255 Number value = decfmt.parse(parsetxt, ppos); in TestParseCurrPatternWithDecStyle()
3252 private final DecimalFormat decfmt; field in NumberFormatTest.ParseThreadJB5358
3257 … public ParseThreadJB5358(DecimalFormat decfmt, String numstr, double expect, ArrayList errors) { in ParseThreadJB5358() argument
3258 this.decfmt = decfmt; in ParseThreadJB5358()
3268 Number n = decfmt.parse(numstr); in run()
4456 DecimalFormat decfmt = new DecimalFormat("\u00A4#,##0.00;\u00A4#,##0.00", decfmtsym);
4457 String currFmtResult = decfmt.format(-100.0);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DScientificNumberFormatterTest.java53 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentMarkup() local
54 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentMarkup()
56 decfmt, "<sup>", "</sup>"); in TestPlusSignInExponentMarkup()
67 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentSuperscript() local
68 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentSuperscript()
70 decfmt); in TestPlusSignInExponentSuperscript()
79 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalMarkup() local
81 decfmt, "<sup>", "</sup>"); in TestFixedDecimalMarkup()
90 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalSuperscript() local
91 ScientificNumberFormatter fmt = ScientificNumberFormatter.getSuperscriptInstance(decfmt); in TestFixedDecimalSuperscript()
DIntlTestDecimalFormatAPI.java278 DecimalFormat decfmt = new DecimalFormat(); in testJB6134() local
282 decfmt.format(123, buf, fposByInt); in testJB6134()
286 decfmt.format(123, buf, fposByField); in testJB6134()
298 DecimalFormat decfmt = new DecimalFormat(); in testJB4971() local
302 resultICU = decfmt.getMathContextICU(); in testJB4971()
313 decfmt.setMathContextICU(comp2); in testJB4971()
314 resultICU = decfmt.getMathContextICU(); in testJB4971()
327 decfmt.setMathContext(comp3); in testJB4971()
328 result = decfmt.getMathContext(); in testJB4971()
DNumberFormatTest.java1251 …DecimalFormat decfmt = (DecimalFormat)NumberFormat.getInstance(new ULocale("en_US"), NumberFormat.… in TestParseCurrPatternWithDecStyle() local
1252 decfmt.applyPattern(currpat); in TestParseCurrPatternWithDecStyle()
1254 Number value = decfmt.parse(parsetxt, ppos); in TestParseCurrPatternWithDecStyle()
3251 private final DecimalFormat decfmt; field in NumberFormatTest.ParseThreadJB5358
3256 … public ParseThreadJB5358(DecimalFormat decfmt, String numstr, double expect, ArrayList errors) { in ParseThreadJB5358() argument
3257 this.decfmt = decfmt; in ParseThreadJB5358()
3267 Number n = decfmt.parse(numstr); in run()
4455 DecimalFormat decfmt = new DecimalFormat("\u00A4#,##0.00;\u00A4#,##0.00", decfmtsym);
4456 String currFmtResult = decfmt.format(-100.0);
/external/icu/icu4c/source/test/intltest/
Dscientificnumberformattertest.cpp120 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentMarkup() local
125 decfmt->applyPattern("0.00E+0", status); in TestPlusSignInExponentMarkup()
132 new DecimalFormat(*decfmt), "<sup>", "</sup>", status)); in TestPlusSignInExponentMarkup()
147 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentSuperscript() local
152 decfmt->applyPattern("0.00E+0", status); in TestPlusSignInExponentSuperscript()
159 new DecimalFormat(*decfmt), status)); in TestPlusSignInExponentSuperscript()
174 … LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalMarkup() local
180 new DecimalFormat(*decfmt), "<sup>", "</sup>", status)); in TestFixedDecimalMarkup()
196 … LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalSuperscript() local
202 new DecimalFormat(*decfmt), status)); in TestFixedDecimalSuperscript()
Dnumfmtst.cpp7807 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance(Locale("en_US"),… in Test10419RoundingWith0FractionDigits() local
7813 decfmt->setRoundingMode(items[i].mode); in Test10419RoundingWith0FractionDigits()
7814 decfmt->setMaximumFractionDigits(0); in Test10419RoundingWith0FractionDigits()
7816 if (items[i].expected != decfmt->format(items[i].value, actual)) { in Test10419RoundingWith0FractionDigits()
/external/icu/icu4c/source/i18n/
Dmeasfmt.cpp533 DecimalFormat *decfmt = dynamic_cast<DecimalFormat *>(inf); in createObject() local
534 if (decfmt != NULL) { in createObject()
535 decfmt->setRoundingMode(DecimalFormat::kRoundDown); in createObject()
Dcompactdecimalformat.cpp188 …LocalPointer<DecimalFormat> decfmt((DecimalFormat*) NumberFormat::makeInstance(inLocale, UNUM_DECI… in createInstance() local
201 … new CompactDecimalFormat(*decfmt, data->unitsByVariant, data->divisors, pluralRules.getAlias()); in createInstance()
Dsmpdtfmt.cpp253 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(&nf); in fixNumberFormatForDates() local
254 if (decfmt != NULL) { in fixNumberFormatForDates()
255 decfmt->setDecimalSeparatorAlwaysShown(FALSE); in fixNumberFormatForDates()
3986 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(fNumberFormat); in checkIntSuffix() local
3987 if (decfmt != NULL) { in checkIntSuffix()
3989 suf = decfmt->getNegativeSuffix(suf); in checkIntSuffix()
3992 suf = decfmt->getPositiveSuffix(suf); in checkIntSuffix()
Dmsgfmt.cpp1706 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(fmt); in createAppropriateFormat() local
1707 if (decfmt != NULL) { in createAppropriateFormat()
1708 decfmt->applyPattern(style,parseError,ec); in createAppropriateFormat()