Lines Matching refs:nf
484 NumberFormat *nf = NumberFormat::createInstance(status); in Test4071492() local
486 delete nf; in Test4071492()
489 nf->setMaximumFractionDigits(4); in Test4071492()
492 out = nf->format(x, out, pos); in Test4071492()
498 delete nf; in Test4071492()
520 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); in Test4086575() local
521 if(nf == NULL) { in Test4086575()
527 logln("nf toPattern1: " + nf->toPattern(temp)); in Test4086575()
528 logln("nf toLocPattern1: " + nf->toLocalizedPattern(temp)); in Test4086575()
532 nf->applyLocalizedPattern(UnicodeString("###,00;(###,00)"), status); in Test4086575()
534 logln("nf toPattern2: " + nf->toPattern(temp)); in Test4086575()
535 logln("nf toLocPattern2: " + nf->toLocalizedPattern(temp)); in Test4086575()
538 logln("nf: " + nf->format((int32_t)1234, temp, pos)); // 1234,00 in Test4086575()
539 logln("nf: " + nf->format((int32_t)-1234, temp, pos)); // (1234,00) in Test4086575()
551 nf->applyLocalizedPattern(pat, status); in Test4086575()
553 logln("nf toPattern2: " + nf->toPattern(temp)); in Test4086575()
554 logln("nf toLocPattern2: " + nf->toLocalizedPattern(temp)); in Test4086575()
556 buffer = nf->format((int32_t)1234, buffer, pos); in Test4086575()
566 buffer = nf->format((int32_t)-1234, buffer, pos); in Test4086575()
850 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); in Test4087244() local
853 delete nf; in Test4087244()
856 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf); in Test4087244()
886 delete nf; in Test4087244()
1628 NumberFormat *nf = NumberFormat::createInstance(status); in Test4110936() local
1631 delete nf; in Test4110936()
1635 nf->setMaximumIntegerDigits(MAX_INT_DIGITS); in Test4110936()
1637 if (nf->getMaximumIntegerDigits() != MAX_INT_DIGITS) in Test4110936()
1639 nf->getMaximumIntegerDigits()); in Test4110936()
1641 delete nf; in Test4110936()
1803 DecimalFormat *nf = new DecimalFormat("##,###,###.00", status); in Test4134034() local
1807 f = nf->format(9.02, f, pos); in Test4134034()
1814 f = nf->format((int32_t)0, f, pos); in Test4134034()
1821 delete nf; in Test4134034()
1934 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff); in Test4145457() local
1935 if(nf == NULL) { in Test4145457()
1940 DecimalFormatSymbols *sym = (DecimalFormatSymbols*) nf->getDecimalFormatSymbols(); in Test4145457()
1942 nf->setDecimalFormatSymbols(*sym); in Test4145457()
1950 nf->applyPattern(PATS[i], status); in Test4145457()
1954 out = nf->format(pi, out, pos); in Test4145457()
1956 pat = nf->toPattern(pat); in Test4145457()
1959 nf->parse(out, num, pp); in Test4145457()
1962 nf->applyPattern(pat, status); in Test4145457()
1965 out2 = nf->format(pi, out2, pos); in Test4145457()
1967 pat2 = nf->toPattern(pat2); in Test4145457()
1969 nf->parse(out2, num, pp); in Test4145457()
2206 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2208 delete nf;
2211 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf);
2224 delete nf;
2411 NumberFormat *nf; local
2414 nf = NumberFormat::createInstance(avail[i], status);
2418 nf = NumberFormat::createCurrencyInstance(avail[i], status);
2422 nf = NumberFormat::createPercentInstance(avail[i], status);
2429 DecimalFormat *df = (DecimalFormat*) nf;
2481 delete nf;
2558 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2560 delete nf;
2563 nf->setMinimumFractionDigits(1);
2564 nf->setMaximumFractionDigits(1);
2567 nf->format(a, s);
2570 ((DecimalFormat*) nf)->toPattern(pat) + " = " + s);
2574 delete nf;
2676 NumberFormat *nf = NumberFormat::createInstance(loc, status); local
2693 df->adoptNumberFormat(nf);
2741 NumberFormat *nf = NumberFormat::createInstance(Locale::getEnglish(), status); local
2742 if (nf == NULL) {
2753 nf->parse(numStr, val, status);
2764 nf->parse(numStr, val, status);
2773 nf->parse(numStr, val, status);
2781 nf->parse(numStr, val, status);
2793 nf->parse(numStr, val, status);
2802 nf->parse(numStr, val, status);
2812 nf->parse(numStr, val, status);
2830 nf->parse(numStr, val, status);
2840 nf->parse(numStr, val, status);
2849 nf->parse(numStr, val, status); // the ones digit, putting it up to ...994
2856 delete nf;
2887 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2889 delete nf;
2892 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf);
2921 delete nf;