• Home
  • Raw
  • Download

Lines Matching refs:nf

489     NumberFormat *nf = NumberFormat::createInstance(status);  in Test4071492()  local
491 delete nf; in Test4071492()
494 nf->setMaximumFractionDigits(4); in Test4071492()
497 out = nf->format(x, out, pos); in Test4071492()
503 delete nf; in Test4071492()
525 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); in Test4086575() local
526 if(nf == NULL) { in Test4086575()
532 logln("nf toPattern1: " + nf->toPattern(temp)); in Test4086575()
533 logln("nf toLocPattern1: " + nf->toLocalizedPattern(temp)); in Test4086575()
537 nf->applyLocalizedPattern(UnicodeString("###,00;(###,00)"), status); in Test4086575()
539 logln("nf toPattern2: " + nf->toPattern(temp)); in Test4086575()
540 logln("nf toLocPattern2: " + nf->toLocalizedPattern(temp)); in Test4086575()
543 logln("nf: " + nf->format((int32_t)1234, temp, pos)); // 1234,00 in Test4086575()
544 logln("nf: " + nf->format((int32_t)-1234, temp, pos)); // (1234,00) in Test4086575()
556 nf->applyLocalizedPattern(pat, status); in Test4086575()
558 logln("nf toPattern2: " + nf->toPattern(temp)); in Test4086575()
559 logln("nf toLocPattern2: " + nf->toLocalizedPattern(temp)); in Test4086575()
561 buffer = nf->format((int32_t)1234, buffer, pos); in Test4086575()
571 buffer = nf->format((int32_t)-1234, buffer, pos); in Test4086575()
856 LocalPointer<NumberFormat> nf(NumberFormat::createCurrencyInstance(de, status)); in Test4087244() local
861 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf.getAlias()); in Test4087244()
1630 NumberFormat *nf = NumberFormat::createInstance(status); in Test4110936() local
1633 delete nf; in Test4110936()
1637 nf->setMaximumIntegerDigits(MAX_INT_DIGITS); in Test4110936()
1639 if (nf->getMaximumIntegerDigits() != MAX_INT_DIGITS) in Test4110936()
1641 nf->getMaximumIntegerDigits()); in Test4110936()
1643 delete nf; in Test4110936()
1811 DecimalFormat *nf = new DecimalFormat("##,###,###.00", status); in Test4134034() local
1815 f = nf->format(9.02, f, pos); in Test4134034()
1822 f = nf->format((int32_t)0, f, pos); in Test4134034()
1829 delete nf; in Test4134034()
1944 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff); in Test4145457() local
1945 if(nf == NULL) { in Test4145457()
1950 DecimalFormatSymbols *sym = (DecimalFormatSymbols*) nf->getDecimalFormatSymbols(); in Test4145457()
1952 nf->setDecimalFormatSymbols(*sym); in Test4145457()
1960 nf->applyPattern(PATS[i], status); in Test4145457()
1964 out = nf->format(pi, out, pos); in Test4145457()
1966 pat = nf->toPattern(pat); in Test4145457()
1969 nf->parse(out, num, pp); in Test4145457()
1972 nf->applyPattern(pat, status); in Test4145457()
1975 out2 = nf->format(pi, out2, pos); in Test4145457()
1977 pat2 = nf->toPattern(pat2); in Test4145457()
1979 nf->parse(out2, num, pp); in Test4145457()
2428 NumberFormat *nf; local
2431 nf = NumberFormat::createInstance(avail[i], status);
2435 nf = NumberFormat::createCurrencyInstance(avail[i], status);
2439 nf = NumberFormat::createPercentInstance(avail[i], status);
2446 DecimalFormat *df = (DecimalFormat*) nf;
2498 delete nf;
2575 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2577 delete nf;
2580 nf->setMinimumFractionDigits(1);
2581 nf->setMaximumFractionDigits(1);
2584 nf->format(a, s);
2587 ((DecimalFormat*) nf)->toPattern(pat) + " = " + s);
2591 delete nf;
2693 LocalPointer<NumberFormat> nf(NumberFormat::createInstance(loc, status)); local
2713 df->adoptNumberFormat(nf.orphan());
2761 NumberFormat *nf = NumberFormat::createInstance(Locale::getEnglish(), status); local
2762 if (nf == NULL) {
2773 nf->parse(numStr, val, status);
2784 nf->parse(numStr, val, status);
2793 nf->parse(numStr, val, status);
2801 nf->parse(numStr, val, status);
2813 nf->parse(numStr, val, status);
2822 nf->parse(numStr, val, status);
2832 nf->parse(numStr, val, status);
2850 nf->parse(numStr, val, status);
2860 nf->parse(numStr, val, status);
2869 nf->parse(numStr, val, status); // the ones digit, putting it up to ...994
2876 delete nf;
2907 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2909 delete nf;
2912 DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf);
2941 delete nf;