Home
last modified time | relevance | path

Searched refs:DecimalFormat (Results 1 – 25 of 86) sorted by relevance

1234

/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DDecimalFormatTest.java25 import java.text.DecimalFormat;
43 …AttributedCharacterIterator iterator = new DecimalFormat().formatToCharacterIterator(new Integer(1… in testAttributedCharacterIterator()
55 DecimalFormat form = (DecimalFormat) DecimalFormat.getInstance(Locale.US); in test_isParseBigDecimalLjava_lang_Boolean_isParseIntegerOnlyLjava_lang_Boolean()
69 DecimalFormat form = (DecimalFormat) DecimalFormat.getInstance(Locale.US); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
76 form = (DecimalFormat) DecimalFormat.getInstance(Locale.US); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
91 form = (DecimalFormat) DecimalFormat.getInstance(Locale.US); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
110 form = (DecimalFormat) DecimalFormat.getInstance(Locale.US); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
119 form = (DecimalFormat) DecimalFormat.getInstance(Locale.US); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
127 form = (DecimalFormat) DecimalFormat.getInstance(Locale.US); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
146 form = (DecimalFormat) DecimalFormat.getInstance(Locale.US); in test_parseLjava_lang_String_Ljava_text_ParsePosition()
[all …]
DNumberFormatTest.java21 import java.text.DecimalFormat;
38 DecimalFormat format = (DecimalFormat) NumberFormat in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
125 DecimalFormat format = (DecimalFormat) NumberFormat in test_getIntegerInstance()
153 DecimalFormat format = (DecimalFormat) NumberFormat in test_getIntegerInstanceLjava_util_Locale()
174 format = (DecimalFormat) NumberFormat.getIntegerInstance(arLocale); in test_getIntegerInstanceLjava_util_Locale()
DSupport_DecimalFormat.java20 import java.text.DecimalFormat;
43 DecimalFormat format = (DecimalFormat) NumberFormat in t_format_with_FieldPosition()
74 format = new DecimalFormat("000000000.0#E0"); in t_format_with_FieldPosition()
103 format = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale( in t_format_with_FieldPosition()
152 DecimalFormat format = new DecimalFormat("###0.##\u2030"); in t_formatToCharacterIterator()
156 format = new DecimalFormat("00.0#E0"); in t_formatToCharacterIterator()
160 format = new DecimalFormat("0000.0#E0"); in t_formatToCharacterIterator()
/external/chromium_org/third_party/icu/source/test/intltest/
Dnumfmtst.cpp218 DecimalFormat fmt(pat[i], sym, status); in TestPatterns()
353 DecimalFormat fmt(pat[p], sym, status); in TestExponential()
444 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status); in TestScientific2()
460 DecimalFormat fmt("##0.00E0",status); in TestScientificGrouping()
495 DecimalFormat fmt("#.#E0",status); in TestInt64()
587 DecimalFormat *fmt = new DecimalFormat(*pat, *sym, status); in TestQuotes()
600 fmt = new DecimalFormat(*pat, *sym, status); in TestQuotes()
629 DecimalFormat *fmt = new DecimalFormat(pat, *sym, status); in TestCurrencySign()
646 fmt = new DecimalFormat(pat, *sym, status); in TestCurrencySign()
833 DecimalFormat* format = new DecimalFormat("00", status); in TestParse()
[all …]
Dnumrgts.cpp282 DecimalFormat *df = new DecimalFormat(status); in Test4088161()
318 DecimalFormat *df = new DecimalFormat("#,##0.0", *symbols, status); in Test4087245()
342 DecimalFormat *df = new DecimalFormat(status); in Test4087535()
367 DecimalFormat *df = new DecimalFormat(status); in Test4088503()
428 DecimalFormat *format = new DecimalFormat("00", status); in Test4059870()
508 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); in Test4086575()
578 DecimalFormat *df = new DecimalFormat(status); in Test4068693()
634 DecimalFormat *df = new DecimalFormat(status); in Test4087251()
700 DecimalFormat *df = new DecimalFormat(status); in Test4090504()
729 DecimalFormat *df = new DecimalFormat(status); in Test4095713()
[all …]
Dnumfmtst.h202 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
205 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad()
210 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
213 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad()
218 void expectPat(DecimalFormat& fmt, const UnicodeString& exp);
220 void expectPat(DecimalFormat& fmt, const char *exp) { in expectPat()
224 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
227 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad()
246 void checkRounding(DecimalFormat* df, double base, int iterations, double increment);
248 double checkRound(DecimalFormat* df, double iValue, double lastParsed);
Ddcfmapts.cpp73 DecimalFormat def(status); in testAPI()
81 DecimalFormat pat(pattern, status); in testAPI()
95 DecimalFormat cust1(pattern, symbols, status); in testAPI()
101 DecimalFormat cust2(pattern, *symbols, status); in testAPI()
106 DecimalFormat copy(pat); in testAPI()
363 NumberFormat *test = new DecimalFormat(status); in testAPI()
368 if(test->getDynamicClassID() != DecimalFormat::getStaticClassID()) { in testAPI()
404 DecimalFormat *df = new DecimalFormat(status); in TestCurrencyPluralInfo()
432 DecimalFormat pat(status); in testRounding()
442 pat.setRoundingMode((DecimalFormat::ERoundingMode)mode); in testRounding()
[all …]
Ddcfmtest.cpp312 DecimalFormat format(pattern, symbols, status); in execParseTest()
378 DecimalFormat fmtr(pattern, symbols, status); in execFormatTest()
385 fmtr.setRoundingMode(DecimalFormat::kRoundCeiling); in execFormatTest()
387 fmtr.setRoundingMode(DecimalFormat::kRoundFloor); in execFormatTest()
389 fmtr.setRoundingMode(DecimalFormat::kRoundDown); in execFormatTest()
391 fmtr.setRoundingMode(DecimalFormat::kRoundUp); in execFormatTest()
393 fmtr.setRoundingMode(DecimalFormat::kRoundHalfEven); in execFormatTest()
395 fmtr.setRoundingMode(DecimalFormat::kRoundHalfDown); in execFormatTest()
397 fmtr.setRoundingMode(DecimalFormat::kRoundHalfUp); in execFormatTest()
401 fmtr.setRoundingMode(DecimalFormat::kRoundFloor); in execFormatTest()
/external/icu4c/test/intltest/
Dnumfmtst.cpp225 DecimalFormat fmt(pat[i], sym, status); in TestPatterns()
360 DecimalFormat fmt(pat[p], sym, status); in TestExponential()
451 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status); in TestScientific2()
467 DecimalFormat fmt("##0.00E0",status); in TestScientificGrouping()
502 DecimalFormat fmt("#.#E0",status); in TestInt64()
594 DecimalFormat *fmt = new DecimalFormat(*pat, *sym, status); in TestQuotes()
607 fmt = new DecimalFormat(*pat, *sym, status); in TestQuotes()
636 DecimalFormat *fmt = new DecimalFormat(pat, *sym, status); in TestCurrencySign()
653 fmt = new DecimalFormat(pat, *sym, status); in TestCurrencySign()
840 DecimalFormat* format = new DecimalFormat("00", status); in TestParse()
[all …]
Dnumfmtst.h214 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
217 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad()
222 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
225 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad()
230 void expectPat(DecimalFormat& fmt, const UnicodeString& exp);
232 void expectPat(DecimalFormat& fmt, const char *exp) { in expectPat()
236 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
239 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad()
258 void checkRounding(DecimalFormat* df, double base, int iterations, double increment);
260 double checkRound(DecimalFormat* df, double iValue, double lastParsed);
Dnumrgts.cpp286 DecimalFormat *df = new DecimalFormat(status); in Test4088161()
322 DecimalFormat *df = new DecimalFormat("#,##0.0", *symbols, status); in Test4087245()
346 DecimalFormat *df = new DecimalFormat(status); in Test4087535()
371 DecimalFormat *df = new DecimalFormat(status); in Test4088503()
432 DecimalFormat *format = new DecimalFormat("00", status); in Test4059870()
512 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); in Test4086575()
582 DecimalFormat *df = new DecimalFormat(status); in Test4068693()
638 DecimalFormat *df = new DecimalFormat(status); in Test4087251()
704 DecimalFormat *df = new DecimalFormat(status); in Test4090504()
733 DecimalFormat *df = new DecimalFormat(status); in Test4095713()
[all …]
Ddcfmapts.cpp79 DecimalFormat def(status); in testAPI()
87 DecimalFormat pat(pattern, status); in testAPI()
101 DecimalFormat cust1(pattern, symbols, status); in testAPI()
107 DecimalFormat cust2(pattern, *symbols, status); in testAPI()
112 DecimalFormat copy(pat); in testAPI()
369 NumberFormat *test = new DecimalFormat(status); in testAPI()
374 if(test->getDynamicClassID() != DecimalFormat::getStaticClassID()) { in testAPI()
410 DecimalFormat *df = new DecimalFormat(status); in TestCurrencyPluralInfo()
438 DecimalFormat pat(status); in testRounding()
448 pat.setRoundingMode((DecimalFormat::ERoundingMode)mode); in testRounding()
[all …]
Ddcfmtest.cpp321 DecimalFormat format(pattern, symbols, status); in execParseTest()
388 DecimalFormat fmtr(pattern, symbols, status); in execFormatTest()
395 fmtr.setRoundingMode(DecimalFormat::kRoundCeiling); in execFormatTest()
397 fmtr.setRoundingMode(DecimalFormat::kRoundFloor); in execFormatTest()
399 fmtr.setRoundingMode(DecimalFormat::kRoundDown); in execFormatTest()
401 fmtr.setRoundingMode(DecimalFormat::kRoundUp); in execFormatTest()
403 fmtr.setRoundingMode(DecimalFormat::kRoundHalfEven); in execFormatTest()
405 fmtr.setRoundingMode(DecimalFormat::kRoundHalfDown); in execFormatTest()
407 fmtr.setRoundingMode(DecimalFormat::kRoundHalfUp); in execFormatTest()
411 fmtr.setRoundingMode(DecimalFormat::kRoundUnnecessary); in execFormatTest()
[all …]
/external/chromium_org/third_party/icu/source/i18n/
Ddecimfmt.cpp194 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DecimalFormat)
220 const int32_t DecimalFormat::kDoubleIntegerDigits = 309;
221 const int32_t DecimalFormat::kDoubleFractionDigits = 340;
223 const int32_t DecimalFormat::kMaxScientificIntegerDigits = 8;
229 const char DecimalFormat::fgNumberPatterns[]="NumberPatterns"; // Deprecated - not used
243 DecimalFormat::DecimalFormat(UErrorCode& status) { in DecimalFormat() function in DecimalFormat
253 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat
265 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat
275 DecimalFormat::DecimalFormat( const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat
290 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat
[all …]
Dunum.cpp108 retVal = (UNumberFormat*)new DecimalFormat(pat, syms, *parseErr, *status); in unum_open()
171 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_clone()
486 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_getAttribute()
568 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in unum_setAttribute()
630 df->setRoundingMode((DecimalFormat::ERoundingMode)newValue); in unum_setAttribute()
639 df->setPadPosition((DecimalFormat::EPadPosition)newValue); in unum_setAttribute()
666 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_getDoubleAttribute()
680 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in unum_setDoubleAttribute()
704 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_getTextAttribute()
768 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in unum_setTextAttribute()
[all …]
/external/icu4c/i18n/
Ddecimfmt.cpp222 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DecimalFormat)
248 const int32_t DecimalFormat::kDoubleIntegerDigits = 309;
249 const int32_t DecimalFormat::kDoubleFractionDigits = 340;
251 const int32_t DecimalFormat::kMaxScientificIntegerDigits = 8;
257 const char DecimalFormat::fgNumberPatterns[]="NumberPatterns"; // Deprecated - not used
271 DecimalFormat::DecimalFormat(UErrorCode& status) { in DecimalFormat() function in DecimalFormat
281 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat
293 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat
303 DecimalFormat::DecimalFormat( const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat
318 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat
[all …]
Dunum.cpp76 retVal = new DecimalFormat(pat, syms, *parseErr, *status); in unum_open()
139 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_clone()
473 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_getAttribute()
494 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in unum_setAttribute()
506 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_getDoubleAttribute()
520 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in unum_setDoubleAttribute()
544 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_getTextAttribute()
607 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in unum_setTextAttribute()
667 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_toPattern()
696 const DecimalFormat *dcf = dynamic_cast<const DecimalFormat *>(nf); in unum_getSymbol()
[all …]
/external/chromium_org/third_party/icu/source/i18n/unicode/
Ddecimfmt.h643 class U_I18N_API DecimalFormat: public NumberFormat {
687 DecimalFormat(UErrorCode& status);
703 DecimalFormat(const UnicodeString& pattern,
724 DecimalFormat( const UnicodeString& pattern,
740 DecimalFormat( const UnicodeString& pattern,
764 DecimalFormat( const UnicodeString& pattern,
785 DecimalFormat( const UnicodeString& pattern,
795 DecimalFormat(const DecimalFormat& source);
803 DecimalFormat& operator=(const DecimalFormat& rhs);
809 virtual ~DecimalFormat();
[all …]
/external/icu4c/i18n/unicode/
Ddecimfmt.h663 class U_I18N_API DecimalFormat: public NumberFormat {
711 DecimalFormat(UErrorCode& status);
727 DecimalFormat(const UnicodeString& pattern,
748 DecimalFormat( const UnicodeString& pattern,
765 DecimalFormat( const UnicodeString& pattern,
790 virtual DecimalFormat& setAttribute( UNumberFormatAttribute attr,
827 DecimalFormat( const UnicodeString& pattern,
848 DecimalFormat( const UnicodeString& pattern,
858 DecimalFormat(const DecimalFormat& source);
866 DecimalFormat& operator=(const DecimalFormat& rhs);
[all …]
Dcompactdecimalformat.h53 class U_I18N_API CompactDecimalFormat : public DecimalFormat {
108 using DecimalFormat::format;
322 …CompactDecimalFormat(const DecimalFormat &, const UHashtable* unitsByVariant, const double* diviso…
/external/emma/core/java12/com/vladium/emma/report/
DIItemAttribute.java11 import java.text.DecimalFormat;
204 m_format = (DecimalFormat) NumberFormat.getPercentInstance (); // TODO: locale in FractionAttribute()
205 m_fieldPosition = new FieldPosition (DecimalFormat.INTEGER_FIELD); in FractionAttribute()
212 m_nFormat = (DecimalFormat) NumberFormat.getInstance (); // TODO: locale in FractionAttribute()
223 private final DecimalFormat m_format, m_nFormat;
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DFuncFormatNumb.java60 java.text.DecimalFormat formatter = null; in execute()
93 formatter = new java.text.DecimalFormat(); in execute()
109 formatter = new java.text.DecimalFormat(); in execute()
121 formatter = new java.text.DecimalFormat(); in execute()
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/
DMapModel3D.java8 import java.text.DecimalFormat;
343 DecimalFormat form = new DecimalFormat("#.####"); in findLat()
377 DecimalFormat form = new DecimalFormat("#.#####"); in findLat()
DMapModel2D.java3 import java.text.DecimalFormat;
324 DecimalFormat form = new DecimalFormat("#.####"); in findLat()
356 DecimalFormat form = new DecimalFormat("#.#####"); in findLat()
/external/chromium_org/v8/src/
Di18n.h38 class DecimalFormat; variable
86 static icu::DecimalFormat* InitializeNumberFormat(
93 static icu::DecimalFormat* UnpackNumberFormat(Isolate* isolate,

1234