Lines Matching refs:df
288 DecimalFormat *df = new DecimalFormat(status); in Test4088161() local
291 df->setMinimumFractionDigits(0); in Test4088161()
292 df->setMaximumFractionDigits(16); in Test4088161()
296 logln(UnicodeString("maxFractionDigits = ") + df->getMaximumFractionDigits()); in Test4088161()
298 logln(" format(d) = '" + df->format(d, sBuf1, fp1) + "'"); in Test4088161()
299 df->setMaximumFractionDigits(17); in Test4088161()
302 logln(UnicodeString("maxFractionDigits = ") + df->getMaximumFractionDigits()); in Test4088161()
303 sBuf2 = df->format(d, sBuf2, fp2); in Test4088161()
308 delete df; in Test4088161()
324 DecimalFormat *df = new DecimalFormat("#,##0.0", *symbols, status); in Test4087245() local
331 df->format(n, buf1, pos)); in Test4087245()
334 df->format(n, buf2, pos)); in Test4087245()
338 delete df; in Test4087245()
348 DecimalFormat *df = new DecimalFormat(status); in Test4087535() local
353 df->setMinimumIntegerDigits(0); in Test4087535()
358 buffer = df->format(n, buffer, pos); in Test4087535()
362 buffer = df->format(n, buffer, pos); in Test4087535()
366 delete df; in Test4087535()
376 DecimalFormat *df = new DecimalFormat(status); in Test4088503() local
381 df->setGroupingSize(0); in Test4088503()
385 logln(df->format((int32_t)123, sBuf, fp)); in Test4088503()
391 delete df; in Test4088503()
590 DecimalFormat *df = new DecimalFormat(status); in Test4068693() local
593 delete df; in Test4068693()
599 df->parse(UnicodeString("123.55456"), d, pos); in Test4068693()
602 df->setMaximumFractionDigits(999); in Test4068693()
603 df->setMaximumIntegerDigits(999); in Test4068693()
605 dstr = df->format(d.getDouble(), dstr, fp); in Test4068693()
610 delete df; in Test4068693()
646 DecimalFormat *df = new DecimalFormat(status); in Test4087251() local
649 delete df; in Test4087251()
654 df->applyPattern(UnicodeString("#.#.#"), status); in Test4087251()
658 logln("toPattern() returns \"" + df->toPattern(temp) + "\""); in Test4087251()
665 df->applyPattern("#0.0#0#0", status); in Test4087251()
668 logln("toPattern() returns \"" + df->toPattern(temp) + "\""); in Test4087251()
674 delete df; in Test4087251()
712 DecimalFormat *df = new DecimalFormat(status); in Test4090504() local
715 delete df; in Test4090504()
723 df->setMaximumFractionDigits(i); in Test4090504()
727 logln(UnicodeString(" formated: ") + df->format(d, sb, fp)); in Test4090504()
733 delete df; in Test4090504()
741 DecimalFormat *df = new DecimalFormat(status); in Test4095713() local
744 delete df; in Test4095713()
754 df->parse(str, d2, pp); in Test4095713()
758 delete df; in Test4095713()
768 DecimalFormat *df = new DecimalFormat(status); in Test4092561() local
771 delete df; in Test4092561()
785 delete df; in Test4092561()
856 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf); in Test4087244() local
857 if(df == NULL) { in Test4087244()
861 const DecimalFormatSymbols *sym = df->getDecimalFormatSymbols(); in Test4087244()
868 df->setMinimumIntegerDigits(1); in Test4087244()
869 df->setMinimumFractionDigits(2); in Test4087244()
872 df->format(1.23, str, pos); in Test4087244()
1177 DecimalFormat *df = new DecimalFormat("#0.#", status); in Test4093610() local
1180 roundingTest(df, 12.35, s); in Test4093610()
1181 roundingTest(df, 12.45, s); in Test4093610()
1183 roundingTest(df, 12.452,s); in Test4093610()
1185 roundingTest(df, 12.55, s); in Test4093610()
1186 roundingTest(df, 12.65, s); in Test4093610()
1188 roundingTest(df, 12.652,s); in Test4093610()
1190 roundingTest(df, 12.75, s); in Test4093610()
1191 roundingTest(df, 12.752,s); in Test4093610()
1192 roundingTest(df, 12.85, s); in Test4093610()
1194 roundingTest(df, 12.852,s); in Test4093610()
1196 roundingTest(df, 12.95, s); in Test4093610()
1197 roundingTest(df, 12.952,s); in Test4093610()
1200 delete df; in Test4093610()
1203 void NumberFormatRegressionTest::roundingTest(DecimalFormat *df, double x, UnicodeString& expected) in roundingTest() argument
1207 out = df->format(x, out, pos); in roundingTest()
1420 DecimalFormat *df = new DecimalFormat("#,##0.###", syms, status); in Test4108738() local
1423 delete df; in Test4108738()
1430 df->parse(text, num, pp); in Test4108738()
1436 temp = df->format(num.getDouble(), temp, pos); in Test4108738()
1443 df->parse(text, num, pp); in Test4108738()
1445 temp = df->format(num.getDouble(), temp, pos); in Test4108738()
1450 delete df; in Test4108738()
1459 DecimalFormat *df = new DecimalFormat(status); // Corrected; see 4147706 in Test4106658() local
1462 delete df; in Test4106658()
1477 logln("pattern: \"" + df->toPattern(temp) + "\""); in Test4106658()
1478 df->format(d1, buffer, pos); in Test4106658()
1482 df->format(d2, buffer, pos); in Test4106658()
1486 delete df; in Test4106658()
1495 DecimalFormat *df = new DecimalFormat(status); in Test4106662() local
1498 delete df; in Test4106662()
1506 logln("pattern: \"" + df->toPattern(temp) + "\""); in Test4106662()
1508 df->parse(text, num, pos1); in Test4106662()
1512 delete df; in Test4106662()
1513 df = new DecimalFormat(UnicodeString("$###.00"), status); in Test4106662()
1515 df->parse(UnicodeString("$"), num, pos2); in Test4106662()
1520 delete df; in Test4106662()
1554 DecimalFormat *df = new DecimalFormat(status); in Test4106664() local
1557 delete df; in Test4106664()
1568 df->setMultiplier(m); in Test4106664()
1569 df->setGroupingUsed(FALSE); in Test4106664()
1573 df->format(n, temp, pos)); in Test4106664()
1580 delete df; in Test4106664()
1588 DecimalFormat *df = new DecimalFormat(status); in Test4106667() local
1591 delete df; in Test4106667()
1602 logln("pattern: \"" + df->toPattern(temp) + "\""); in Test4106667()
1608 df->setPositivePrefix(/*"+"*/bar); in Test4106667()
1609 df->format(d, buffer, pos); in Test4106667()
1613 delete df; in Test4106667()
1862 DecimalFormat *df = new DecimalFormat(DATA[i], status); in Test4134300() local
1865 result = df->format(1.2, result, pos); in Test4134300()
1875 delete df; in Test4134300()
2034 DecimalFormat *df = new DecimalFormat("#,##0.0##", status); in Test4147706() local
2049 df->adoptDecimalFormatSymbols(syms); in Test4147706()
2050 f1 = df->format(d1, f1, pos); in Test4147706()
2051 f2 = df->format(d2, f2, pos); in Test4147706()
2053 …errln(UnicodeString("") + d1 + UnicodeString(" x \"") + df->toPattern(temp) + "\" is formatted as … in Test4147706()
2056 …errln(UnicodeString("") + d2 + UnicodeString(" x \"") + df->toPattern(temp) + "\" is formatted as … in Test4147706()
2060 delete df; in Test4147706()
2211 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf); local
2212 if(df == NULL) {
2216 df->setParseIntegerOnly(TRUE);
2219 df->parse("-0.0", n, pos);
2247 DecimalFormat df(DATA[i], status); local
2249 df.toPattern(s);
2429 DecimalFormat *df = (DecimalFormat*) nf; local
2433 df->toPattern(pat);
2441 if (*df != f2) {
2474 if (*df != f2) {
2686 DateFormat *df = DateFormat::createDateInstance(DateFormat::kShort, loc); local
2692 df->adoptCalendar(cal);
2693 df->adoptNumberFormat(nf);
2696 df->setLenient(TRUE);
2697 UDate ulocdat = df->parse(udt, status);
2701 df->format(ulocdat, outString);
2707 delete df;
2892 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf); local
2893 if(df == NULL) {
2897 df->setParseIntegerOnly(TRUE);
2903 df->parse(toParse, n, pos);
2910 df->setLenient(TRUE);
2915 df->parse(toParse, n, pos);
3020 LocalPointer<DecimalFormat> df(new DecimalFormat("###.##", symbols, status), status); local
3038 df->format(fmtable, s, pos, status);