Lines Matching refs:DecimalFormat
85 const DecimalFormat &fmt, in format()
98 const DecimalFormat &fmt, in format()
111 DecimalFormat &fmt, in adjustDecimalFormat()
232 static DecimalFormat *newDecimalFormat( in newDecimalFormat()
245 LocalPointer<DecimalFormat> result(new DecimalFormat( in newDecimalFormat()
256 static DecimalFormat *newDecimalFormat( in newDecimalFormat()
276 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isFormatPass()
340 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isToPatternPass()
375 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isParsePass()
420 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isParseCurrencyPass()
685 DecimalFormat fmt(pat[i], sym, status); in TestPatterns()
820 DecimalFormat fmt(pat[p], sym, status); in TestExponential()
911 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status); in TestScientific2()
927 DecimalFormat fmt("##0.00E0",status); in TestScientificGrouping()
962 DecimalFormat fmt("#.#E0",status); in TestInt64()
1058 DecimalFormat *fmt = new DecimalFormat(*pat, *sym, status); in TestQuotes()
1071 fmt = new DecimalFormat(*pat, *sym, status); in TestQuotes()
1100 DecimalFormat *fmt = new DecimalFormat(pat, *sym, status); in TestCurrencySign()
1117 fmt = new DecimalFormat(pat, *sym, status); in TestCurrencySign()
1305 DecimalFormat* format = new DecimalFormat("00", status); in TestParse()
1394 DecimalFormat *format = new DecimalFormat("(#,##0)", status); in TestLenientParse()
1603 DecimalFormat f("#,##,###", US, status); in TestSecondaryGrouping()
1660 DecimalFormat fmt("a b#0c ", US, ec); in TestWhiteSpaceParsing()
1711 DecimalFormat fmt1(UnicodeString("0.###E0"), US, status); in TestExponent()
1713 DecimalFormat fmt2(UnicodeString("0.###E+0"), US, status); in TestExponent()
1743 DecimalFormat df(pat, US, status); in TestScientific()
1786 expect2(new DecimalFormat("#E0", US, status), in TestScientific()
1789 expect(new DecimalFormat("0E0", US, status), in TestScientific()
1795 expect(new DecimalFormat("##0.###E0", US, status), in TestScientific()
1798 expect(new DecimalFormat("##0.###E0", US, status), in TestScientific()
1801 expect2(new DecimalFormat("##0.####E0", US, status), in TestScientific()
1807 expect(new DecimalFormat("##0.####E0", US, status), in TestScientific()
1810 expect2(new DecimalFormat("##0.####E0", US, status), in TestScientific()
1813 expect(new DecimalFormat(".###E0", US, status), in TestScientific()
1816 expect2(new DecimalFormat(".###E0", US, status), in TestScientific()
1840 expect2(new DecimalFormat("#E0", US, status), in TestScientific()
1842 expect2(new DecimalFormat("##E0", US, status), in TestScientific()
1844 expect2(new DecimalFormat("####E0", US, status), in TestScientific()
1846 expect(new DecimalFormat("0E0", US, status), in TestScientific()
1848 expect(new DecimalFormat("00E0", US, status), in TestScientific()
1850 expect(new DecimalFormat("000E0", US, status), in TestScientific()
1868 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1870 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1872 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1874 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1876 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1878 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1880 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1882 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1884 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1895 expect2(new DecimalFormat("0.#E+00", US, status), in TestScientific()
1897 expect2(new DecimalFormat("0.#E+00", US, status), in TestScientific()
1909 expect2(new DecimalFormat("*^##.##", US, status), in TestPad()
1911 expect2(new DecimalFormat("*^##.##", US, status), in TestPad()
1913 expect2(new DecimalFormat("##0.0####E0*_ 'g-m/s^2'", US, status), in TestPad()
1915 expect(new DecimalFormat("##0.0####E0*_ 'g-m/s^2'", US, status), in TestPad()
1917 expect2(new DecimalFormat("##0.0####*_ 'g-m/s^2'", US, status), in TestPad()
1919 expect(new DecimalFormat("##0.0####*_ 'g-m/s^2'", US, status), in TestPad()
1924 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1926 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1928 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1930 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1932 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1934 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1936 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1938 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1941 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1943 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1945 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1947 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1949 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1951 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1953 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1955 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1961 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1963 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1965 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1967 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1969 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1971 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1973 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1975 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1978 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1980 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1982 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1984 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1986 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1988 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1990 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1992 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1996 DecimalFormat fmt("#", US, status); in TestPad()
2000 expectPad(fmt, "*P##.##", DecimalFormat::kPadBeforePrefix, 5, padString); in TestPad()
2002 expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, (UnicodeString)"^"); in TestPad()
2025 DecimalFormat fmt("#", US, status); in TestPatterns2()
2030 expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, hat); in TestPatterns2()
2031 expectPad(fmt, "$*^#", DecimalFormat::kPadAfterPrefix, 2, hat); in TestPatterns2()
2032 expectPad(fmt, "#*^", DecimalFormat::kPadBeforeSuffix, 1, hat); in TestPatterns2()
2033 expectPad(fmt, "#$*^", DecimalFormat::kPadAfterSuffix, 2, hat); in TestPatterns2()
2036 expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat::kPadBeforeSuffix, in TestPatterns2()
2038 expectPad(fmt, "''#0*x", DecimalFormat::kPadBeforeSuffix, in TestPatterns2()
2040 expectPad(fmt, "'I''ll'*a###.##", DecimalFormat::kPadAfterPrefix, in TestPatterns2()
2049 fmt.setPadPosition(DecimalFormat::kPadBeforePrefix); in TestPatterns2()
2052 fmt.setPadPosition(DecimalFormat::kPadBeforeSuffix); in TestPatterns2()
2055 fmt.setPadPosition(DecimalFormat::kPadAfterSuffix); in TestPatterns2()
2061 fmt.setPadPosition(DecimalFormat::kPadAfterPrefix); in TestPatterns2()
2095 expect2(new DecimalFormat(patternStr, custom, status), in TestSurrogateSupport()
2099 expect2(new DecimalFormat("*^##.##", custom, status), in TestSurrogateSupport()
2102 expect2(new DecimalFormat("##.##", custom, status), in TestSurrogateSupport()
2105 expect2(new DecimalFormat("##0.0####E0 'g-m/s^2'", custom, status), in TestSurrogateSupport()
2108 expect(new DecimalFormat("##0.0####E0 'g-m/s^2'", custom, status), in TestSurrogateSupport()
2111 expect2(new DecimalFormat("##0.0#### 'g-m/s^2'", custom, status), in TestSurrogateSupport()
2114 expect(new DecimalFormat("##0.0#### 'g-m/s^2'", custom, status), in TestSurrogateSupport()
2128 expect2(new DecimalFormat("##0.000", custom, status), in TestSurrogateSupport()
2138 expect2(new DecimalFormat(patternStr, custom, status), in TestSurrogateSupport()
2146 expect2(new DecimalFormat(patternStr, custom, status), in TestSurrogateSupport()
2174 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in TestCurrencyPatterns()
2472 DecimalFormat fmt(pat, sym, ec); in TestAdoptDecimalFormatSymbols()
2509 DecimalFormat fmt2(pat, sym, ec); in TestAdoptDecimalFormatSymbols()
2535 DecimalFormat fmt(ctou("###.###\\u2030"), ec); in TestPerMill()
2542 DecimalFormat fmt2("", sym, ec); in TestPerMill()
2568 DecimalFormat fmt(pat, ec); // locale doesn't matter here in TestIllegalPatterns()
2638 DecimalFormat *ref = 0, *fmt = 0; in TestCases()
2655 ref = new DecimalFormat(tok, in TestCases()
2675 fmt = new DecimalFormat(pat, new DecimalFormatSymbols(loc, ec), ec); in TestCases()
2793 DecimalFormat* f = 0; in TestCases()
2798 f = new DecimalFormat(testpat, ec2); in TestCases()
2904 ((DecimalFormat*) &fmt)->toPattern(pat); in expect()
2977 ((DecimalFormat*) &fmt)->toPattern(pat); in expect()
3021 DecimalFormat& fmt = * (DecimalFormat*) &nf; in expectCurrency()
3059 void NumberFormatTest::expectPat(DecimalFormat& fmt, const UnicodeString& exp) { in expectPat()
3069 void NumberFormatTest::expectPad(DecimalFormat& fmt, const UnicodeString& pat, in expectPad()
3073 void NumberFormatTest::expectPad(DecimalFormat& fmt, const UnicodeString& pat, in expectPad()
3077 void NumberFormatTest::expectPad(DecimalFormat& fmt, const UnicodeString& pat, in expectPad()
3326 …DecimalFormat *df = (DecimalFormat*)NumberFormat::createCurrencyInstance(Locale::getEnglish(), sta… in TestRounding()
3337 for (int mode=DecimalFormat::kRoundUp;mode<DecimalFormat::kRoundHalfEven;mode++) { in TestRounding()
3338 df->setRoundingMode((DecimalFormat::ERoundingMode)mode); in TestRounding()
3364 …DecimalFormat *df = (DecimalFormat*)NumberFormat::createCurrencyInstance(Locale::getEnglish(), sta… in TestRoundingPattern()
3388 void NumberFormatTest::checkRounding(DecimalFormat* df, double base, int iterations, double increme… in checkRounding()
3404 double NumberFormatTest::checkRound(DecimalFormat* df, double iValue, double lastParsed) { in checkRound()
3434 DecimalFormat df(UnicodeString("0"), US, status); in TestNonpositiveMultiplier()
3689 DecimalFormat* fmt = new DecimalFormat(pat, new DecimalFormatSymbols(*sym), status); in TestMultiCurrencySign()
3791 DecimalFormat* fmt = new DecimalFormat(pat, sym, status); in TestDecimalFormatCurrencyParse()
6700 DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(status); in TestFieldPositionIterator()
6730 …DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_CURRENCY, stat… in TestFormatAttributes()
6763 decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_SCIENTIFIC, status); in TestFormatAttributes()
7019 DecimalFormat fmt("#####", symbols, status); in TestExponentParse()
7158 sizeof(DecimalFormat), sizeof(DecimalFormatInternal), UNUM_DECIMALFORMAT_INTERNAL_SIZE); in TestFormatFastpaths()
7162 …at)=%d\n", sizeof(DecimalFormatInternal), UNUM_DECIMALFORMAT_INTERNAL_SIZE, sizeof(DecimalFormat)); in TestFormatFastpaths()
7171 DecimalFormat df(UnicodeString("0000",""),status); in TestFormatFastpaths()
7189 DecimalFormat df(UnicodeString("0000000000000000000",""),status); in TestFormatFastpaths()
7212 DecimalFormat df(UnicodeString("0000000000000000000",""),status); in TestFormatFastpaths()
7235 DecimalFormat df(UnicodeString("0000000000000000000",""),status); in TestFormatFastpaths()
7258 DecimalFormat df(UnicodeString("0000000000000000000",""),status); in TestFormatFastpaths()
7548 LocalPointer<DecimalFormat> numberFormat(static_cast<DecimalFormat*>( in TestSignificantDigits()
7572 LocalPointer<DecimalFormat> numberFormat(static_cast<DecimalFormat*>( in TestShowZero()
7589 LocalPointer<DecimalFormat> numberFormat(static_cast<DecimalFormat*>( in TestBug9936()
7624 DecimalFormat *test = (DecimalFormat *) NumberFormat::createInstance("fa", status); in TestParseNegativeWithFaLocale()
7640 DecimalFormat *test = (DecimalFormat *) NumberFormat::createInstance("en", status); in TestParseNegativeWithAlternateMinusSign()
7666 DecimalFormat fmt(pat, custom, status); in TestCustomCurrencySignAndSeparator()
7787 DecimalFormat::ERoundingMode mode;
7796 { DecimalFormat::kRoundCeiling, 1.488, "2"}, in Test10419RoundingWith0FractionDigits()
7797 { DecimalFormat::kRoundDown, 1.588, "1"}, in Test10419RoundingWith0FractionDigits()
7798 { DecimalFormat::kRoundFloor, 1.888, "1"}, in Test10419RoundingWith0FractionDigits()
7799 { DecimalFormat::kRoundHalfDown, 1.5, "1"}, in Test10419RoundingWith0FractionDigits()
7800 { DecimalFormat::kRoundHalfEven, 2.5, "2"}, in Test10419RoundingWith0FractionDigits()
7801 { DecimalFormat::kRoundHalfUp, 2.5, "3"}, in Test10419RoundingWith0FractionDigits()
7802 { DecimalFormat::kRoundUp, 1.5, "2"}, in Test10419RoundingWith0FractionDigits()
7805 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance(Locale("en_US"),… in Test10419RoundingWith0FractionDigits()
7823 DecimalFormat fmt("'I''ll'*a###.##", status); in Test10468ApplyPattern()
7847 DecimalFormat format("0.00E0", status); in TestRoundingScientific10542()
7853 DecimalFormat::ERoundingMode roundingModes[] = { in TestRoundingScientific10542()
7854 DecimalFormat::kRoundCeiling, in TestRoundingScientific10542()
7855 DecimalFormat::kRoundDown, in TestRoundingScientific10542()
7856 DecimalFormat::kRoundFloor, in TestRoundingScientific10542()
7857 DecimalFormat::kRoundHalfDown, in TestRoundingScientific10542()
7858 DecimalFormat::kRoundHalfEven, in TestRoundingScientific10542()
7859 DecimalFormat::kRoundHalfUp, in TestRoundingScientific10542()
7860 DecimalFormat::kRoundUp}; in TestRoundingScientific10542()
8017 DecimalFormat fmt("0.00E0", status); in TestZeroScientific10547()
8027 DecimalFormat& format, in verifyRounding()
8030 const DecimalFormat::ERoundingMode *roundingModes, in verifyRounding()
8083 DecimalFormat* fmtBase = new DecimalFormat(pattern, symbols, status); in TestEquality()
8089 DecimalFormat* fmtClone = (DecimalFormat*)fmtBase->clone(); in TestEquality()
8103 DecimalFormat *fmt; in TestCurrencyUsage()
8115 fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_PKR, UNUM_CURRENCY, status); in TestCurrencyUsage()
8130 … fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_PKR, UNUM_CASH_CURRENCY, status); in TestCurrencyUsage()
8152 fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_CAD, UNUM_CURRENCY, status); in TestCurrencyUsage()
8162 … fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_CAD, UNUM_CASH_CURRENCY, status); in TestCurrencyUsage()
8180 fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_CAD, UNUM_CURRENCY, status); in TestCurrencyUsage()
8186 … fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_CAD, UNUM_CASH_CURRENCY, status); in TestCurrencyUsage()
8326 DecimalFormat fmt(pattern, sym, status); in TestGetAffixes()
8340 DecimalFormat fmtCopy(fmt); in TestGetAffixes()
8347 DecimalFormat fmtCopy(fmt); in TestGetAffixes()
8354 DecimalFormat fmtCopy(fmt); in TestGetAffixes()
8361 DecimalFormat fmtCopy(fmt); in TestGetAffixes()
8383 DecimalFormat fmt("0.00", sym, status); in TestToPatternScientific11648()
8391 DecimalFormat fmt2(pattern, sym, status); in TestToPatternScientific11648()
8481 DecimalFormat fmt(pattern.unescape(), sym, status); in TestCtorApplyPatternDifference()
8575 DecimalFormat *dfmt = (DecimalFormat *) fmt.getAlias(); in Test11376_getAndSetPositivePrefix()
8595 DecimalFormat *dfmt = (DecimalFormat *) fmt.getAlias(); in Test11376_getAndSetPositivePrefix()
8620 DecimalFormat fmt("+0.00", sym, status); in Test11475_signRecognition()
8637 DecimalFormat fmt("++0.00+;-(#)--", sym, status); in Test11475_signRecognition()
8680 DecimalFormat fmt(pattern, symbols, status); in Test11640_getAffixes()
8695 DecimalFormat fmt(pattern, status); in Test11649_toPatternWithMultiCurrency()
8707 DecimalFormat fmt2(topattern, status); in Test11649_toPatternWithMultiCurrency()