Lines Matching refs:nf
472 NumberFormat *nf = NumberFormat::createInstance(status);
474 delete nf;
477 nf->setMaximumFractionDigits(4);
480 out = nf->format(x, out, pos);
486 delete nf;
508 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1);
509 if(nf == NULL) {
515 logln("nfnf->toPattern(temp));
516 logln("nf toLocPattern1: " + nf->toLocalizedPattern(temp));
520 nf->applyLocalizedPattern(UnicodeString("###,00;(###,00)"), status);
521 failure(status, "nf->applyLocalizedPattern", Locale::getFrance());
522 logln("nf toPattern2: " + nf->toPattern(temp));
523 logln("nf toLocPattern2: " + nf->toLocalizedPattern(temp));
526 logln("nf: " + nf->format((int32_t)1234, temp, pos)); // 1234,00
527 logln("nf: " + nf->format((int32_t)-1234, temp, pos)); // (1234,00)
533 //nf->applyLocalizedPattern("#\u00a0###,00;(#\u00a0###,00)");
539 nf->applyLocalizedPattern(pat, status);
540 failure(status, "nf->applyLocalizedPattern", Locale::getFrance());
541 logln("nf toPattern2: " + nf->toPattern(temp));
542 logln("nf toLocPattern2: " + nf->toLocalizedPattern(temp));
544 buffer = nf->format((int32_t)1234, buffer, pos);
551 errln("nf : " + buffer); // Expect 1 234,00
554 buffer = nf->format((int32_t)-1234, buffer, pos);
560 errln("nf : " + buffer); // Expect (1 234,00)
838 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status);
841 delete nf;
844 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf);
874 delete nf;
1609 NumberFormat *nf = NumberFormat::createInstance(status);
1612 delete nf;
1616 nf->setMaximumIntegerDigits(MAX_INT_DIGITS);
1618 if (nf->getMaximumIntegerDigits() != MAX_INT_DIGITS)
1620 nf->getMaximumIntegerDigits());
1622 delete nf;
1784 DecimalFormat *nf = new DecimalFormat("##,###,###.00", status);
1788 f = nf->format(9.02, f, pos);
1795 f = nf->format((int32_t)0, f, pos);
1802 delete nf;
1915 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff);
1916 if(nf == NULL) {
1921 DecimalFormatSymbols *sym = (DecimalFormatSymbols*) nf->getDecimalFormatSymbols();
1923 nf->setDecimalFormatSymbols(*sym);
1931 nf->applyPattern(PATS[i], status);
1932 failure(status, "nf->applyPattern");
1935 out = nf->format(pi, out, pos);
1937 pat = nf->toPattern(pat);
1940 nf->parse(out, num, pp);
1943 nf->applyPattern(pat, status);
1944 failure(status, "nf->applyPattern");
1946 out2 = nf->format(pi, out2, pos);
1948 pat2 = nf->toPattern(pat2);
1950 nf->parse(out2, num, pp);
2187 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status);
2189 delete nf;
2192 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf);
2205 delete nf;
2392 NumberFormat *nf;
2395 nf = NumberFormat::createInstance(avail[i], status);
2399 nf = NumberFormat::createCurrencyInstance(avail[i], status);
2403 nf = NumberFormat::createPercentInstance(avail[i], status);
2410 DecimalFormat *df = (DecimalFormat*) nf;
2460 delete nf;
2537 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status);
2539 delete nf;
2542 nf->setMinimumFractionDigits(1);
2543 nf->setMaximumFractionDigits(1);
2546 nf->format(a, s);
2549 ((DecimalFormat*) nf)->toPattern(pat) + " = " + s);
2553 delete nf;
2655 NumberFormat *nf = NumberFormat::createInstance(loc, status);
2662 // nf->setParseIntegerOnly(TRUE);
2672 df->adoptNumberFormat(nf);