Searched defs:nf (Results 1 - 25 of 75) sorted by relevance

123

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
H A DNumberFormatRegressionTest.java44 NumberFormat nf = NumberFormat.getInstance(Locale.US);
45 nf.setMinimumFractionDigits(1);
46 nf.setMaximumFractionDigits(1);
48 String s = nf.format(a);
50 ((DecimalFormat) nf).toPattern() + " = " + s);
73 NumberFormat nf = NumberFormat.getInstance(loc);
76 //nf.setParseIntegerOnly(true);
82 df.setNumberFormat(nf);
324 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { argument
325 String myString = nf
342 checkNBSPPatternRT(String testcase, NumberFormat nf) argument
[all...]
H A DNumberFormatSpecificationTest.java41 NumberFormat nf = nfWithPattern("#,##0.##");
42 nf.setMaximumIntegerDigits(5);
43 nf.setMinimumIntegerDigits(4);
44 assertEquals("", "34 567,89", format(1234567.89, nf));
45 assertEquals("", "0 034,56", format(34.56, nf));
166 private static String format(double d, NumberFormat nf) { argument
167 return nf.format(d).replace('\u00a0', ' ');
/external/ltp/testcases/kernel/syscalls/fork/
H A Dfork09.c66 int pid, status, nf; local
153 for (nf = first; nf < nfiles; nf++) {
154 fclose(fildeses[nf]);
155 sprintf(filname, "file%d.%d", nf, mypid);
/external/icu/icu4c/source/samples/numfmt/
H A Dmain.cpp94 * @param nf The NumberFormat on which to set the currency; takes effect on
97 * The display style of the output is controlled by nf (its pattern,
105 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { argument
118 DecimalFormat *dnf=dynamic_cast<DecimalFormat *>(&nf);
171 nf.setMinimumFractionDigits(currencyMap[i].fractionDigits);
172 nf.setMaximumFractionDigits(currencyMap[i].fractionDigits);
184 * @param nf The NumberFormat on which to set the currency; takes effect on
186 * The display style of the output is controlled by nf (its pattern,
194 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { argument
210 nf
230 NumberFormat *nf; local
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DNumberFormatRegressionTest.java43 NumberFormat nf = NumberFormat.getInstance(Locale.US);
44 nf.setMinimumFractionDigits(1);
45 nf.setMaximumFractionDigits(1);
47 String s = nf.format(a);
49 ((DecimalFormat) nf).toPattern() + " = " + s);
72 NumberFormat nf = NumberFormat.getInstance(loc);
75 //nf.setParseIntegerOnly(true);
81 df.setNumberFormat(nf);
323 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { argument
324 String myString = nf
341 checkNBSPPatternRT(String testcase, NumberFormat nf) argument
[all...]
H A DNumberFormatSpecificationTest.java40 NumberFormat nf = nfWithPattern("#,##0.##");
41 nf.setMaximumIntegerDigits(5);
42 nf.setMinimumIntegerDigits(4);
43 assertEquals("", "34 567,89", format(1234567.89, nf));
44 assertEquals("", "0 034,56", format(34.56, nf));
165 private static String format(double d, NumberFormat nf) { argument
166 return nf.format(d).replace('\u00a0', ' ');
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
H A DTimer.java61 return nf;
69 return nf.format(getDuration()) + "\tns";
75 return nf.format(getDuration()/iterations) + "\tns";
79 return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D) + "";
82 private DecimalFormat nf = (DecimalFormat) NumberFormat.getNumberInstance(ULocale.ENGLISH); field in class:Timer
/external/icu/icu4c/source/test/intltest/
H A Dpptest.cpp181 NumberFormat *nf = NumberFormat::createInstance(status); local
183 delete nf;
187 DecimalFormat *fmt = dynamic_cast<DecimalFormat *>(nf);
215 delete nf;
H A Ddtfmapts.cpp237 const NumberFormat *nf = def->getNumberFormat(); local
238 NumberFormat *newNf = (NumberFormat*) nf->clone();
H A Duobjtest.cpp588 NumberFormat *nf = NumberFormat::createInstance("de", errorCode); local
593 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) {
597 if (&typeid(*nf) == NULL || typeid(*nf) == typeid(UObject) || typeid(*nf) == typeid(Format) ||
598 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) ||
599 typeid(*nf) == typeid(emptySet)
603 delete nf;
[all...]
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
H A DTimer.java60 return nf;
68 return nf.format(getDuration()) + "\tns";
74 return nf.format(getDuration()/iterations) + "\tns";
78 return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D) + "";
81 private DecimalFormat nf = (DecimalFormat) NumberFormat.getNumberInstance(ULocale.ENGLISH); field in class:Timer
/external/libnl/src/
H A Dnl-route-delete.c88 int nf = 0; local
141 case 'd': nf++; nl_cli_route_parse_dst(route, optarg); break;
142 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break;
143 case 't': nf++; nl_cli_route_parse_table(route, optarg); break;
144 case ARG_FAMILY: nf++; nl_cli_route_parse_family(route, optarg); break;
145 case ARG_SRC: nf++; nl_cli_route_parse_src(route, optarg); break;
146 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break;
147 case ARG_PREF_SRC: nf++; nl_cli_route_parse_pref_src(route, optarg); break;
148 case ARG_METRICS: nf++; nl_cli_route_parse_metric(route, optarg); break;
149 case ARG_PRIORITY: nf
[all...]
/external/syslinux/core/lwip/src/netif/
H A Dslipif.c262 * @param nf the lwip network interface structure for this slipif
265 slipif_loop_thread(void *nf) argument
268 struct netif *netif = (struct netif *)nf;
/external/aac/libFDK/src/
H A Dmdct.cpp180 int nt, nf, i; local
184 nf = fMin(hMdct->prev_nr, nrSamples);
185 nrSamples -= nf;
190 for (i=0; i<nf; i++) {
196 return (nt+nf);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
H A DTimeZoneAliasTest.java158 static private final NumberFormat nf = NumberFormat.getInstance(Locale.US); field in class:TimeZoneAliasTest.Zone
224 return nf.format(hours/DHOUR);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
H A DTrieMapTest.java48 private static DecimalFormat nf = t.getNumberFormat(); field in class:TrieMapTest
106 logln("\tTest Data Elements:\t\t\t" + nf.format(unicodeTestMap.size()));
107 logln("\tTotal chars:\t\t\t" + nf.format(charCount));
341 errln(style + "\t" + option + "\tTrie build takes too long. Expected:\t< " + nf.format(ratioToMap * comparisonTime) + ", Actual:\t" + nf.format(trieTime));
369 logln("\tkey byte size\tTREEMAP\tn/a\t" + nf.format(mapKeyByteSize));
375 logln("\tkey byte size\t" + style + "\t" + option + "\t" + nf.format(trieKeyByteSize) + "\t\t" + pf.format(trieKeyByteSize/(double)comparisonSize - 1D) + "");
379 errln(style + "\t" + option + "\ttrieKeyByteSize too large. Expected:\t< " + nf.format(ratioToMap * comparisonSize) + ", Actual:\t" + nf.format(trieKeyByteSize));
/external/icu/icu4c/source/i18n/
H A Dwinnmfmt.cpp230 NumberFormat *nf = fCurrency? NumberFormat::createCurrencyInstance(fLocale, status) : NumberFormat::createInstance(fLocale, status); local
232 nf->parse(text, result, parsePosition);
233 delete nf;
H A Dplurfmt.cpp358 NumberFormat* nf = (NumberFormat*)format->clone(); local
359 if (nf != NULL) {
361 numberFormat = nf;
H A Dunum.cpp155 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
156 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
160 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf);
483 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
486 return nf->isLenient();
490 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
504 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
508 return nf->setLenient(newValue != 0);
511 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf);
522 const NumberFormat* nf local
536 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
560 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
623 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
683 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
712 const NumberFormat *nf = reinterpret_cast<const NumberFormat *>(fmt); local
739 NumberFormat *nf = reinterpret_cast<NumberFormat *>(fmt); local
775 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
H A DTimeZoneAliasTest.java157 static private final NumberFormat nf = NumberFormat.getInstance(Locale.US); field in class:TimeZoneAliasTest.Zone
223 return nf.format(hours/DHOUR);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DTrieMapTest.java47 private static DecimalFormat nf = t.getNumberFormat(); field in class:TrieMapTest
105 logln("\tTest Data Elements:\t\t\t" + nf.format(unicodeTestMap.size()));
106 logln("\tTotal chars:\t\t\t" + nf.format(charCount));
340 errln(style + "\t" + option + "\tTrie build takes too long. Expected:\t< " + nf.format(ratioToMap * comparisonTime) + ", Actual:\t" + nf.format(trieTime));
368 logln("\tkey byte size\tTREEMAP\tn/a\t" + nf.format(mapKeyByteSize));
374 logln("\tkey byte size\t" + style + "\t" + option + "\t" + nf.format(trieKeyByteSize) + "\t\t" + pf.format(trieKeyByteSize/(double)comparisonSize - 1D) + "");
378 errln(style + "\t" + option + "\ttrieKeyByteSize too large. Expected:\t< " + nf.format(ratioToMap * comparisonSize) + ", Actual:\t" + nf.format(trieKeyByteSize));
/external/libedit/src/
H A Dmap.c1399 size_t nf = (size_t)el->el_map.nfunc + 1; local
1404 if ((p = el_realloc(el->el_map.func, nf *
1408 if ((p = el_realloc(el->el_map.help, nf * sizeof(*el->el_map.help)))
1413 nf = (size_t)el->el_map.nfunc;
1414 el->el_map.func[nf] = func;
1416 el->el_map.help[nf].name = name;
1417 el->el_map.help[nf].func = (int)nf;
1418 el->el_map.help[nf].description = help;
/external/opencv/cxcore/src/
H A Dcxdxt.cpp179 int nf = 0, f, i, j; local
190 factors[nf++] = f;
199 factors[nf++] = f;
211 factors[nf++] = n;
214 for( i = f; i < (nf+f)/2; i++ )
215 CV_SWAP( factors[i], factors[nf-i-1+f], j );
217 return nf;
221 icvDFTInit( int n0, int nf, int* factors, int* itab, int elem_size, void* _wave, int inv_itab ) argument
258 // radix[] is initialized from index 'nf' down to zero
259 assert (nf < 3
[all...]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/constructor/
H A DSafeConstructor.java278 private final NumberFormat nf = NumberFormat.getInstance(); field in class:SafeConstructor.ConstructYamlNumber
283 return nf.parse(scalar.getValue());
/external/clang/test/SemaCXX/
H A Dcxx0x-cursory-default-delete.cpp75 no_fields nf; member in struct:no_fields_container
106 const no_fields nf; // ok local

Completed in 972 milliseconds

123