Searched refs:nf (Results 1 - 25 of 153) sorted by relevance

1234567

/external/chromium_org/v8/test/intl/number-format/
H A Dformat-is-bound.js29 var nf = new Intl.NumberFormat();
35 // The format() method should be properly bound to the nf object.
36 numberArray.forEach(nf.format);
39 nf.format(12345);
H A Dparse-percent.js28 var nf = new Intl.NumberFormat(['en'], {style: 'percent'});
30 assertEquals(1.2343, nf.v8Parse('123.43%'));
31 assertEquals(1.23, nf.v8Parse('123%'));
32 assertEquals(NaN, nf.v8Parse(NaN));
33 assertEquals(123.23, nf.v8Parse('123,23%'));
34 assertEquals(123.23456, nf.v8Parse('123,23.456%'));
35 assertEquals(123.23456, nf.v8Parse('0000000123,23.456%'));
36 assertEquals(-123.23456, nf.v8Parse('-123,23.456%'));
H A Dwellformed-unsupported-locale.js30 var nf = Intl.NumberFormat(['xx']); variable
32 assertEquals(nf.resolvedOptions().locale, %GetDefaultICULocale());
H A Dparse-decimal.js28 var nf = new Intl.NumberFormat(['en'], {style: 'decimal'});
30 assertEquals(123.43, nf.v8Parse('123.43'));
31 assertEquals(123, nf.v8Parse('123'));
32 assertEquals(NaN, nf.v8Parse(NaN));
33 assertEquals(12323, nf.v8Parse('123,23'));
34 assertEquals(12323.456, nf.v8Parse('123,23.456'));
35 assertEquals(12323.456, nf.v8Parse('0000000123,23.456'));
36 assertEquals(-12323.456, nf.v8Parse('-123,23.456'));
39 assertEquals(123.456, nf.v8Parse('123.456e-3'));
H A Dparse-currency.js31 var nf = new Intl.NumberFormat(['en'], {style: 'currency', currency: 'USD'});
33 assertEquals(undefined, nf.v8Parse('USD 123.43'));
H A Dparse-invalid-input.js30 var nf = new Intl.NumberFormat(['en']);
32 assertEquals(undefined, nf.v8Parse(''));
33 assertEquals(undefined, nf.v8Parse('A'));
34 assertEquals(undefined, nf.v8Parse(new Date()));
35 assertEquals(undefined, nf.v8Parse(undefined));
36 assertEquals(undefined, nf.v8Parse(null));
37 assertEquals(undefined, nf.v8Parse());
38 assertEquals(undefined, nf.v8Parse('Text before 12345'));
H A Dresolved-options-is-method.js31 var nf = new Intl.NumberFormat();
33 var result = nf.resolvedOptions();
H A Ddefault-locale.js31 var nf = new Intl.NumberFormat([]);
33 var options = nf.resolvedOptions();
/external/chromium_org/v8/test/intl/general/
H A Dmapped-locale.js30 var nf = Intl.NumberFormat(['zh-TW'], {localeMatcher: 'lookup'}); variable
31 assertEquals('zh-TW', nf.resolvedOptions().locale);
33 var nf = Intl.NumberFormat(['zh-Hant-TW'], {localeMatcher: 'lookup'}); variable
34 assertEquals('zh-Hant-TW', nf.resolvedOptions().locale);
36 var nf = Intl.NumberFormat(['zh-Hant'], {localeMatcher: 'lookup'}); variable
37 assertEquals('zh-Hant', nf.resolvedOptions().locale);
39 nf = Intl.NumberFormat(['zh'], {localeMatcher: 'lookup'});
40 assertEquals('zh', nf.resolvedOptions().locale);
42 nf = Intl.NumberFormat(['zh-CN'], {localeMatcher: 'lookup'});
43 assertEquals('zh-CN', nf
[all...]
/external/chromium_org/v8/test/intl/overrides/
H A Dnumber.js35 var nf = new Intl.NumberFormat();
36 assertEquals(nf.format(integer), integer.toLocaleString());
37 assertEquals(nf.format(float), float.toLocaleString());
42 nf = new Intl.NumberFormat(locale);
43 assertEquals(nf.format(integer), integer.toLocaleString(locale));
44 assertEquals(nf.format(float), float.toLocaleString(locale));
51 nf = new Intl.NumberFormat(locale, options);
52 assertEquals(nf.format(integer), integer.toLocaleString(locale, options));
53 assertEquals(nf.format(float), float.toLocaleString(locale, options));
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/tests/
H A Dbitvect_test.c149 int nf; local
152 nf = testfunc();
155 printf("%c", nf>0 ? 'F':'.');
157 if (nf > 0)
159 return nf;
166 int nf = 0; local
170 nf += runtest(boot, NULL, NULL);
171 nf += runtest(oct_small_num, num_family_setup, num_family_teardown);
172 nf += runtest(oct_large_num, num_family_setup, num_family_teardown);
174 3-nf, n
[all...]
H A Dcombpath_test.c121 int nf = 0; local
133 nf += fail;
137 numtests-nf, nf, numtests, 100*(numtests-nf)/numtests, failed);
138 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
H A Dsplitpath_test.c136 int nf = 0; local
148 nf += fail;
152 numtests-nf, nf, numtests, 100*(numtests-nf)/numtests, failed);
153 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
H A Duncstring_test.c134 int nf = 0; local
148 nf += fail;
152 numtests-nf, nf, numtests, 100*(numtests-nf)/numtests, failed);
155 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
H A Dleb128_test.c165 int nf = 0; local
183 nf += fail;
190 nf += fail;
196 numtests*2-nf, nf, numtests*2, 100*(numtests*2-nf)/(numtests*2),
198 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
H A Dfloatnum_test.c417 int nf; local
420 nf = testfunc();
423 printf("%c", nf>0 ? 'F':'.');
425 if (nf > 0)
428 return nf;
435 int nf = 0; local
442 nf += runtest(new_normalized, NULL, NULL);
443 nf += runtest(new_normalized_edgecase, NULL, NULL);
444 nf += runtest(get_single_normalized, get_family_setup, get_family_teardown);
445 nf
[all...]
/external/icu4c/samples/numfmt/
H A Dmain.cpp92 * @param nf The NumberFormat on which to set the currency; takes effect on
95 * The display style of the output is controlled by nf (its pattern,
103 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { argument
116 DecimalFormat *dnf=dynamic_cast<DecimalFormat *>(&nf);
169 nf.setMinimumFractionDigits(currencyMap[i].fractionDigits);
170 nf.setMaximumFractionDigits(currencyMap[i].fractionDigits);
182 * @param nf The NumberFormat on which to set the currency; takes effect on
184 * The display style of the output is controlled by nf (its pattern,
192 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { argument
208 nf
228 NumberFormat *nf; local
[all...]
/external/srec/srec/cfront/
H A Dchelmel4.c55 //static void mel_cuberoot_offset(cepdata *fbo, cepdata *ch_off, int nf);
57 static void mel_spectrum_correction(cepdata *fbo, cepdata *ch_gain, int nf);
61 //static void mel_exp(cepdata *fbo, int nf);
64 static void icostrans(cepdata *cs, cepdata fb[], cepdata cep[], int nf, int nc);
79 write_scaled_frames(freqobj->nf, 1, channel->filterbank, D_FIXED, 1 / (float)LOG_SCALE);
93 static void icostrans(cepdata *cs, cepdata fb[], cepdata cep[], int nf, int nc) argument
104 cp = &cs[i*nf];
105 for (j = 0, temp = 0; j < nf; j++)
113 static void mel_spectrum_correction(cepdata *fbo, cepdata *ch_gain, int nf) argument
119 for (i = 0;i < nf;
[all...]
/external/icu4c/i18n/
H A Dunum.cpp138 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
139 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
143 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf);
466 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
469 return nf->isLenient();
473 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
487 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
491 return nf->setLenient(newValue != 0);
494 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf);
505 const NumberFormat* nf local
519 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
543 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
606 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
666 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
695 const NumberFormat *nf = reinterpret_cast<const NumberFormat *>(fmt); local
722 NumberFormat *nf = reinterpret_cast<NumberFormat *>(fmt); local
758 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
[all...]
/external/icu4c/test/intltest/
H A Dnumrgts.cpp476 NumberFormat *nf = NumberFormat::createInstance(status); local
478 delete nf;
481 nf->setMaximumFractionDigits(4);
484 out = nf->format(x, out, pos);
490 delete nf;
512 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); local
513 if(nf == NULL) {
519 logln("nf toPattern1: " + nf->toPattern(temp));
520 logln("nf toLocPattern
842 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); local
1613 NumberFormat *nf = NumberFormat::createInstance(status); local
1788 DecimalFormat *nf = new DecimalFormat("##,###,###.00", status); local
1919 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff); local
2191 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2396 NumberFormat *nf; local
2541 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2659 NumberFormat *nf = NumberFormat::createInstance(loc, status); local
2714 NumberFormat *nf = NumberFormat::createInstance(Locale::getEnglish(), status); local
2860 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
[all...]
H A Dpptest.cpp179 NumberFormat *nf = NumberFormat::createInstance(status); local
181 delete nf;
185 DecimalFormat *fmt = dynamic_cast<DecimalFormat *>(nf);
213 delete nf;
/external/chromium_org/third_party/icu/source/i18n/
H A Dunum.cpp170 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
171 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
175 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf);
485 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
486 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf);
550 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf);
567 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
568 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf);
651 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf);
665 const NumberFormat* nf local
679 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
703 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
767 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
827 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local
856 const NumberFormat *nf = reinterpret_cast<const NumberFormat *>(fmt); local
883 NumberFormat *nf = reinterpret_cast<NumberFormat *>(fmt); local
919 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); local
[all...]
/external/chromium_org/third_party/icu/source/test/intltest/
H A Dnumrgts.cpp472 NumberFormat *nf = NumberFormat::createInstance(status); local
474 delete nf;
477 nf->setMaximumFractionDigits(4);
480 out = nf->format(x, out, pos);
486 delete nf;
508 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); local
509 if(nf == NULL) {
515 logln("nf toPattern1: " + nf->toPattern(temp));
516 logln("nf toLocPattern
838 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); local
1609 NumberFormat *nf = NumberFormat::createInstance(status); local
1784 DecimalFormat *nf = new DecimalFormat("##,###,###.00", status); local
1915 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff); local
2187 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2392 NumberFormat *nf; local
2537 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local
2655 NumberFormat *nf = NumberFormat::createInstance(loc, status); local
[all...]
H A Dpptest.cpp179 NumberFormat *nf = NumberFormat::createInstance(status); local
181 delete nf;
185 DecimalFormat *fmt = dynamic_cast<DecimalFormat *>(nf);
213 delete nf;
/external/valgrind/main/VEX/priv/
H A Dguest_arm_helpers.c120 UInt nf = (cc_dep1 >> ARMG_CC_SHIFT_N) & 1; local
121 return nf;
128 UInt nf = res >> 31; local
129 return nf;
136 UInt nf = res >> 31; local
137 return nf;
146 UInt nf = res >> 31; local
147 return nf;
156 UInt nf = res >> 31; local
157 return nf;
162 UInt nf = res >> 31; local
168 UInt nf = res >> 31; local
174 UInt nf = resHi32 >> 31; local
475 UInt nf, zf, vf, cf, inv; local
[all...]

Completed in 1294 milliseconds

1234567