Lines Matching refs:DecimalFormat

242         DecimalFormat fmt(pat[i], sym, status);  in TestPatterns()
377 DecimalFormat fmt(pat[p], sym, status); in TestExponential()
468 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status); in TestScientific2()
484 DecimalFormat fmt("##0.00E0",status); in TestScientificGrouping()
519 DecimalFormat fmt("#.#E0",status); in TestInt64()
611 DecimalFormat *fmt = new DecimalFormat(*pat, *sym, status); in TestQuotes()
624 fmt = new DecimalFormat(*pat, *sym, status); in TestQuotes()
653 DecimalFormat *fmt = new DecimalFormat(pat, *sym, status); in TestCurrencySign()
670 fmt = new DecimalFormat(pat, *sym, status); in TestCurrencySign()
858 DecimalFormat* format = new DecimalFormat("00", status); in TestParse()
947 DecimalFormat *format = new DecimalFormat("(#,##0)", status); in TestLenientParse()
1156 DecimalFormat f("#,##,###", US, status); in TestSecondaryGrouping()
1213 DecimalFormat fmt("a b#0c ", US, ec); in TestWhiteSpaceParsing()
1264 DecimalFormat fmt1(UnicodeString("0.###E0"), US, status); in TestExponent()
1266 DecimalFormat fmt2(UnicodeString("0.###E+0"), US, status); in TestExponent()
1296 DecimalFormat df(pat, US, status); in TestScientific()
1339 expect2(new DecimalFormat("#E0", US, status), in TestScientific()
1342 expect(new DecimalFormat("0E0", US, status), in TestScientific()
1348 expect(new DecimalFormat("##0.###E0", US, status), in TestScientific()
1351 expect(new DecimalFormat("##0.###E0", US, status), in TestScientific()
1354 expect2(new DecimalFormat("##0.####E0", US, status), in TestScientific()
1360 expect(new DecimalFormat("##0.####E0", US, status), in TestScientific()
1363 expect2(new DecimalFormat("##0.####E0", US, status), in TestScientific()
1366 expect(new DecimalFormat(".###E0", US, status), in TestScientific()
1369 expect2(new DecimalFormat(".###E0", US, status), in TestScientific()
1393 expect2(new DecimalFormat("#E0", US, status), in TestScientific()
1395 expect2(new DecimalFormat("##E0", US, status), in TestScientific()
1397 expect2(new DecimalFormat("####E0", US, status), in TestScientific()
1399 expect(new DecimalFormat("0E0", US, status), in TestScientific()
1401 expect(new DecimalFormat("00E0", US, status), in TestScientific()
1403 expect(new DecimalFormat("000E0", US, status), in TestScientific()
1421 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1423 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1425 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1427 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1429 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1431 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1433 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1435 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1437 expect2(new DecimalFormat("###E0", US, status), in TestScientific()
1448 expect2(new DecimalFormat("0.#E+00", US, status), in TestScientific()
1450 expect2(new DecimalFormat("0.#E+00", US, status), in TestScientific()
1462 expect2(new DecimalFormat("*^##.##", US, status), in TestPad()
1464 expect2(new DecimalFormat("*^##.##", US, status), in TestPad()
1466 expect2(new DecimalFormat("##0.0####E0*_ 'g-m/s^2'", US, status), in TestPad()
1468 expect(new DecimalFormat("##0.0####E0*_ 'g-m/s^2'", US, status), in TestPad()
1470 expect2(new DecimalFormat("##0.0####*_ 'g-m/s^2'", US, status), in TestPad()
1472 expect(new DecimalFormat("##0.0####*_ 'g-m/s^2'", US, status), in TestPad()
1477 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1479 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1481 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1483 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1485 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1487 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1489 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1491 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1494 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1496 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1498 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1500 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1502 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1504 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1506 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1508 expect2(new DecimalFormat(formatStr, US, status), in TestPad()
1514 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1516 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1518 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1520 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1522 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1524 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1526 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1528 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1531 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1533 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1535 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1537 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1539 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1541 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1543 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1545 expect2(new DecimalFormat(formatStr2, US, status), in TestPad()
1549 DecimalFormat fmt("#", US, status); in TestPad()
1553 expectPad(fmt, "*P##.##", DecimalFormat::kPadBeforePrefix, 5, padString); in TestPad()
1555 expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, (UnicodeString)"^"); in TestPad()
1578 DecimalFormat fmt("#", US, status); in TestPatterns2()
1583 expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, hat); in TestPatterns2()
1584 expectPad(fmt, "$*^#", DecimalFormat::kPadAfterPrefix, 2, hat); in TestPatterns2()
1585 expectPad(fmt, "#*^", DecimalFormat::kPadBeforeSuffix, 1, hat); in TestPatterns2()
1586 expectPad(fmt, "#$*^", DecimalFormat::kPadAfterSuffix, 2, hat); in TestPatterns2()
1589 expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat::kPadBeforeSuffix, in TestPatterns2()
1591 expectPad(fmt, "''#0*x", DecimalFormat::kPadBeforeSuffix, in TestPatterns2()
1593 expectPad(fmt, "'I''ll'*a###.##", DecimalFormat::kPadAfterPrefix, in TestPatterns2()
1602 fmt.setPadPosition(DecimalFormat::kPadBeforePrefix); in TestPatterns2()
1605 fmt.setPadPosition(DecimalFormat::kPadBeforeSuffix); in TestPatterns2()
1608 fmt.setPadPosition(DecimalFormat::kPadAfterSuffix); in TestPatterns2()
1614 fmt.setPadPosition(DecimalFormat::kPadAfterPrefix); in TestPatterns2()
1648 expect2(new DecimalFormat(patternStr, custom, status), in TestSurrogateSupport()
1652 expect2(new DecimalFormat("*^##.##", custom, status), in TestSurrogateSupport()
1655 expect2(new DecimalFormat("##.##", custom, status), in TestSurrogateSupport()
1658 expect2(new DecimalFormat("##0.0####E0 'g-m/s^2'", custom, status), in TestSurrogateSupport()
1661 expect(new DecimalFormat("##0.0####E0 'g-m/s^2'", custom, status), in TestSurrogateSupport()
1664 expect2(new DecimalFormat("##0.0#### 'g-m/s^2'", custom, status), in TestSurrogateSupport()
1667 expect(new DecimalFormat("##0.0#### 'g-m/s^2'", custom, status), in TestSurrogateSupport()
1681 expect2(new DecimalFormat("##0.000", custom, status), in TestSurrogateSupport()
1691 expect2(new DecimalFormat(patternStr, custom, status), in TestSurrogateSupport()
1699 expect2(new DecimalFormat(patternStr, custom, status), in TestSurrogateSupport()
1727 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in TestCurrencyPatterns()
2025 DecimalFormat fmt(pat, sym, ec); in TestAdoptDecimalFormatSymbols()
2062 DecimalFormat fmt2(pat, sym, ec); in TestAdoptDecimalFormatSymbols()
2088 DecimalFormat fmt(ctou("###.###\\u2030"), ec); in TestPerMill()
2095 DecimalFormat fmt2("", sym, ec); in TestPerMill()
2121 DecimalFormat fmt(pat, ec); // locale doesn't matter here in TestIllegalPatterns()
2191 DecimalFormat *ref = 0, *fmt = 0; in TestCases()
2208 ref = new DecimalFormat(tok, in TestCases()
2228 fmt = new DecimalFormat(pat, new DecimalFormatSymbols(loc, ec), ec); in TestCases()
2346 DecimalFormat* f = 0; in TestCases()
2351 f = new DecimalFormat(testpat, ec2); in TestCases()
2457 ((DecimalFormat*) &fmt)->toPattern(pat); in expect()
2530 ((DecimalFormat*) &fmt)->toPattern(pat); in expect()
2574 DecimalFormat& fmt = * (DecimalFormat*) &nf; in expectCurrency()
2612 void NumberFormatTest::expectPat(DecimalFormat& fmt, const UnicodeString& exp) { in expectPat()
2622 void NumberFormatTest::expectPad(DecimalFormat& fmt, const UnicodeString& pat, in expectPad()
2626 void NumberFormatTest::expectPad(DecimalFormat& fmt, const UnicodeString& pat, in expectPad()
2630 void NumberFormatTest::expectPad(DecimalFormat& fmt, const UnicodeString& pat, in expectPad()
2879DecimalFormat *df = (DecimalFormat*)NumberFormat::createCurrencyInstance(Locale::getEnglish(), sta… in TestRounding()
2890 for (int mode=DecimalFormat::kRoundUp;mode<DecimalFormat::kRoundHalfEven;mode++) { in TestRounding()
2891 df->setRoundingMode((DecimalFormat::ERoundingMode)mode); in TestRounding()
2917DecimalFormat *df = (DecimalFormat*)NumberFormat::createCurrencyInstance(Locale::getEnglish(), sta… in TestRoundingPattern()
2941 void NumberFormatTest::checkRounding(DecimalFormat* df, double base, int iterations, double increme… in checkRounding()
2957 double NumberFormatTest::checkRound(DecimalFormat* df, double iValue, double lastParsed) { in checkRound()
2987 DecimalFormat df(UnicodeString("0"), US, status); in TestNonpositiveMultiplier()
3242 DecimalFormat* fmt = new DecimalFormat(pat, new DecimalFormatSymbols(*sym), status); in TestMultiCurrencySign()
3344 DecimalFormat* fmt = new DecimalFormat(pat, sym, status); in TestDecimalFormatCurrencyParse()
6256 DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(status); in TestFieldPositionIterator()
6286DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_CURRENCY, stat… in TestFormatAttributes()
6319 decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_SCIENTIFIC, status); in TestFormatAttributes()
6575 DecimalFormat fmt("#####", symbols, status); in TestExponentParse()
6714 sizeof(DecimalFormat), sizeof(DecimalFormatInternal), UNUM_DECIMALFORMAT_INTERNAL_SIZE); in TestFormatFastpaths()
6718 …at)=%d\n", sizeof(DecimalFormatInternal), UNUM_DECIMALFORMAT_INTERNAL_SIZE, sizeof(DecimalFormat)); in TestFormatFastpaths()
6727 DecimalFormat df(UnicodeString("0000",""),status); in TestFormatFastpaths()
6741 DecimalFormat df(UnicodeString("0000000000000000000",""),status); in TestFormatFastpaths()
6760 DecimalFormat df(UnicodeString("0000000000000000000",""),status); in TestFormatFastpaths()
6779 DecimalFormat df(UnicodeString("0000000000000000000",""),status); in TestFormatFastpaths()
6798 DecimalFormat df(UnicodeString("0000000000000000000",""),status); in TestFormatFastpaths()
7084 LocalPointer<DecimalFormat> numberFormat(static_cast<DecimalFormat*>( in TestSignificantDigits()
7108 LocalPointer<DecimalFormat> numberFormat(static_cast<DecimalFormat*>( in TestShowZero()
7125 LocalPointer<DecimalFormat> numberFormat(static_cast<DecimalFormat*>( in TestBug9936()
7160 DecimalFormat *test = (DecimalFormat *) NumberFormat::createInstance("fa", status); in TestParseNegativeWithFaLocale()
7176 DecimalFormat *test = (DecimalFormat *) NumberFormat::createInstance("en", status); in TestParseNegativeWithAlternateMinusSign()
7202 DecimalFormat fmt(pat, custom, status); in TestCustomCurrencySignAndSeparator()
7323 DecimalFormat::ERoundingMode mode;
7332 { DecimalFormat::kRoundCeiling, 1.488, "2"}, in Test10419RoundingWith0FractionDigits()
7333 { DecimalFormat::kRoundDown, 1.588, "1"}, in Test10419RoundingWith0FractionDigits()
7334 { DecimalFormat::kRoundFloor, 1.888, "1"}, in Test10419RoundingWith0FractionDigits()
7335 { DecimalFormat::kRoundHalfDown, 1.5, "1"}, in Test10419RoundingWith0FractionDigits()
7336 { DecimalFormat::kRoundHalfEven, 2.5, "2"}, in Test10419RoundingWith0FractionDigits()
7337 { DecimalFormat::kRoundHalfUp, 2.5, "3"}, in Test10419RoundingWith0FractionDigits()
7338 { DecimalFormat::kRoundUp, 1.5, "2"}, in Test10419RoundingWith0FractionDigits()
7341 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance(Locale("en_US"),… in Test10419RoundingWith0FractionDigits()
7359 DecimalFormat fmt("'I''ll'*a###.##", status); in Test10468ApplyPattern()
7383 DecimalFormat format("0.00E0", status); in TestRoundingScientific10542()
7389 DecimalFormat::ERoundingMode roundingModes[] = { in TestRoundingScientific10542()
7390 DecimalFormat::kRoundCeiling, in TestRoundingScientific10542()
7391 DecimalFormat::kRoundDown, in TestRoundingScientific10542()
7392 DecimalFormat::kRoundFloor, in TestRoundingScientific10542()
7393 DecimalFormat::kRoundHalfDown, in TestRoundingScientific10542()
7394 DecimalFormat::kRoundHalfEven, in TestRoundingScientific10542()
7395 DecimalFormat::kRoundHalfUp, in TestRoundingScientific10542()
7396 DecimalFormat::kRoundUp}; in TestRoundingScientific10542()
7553 DecimalFormat fmt("0.00E0", status); in TestZeroScientific10547()
7563 DecimalFormat& format, in verifyRounding()
7566 const DecimalFormat::ERoundingMode *roundingModes, in verifyRounding()
7619 DecimalFormat* fmtBase = new DecimalFormat(pattern, symbols, status); in TestEquality()
7625 DecimalFormat* fmtClone = (DecimalFormat*)fmtBase->clone(); in TestEquality()
7639 DecimalFormat *fmt; in TestCurrencyUsage()
7651 fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_PKR, UNUM_CURRENCY, status); in TestCurrencyUsage()
7666 … fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_PKR, UNUM_CASH_CURRENCY, status); in TestCurrencyUsage()
7688 fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_CAD, UNUM_CURRENCY, status); in TestCurrencyUsage()
7698 … fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_CAD, UNUM_CASH_CURRENCY, status); in TestCurrencyUsage()
7716 fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_CAD, UNUM_CURRENCY, status); in TestCurrencyUsage()
7722 … fmt = (DecimalFormat *) NumberFormat::createInstance(enUS_CAD, UNUM_CASH_CURRENCY, status); in TestCurrencyUsage()