Home
last modified time | relevance | path

Searched refs:decfmt (Results 1 - 17 of 17) sorted by relevance

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DScientificNumberFormatterTest.java59 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentMarkup()
60 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentMarkup()
62 decfmt, "<sup>", "</sup>"); in TestPlusSignInExponentMarkup()
73 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentSuperscript()
74 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentSuperscript()
76 decfmt); in TestPlusSignInExponentSuperscript()
85 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalMarkup()
87 decfmt, "<sup>", "</sup>"); in TestFixedDecimalMarkup()
96 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalSuperscript()
97 ScientificNumberFormatter fmt = ScientificNumberFormatter.getSuperscriptInstance(decfmt); in TestFixedDecimalSuperscript()
[all...]
H A DIntlTestDecimalFormatAPI.java276 DecimalFormat decfmt = new DecimalFormat(); in testJB6134()
280 decfmt.format(123, buf, fposByInt); in testJB6134()
284 decfmt.format(123, buf, fposByField); in testJB6134()
296 DecimalFormat decfmt = new DecimalFormat(); in testJB4971()
300 resultICU = decfmt.getMathContextICU(); in testJB4971()
311 decfmt.setMathContextICU(comp2); in testJB4971()
312 resultICU = decfmt.getMathContextICU(); in testJB4971()
325 decfmt.setMathContext(comp3); in testJB4971()
326 result = decfmt.getMathContext(); in testJB4971()
H A DNumberFormatTest.java991 DecimalFormat decfmt = (DecimalFormat)NumberFormat.getInstance(new ULocale("en_US"), NumberFormat.NUMBERSTYLE); in TestParseCurrPatternWithDecStyle()
992 decfmt.applyPattern(currpat); in TestParseCurrPatternWithDecStyle()
994 Number value = decfmt.parse(parsetxt, ppos); in TestParseCurrPatternWithDecStyle()
3212 private final DecimalFormat decfmt; field in NumberFormatTest.ParseThreadJB5358
3217 public ParseThreadJB5358(DecimalFormat decfmt, String numstr, double expect, ArrayList errors) { in ParseThreadJB5358() argument
3218 this.decfmt = decfmt; in ParseThreadJB5358()
3228 Number n = decfmt.parse(numstr); in run()
4666 DecimalFormat decfmt = new DecimalFormat("\u00A4#,##0.00;-\u00A4#,##0.00", decfmtsym); in TestCurrFmtNegSameAsPositive()
4667 String currFmtResult = decfmt in TestCurrFmtNegSameAsPositive()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DScientificNumberFormatterTest.java56 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentMarkup()
57 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentMarkup()
59 decfmt, "<sup>", "</sup>"); in TestPlusSignInExponentMarkup()
70 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentSuperscript()
71 decfmt.applyPattern("0.00E+0"); in TestPlusSignInExponentSuperscript()
73 decfmt); in TestPlusSignInExponentSuperscript()
82 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalMarkup()
84 decfmt, "<sup>", "</sup>"); in TestFixedDecimalMarkup()
93 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalSuperscript()
94 ScientificNumberFormatter fmt = ScientificNumberFormatter.getSuperscriptInstance(decfmt); in TestFixedDecimalSuperscript()
[all...]
H A DIntlTestDecimalFormatAPI.java273 DecimalFormat decfmt = new DecimalFormat(); in testJB6134()
277 decfmt.format(123, buf, fposByInt); in testJB6134()
281 decfmt.format(123, buf, fposByField); in testJB6134()
293 DecimalFormat decfmt = new DecimalFormat(); in testJB4971()
297 resultICU = decfmt.getMathContextICU(); in testJB4971()
308 decfmt.setMathContextICU(comp2); in testJB4971()
309 resultICU = decfmt.getMathContextICU(); in testJB4971()
322 decfmt.setMathContext(comp3); in testJB4971()
323 result = decfmt.getMathContext(); in testJB4971()
H A DNumberFormatTest.java988 DecimalFormat decfmt = (DecimalFormat)NumberFormat.getInstance(new ULocale("en_US"), NumberFormat.NUMBERSTYLE); in TestParseCurrPatternWithDecStyle()
989 decfmt.applyPattern(currpat); in TestParseCurrPatternWithDecStyle()
991 Number value = decfmt.parse(parsetxt, ppos); in TestParseCurrPatternWithDecStyle()
3209 private final DecimalFormat decfmt; field in NumberFormatTest.ParseThreadJB5358
3214 public ParseThreadJB5358(DecimalFormat decfmt, String numstr, double expect, ArrayList errors) { in ParseThreadJB5358() argument
3215 this.decfmt = decfmt; in ParseThreadJB5358()
3225 Number n = decfmt.parse(numstr); in run()
4666 DecimalFormat decfmt = new DecimalFormat("\u00A4#,##0.00;-\u00A4#,##0.00", decfmtsym); in TestCurrFmtNegSameAsPositive()
4667 String currFmtResult = decfmt in TestCurrFmtNegSameAsPositive()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dscientificnumberformattertest.cpp120 LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", status)); in TestPlusSignInExponentMarkup()
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", status)); in TestPlusSignInExponentSuperscript()
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()
180 new DecimalFormat(*decfmt), "<sup>", "</sup>", status)); in TestFixedDecimalMarkup()
196 LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalSuperscript()
202 new DecimalFormat(*decfmt), statu in TestFixedDecimalSuperscript()
[all...]
H A Dnumfmtst.cpp7844 LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance(Locale("en_US"), status)); in Test10419RoundingWith0FractionDigits()
7850 decfmt->setRoundingMode(items[i].mode); in Test10419RoundingWith0FractionDigits()
7851 decfmt->setMaximumFractionDigits(0); in Test10419RoundingWith0FractionDigits()
7853 if (items[i].expected != decfmt->format(items[i].value, actual)) { in Test10419RoundingWith0FractionDigits()
/third_party/icu/icu4c/source/i18n/
H A Dmeasfmt.cpp278 DecimalFormat *decfmt = dynamic_cast<DecimalFormat *>(inf); in createObject() local
279 if (decfmt != NULL) { in createObject()
280 decfmt->setRoundingMode(DecimalFormat::kRoundDown); in createObject()
H A Dsmpdtfmt.cpp267 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(&nf); in fixNumberFormatForDates() local
268 if (decfmt != NULL) { in fixNumberFormatForDates()
269 decfmt->setDecimalSeparatorAlwaysShown(false); in fixNumberFormatForDates()
4308 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(fNumberFormat); in checkIntSuffix() local
4309 if (decfmt != NULL) { in checkIntSuffix()
4311 suf = decfmt->getNegativeSuffix(suf); in checkIntSuffix()
4314 suf = decfmt->getPositiveSuffix(suf); in checkIntSuffix()
H A Dmsgfmt.cpp1721 auto* decfmt = dynamic_cast<DecimalFormat*>(fmt); in createAppropriateFormat() local
1722 if (decfmt != nullptr) { in createAppropriateFormat()
1723 decfmt->applyPattern(style, parseError, ec); in createAppropriateFormat()
/third_party/node/deps/icu-small/source/i18n/
H A Dmeasfmt.cpp278 DecimalFormat *decfmt = dynamic_cast<DecimalFormat *>(inf); in createObject() local
279 if (decfmt != nullptr) { in createObject()
280 decfmt->setRoundingMode(DecimalFormat::kRoundDown); in createObject()
H A Dsmpdtfmt.cpp268 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(&nf); in fixNumberFormatForDates() local
269 if (decfmt != nullptr) { in fixNumberFormatForDates()
270 decfmt->setDecimalSeparatorAlwaysShown(false); in fixNumberFormatForDates()
4259 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(fNumberFormat); in checkIntSuffix() local
4260 if (decfmt != nullptr) { in checkIntSuffix()
4262 suf = decfmt->getNegativeSuffix(suf); in checkIntSuffix()
4265 suf = decfmt->getPositiveSuffix(suf); in checkIntSuffix()
H A Dmsgfmt.cpp1722 auto* decfmt = dynamic_cast<DecimalFormat*>(fmt); in createAppropriateFormat() local
1723 if (decfmt != nullptr) { in createAppropriateFormat()
1724 decfmt->applyPattern(style, parseError, ec); in createAppropriateFormat()
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dmeasfmt.cpp278 DecimalFormat *decfmt = dynamic_cast<DecimalFormat *>(inf); in createObject() local
279 if (decfmt != NULL) { in createObject()
280 decfmt->setRoundingMode(DecimalFormat::kRoundDown); in createObject()
H A Dsmpdtfmt.cpp266 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(&nf); in fixNumberFormatForDates() local
267 if (decfmt != NULL) { in fixNumberFormatForDates()
268 decfmt->setDecimalSeparatorAlwaysShown(FALSE); in fixNumberFormatForDates()
4186 DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(fNumberFormat); in checkIntSuffix() local
4187 if (decfmt != NULL) { in checkIntSuffix()
4189 suf = decfmt->getNegativeSuffix(suf); in checkIntSuffix()
4192 suf = decfmt->getPositiveSuffix(suf); in checkIntSuffix()
H A Dmsgfmt.cpp1719 auto* decfmt = dynamic_cast<DecimalFormat*>(fmt); in createAppropriateFormat() local
1720 if (decfmt != nullptr) { in createAppropriateFormat()
1721 decfmt->applyPattern(style, parseError, ec); in createAppropriateFormat()

Completed in 62 milliseconds