Lines Matching refs:df
447 DecimalFormat *df = new DecimalFormat(status); in TestCurrencyPluralInfo() local
453 df->adoptCurrencyPluralInfo(cpi); in TestCurrencyPluralInfo()
455 df->getCurrencyPluralInfo(); in TestCurrencyPluralInfo()
457 df->setCurrencyPluralInfo(cpi1); in TestCurrencyPluralInfo()
459 delete df; in TestCurrencyPluralInfo()
609 LocalPointer<DecimalFormat> df(new DecimalFormat("###", status), status); in TestFixedDecimal() local
614 FixedDecimal fd = df->getFixedDecimal(44, status); in TestFixedDecimal()
620 fd = df->getFixedDecimal(-44, status); in TestFixedDecimal()
626 df.adoptInsteadAndCheckErrorCode(new DecimalFormat("###.00##", status), status); in TestFixedDecimal()
628 fd = df->getFixedDecimal(123.456, status); in TestFixedDecimal()
638 fd = df->getFixedDecimal(-123.456, status); in TestFixedDecimal()
649 df->setMaximumIntegerDigits(2); in TestFixedDecimal()
650 fd = df->getFixedDecimal(123.456, status); in TestFixedDecimal()
660 fd = df->getFixedDecimal(-123.456, status); in TestFixedDecimal()
671 df->setMaximumIntegerDigits(2000000000); in TestFixedDecimal()
672 df->setMaximumFractionDigits(2); in TestFixedDecimal()
673 fd = df->getFixedDecimal(123.456, status); in TestFixedDecimal()
683 fd = df->getFixedDecimal(-123.456, status); in TestFixedDecimal()
694 df->setMaximumFractionDigits(6); in TestFixedDecimal()
695 df->setRoundingIncrement(7.3); in TestFixedDecimal()
697 fd = df->getFixedDecimal(30.0, status); in TestFixedDecimal()
707 fd = df->getFixedDecimal(-30.0, status); in TestFixedDecimal()
717 df.adoptInsteadAndCheckErrorCode(new DecimalFormat("###", status), status); in TestFixedDecimal()
719 fd = df->getFixedDecimal(123.456, status); in TestFixedDecimal()
728 df.adoptInsteadAndCheckErrorCode(new DecimalFormat("###.0", status), status); in TestFixedDecimal()
730 fd = df->getFixedDecimal(123.01, status); in TestFixedDecimal()
739 df.adoptInsteadAndCheckErrorCode(new DecimalFormat("###.0", status), status); in TestFixedDecimal()
741 fd = df->getFixedDecimal(123.06, status); in TestFixedDecimal()
750 …df.adoptInsteadAndCheckErrorCode(new DecimalFormat("@@@@@", status), status); // Significant Digi… in TestFixedDecimal()
752 fd = df->getFixedDecimal(123, status); in TestFixedDecimal()
761 …df.adoptInsteadAndCheckErrorCode(new DecimalFormat("@@@@@", status), status); // Significant Digi… in TestFixedDecimal()
763 fd = df->getFixedDecimal(1.23, status); in TestFixedDecimal()
772 fd = df->getFixedDecimal(uprv_getInfinity(), status); in TestFixedDecimal()
775 fd = df->getFixedDecimal(0.0, status); in TestFixedDecimal()
777 fd = df->getFixedDecimal(uprv_getNaN(), status); in TestFixedDecimal()
784 df.adoptInsteadAndCheckErrorCode( in TestFixedDecimal()
789 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
800 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
812 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
824 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
836 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
848 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
860 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
871 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
883 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
894 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
905 fd = df->getFixedDecimal(fable, status); in TestFixedDecimal()
924 LocalPointer<DecimalFormat> df(new DecimalFormat("###", status), status); in TestBadFastpath() local
932 assertEquals("Format 1234", "1234", df->format(1234, fmt)); in TestBadFastpath()
933 df->setGroupingUsed(FALSE); in TestBadFastpath()
935 assertEquals("Format 1234", "1234", df->format(1234, fmt)); in TestBadFastpath()
936 df->setGroupingUsed(TRUE); in TestBadFastpath()
937 df->setGroupingSize(3); in TestBadFastpath()
939 assertEquals("Format 1234 w/ grouping", "1,234", df->format(1234, fmt)); in TestBadFastpath()
949 LocalPointer<DecimalFormat> df(new DecimalFormat(pat1, status), status); in TestRequiredDecimalPoint() local
956 df->applyPattern(pat1, status); in TestRequiredDecimalPoint()
960 df->parse(text, result1, status); in TestRequiredDecimalPoint()
964 df->setDecimalPatternMatchRequired(TRUE); in TestRequiredDecimalPoint()
965 df->parse(text, result1, status); in TestRequiredDecimalPoint()
972 df->applyPattern(pat2, status); in TestRequiredDecimalPoint()
973 df->setDecimalPatternMatchRequired(FALSE); in TestRequiredDecimalPoint()
977 df->parse(text, result1, status); in TestRequiredDecimalPoint()
981 df->setDecimalPatternMatchRequired(TRUE); in TestRequiredDecimalPoint()
982 df->parse(text, result1, status); in TestRequiredDecimalPoint()