/external/chromium_org/v8/test/intl/number-format/ |
H A D | format-is-bound.js | 29 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 D | parse-percent.js | 28 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 D | wellformed-unsupported-locale.js | 30 var nf = Intl.NumberFormat(['xx']); variable 32 assertEquals(nf.resolvedOptions().locale, %GetDefaultICULocale());
|
H A D | parse-decimal.js | 28 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 D | parse-currency.js | 31 var nf = new Intl.NumberFormat(['en'], {style: 'currency', currency: 'USD'}); 33 assertEquals(undefined, nf.v8Parse('USD 123.43'));
|
H A D | parse-invalid-input.js | 30 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 D | resolved-options-is-method.js | 31 var nf = new Intl.NumberFormat(); 33 var result = nf.resolvedOptions();
|
H A D | default-locale.js | 31 var nf = new Intl.NumberFormat([]); 33 var options = nf.resolvedOptions();
|
/external/chromium_org/v8/test/intl/general/ |
H A D | mapped-locale.js | 30 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 D | number.js | 35 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/libnl/src/ |
H A D | nl-route-delete.c | 88 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...] |
H A D | nl-cls-delete.c | 68 int nf = 0, err; local 107 case 'd': nf++; parse_dev(cls, link_cache, optarg); break; 108 case 'p': nf++; parse_parent(cls, optarg); break; 109 case ARG_PRIO: nf++; parse_prio(cls, optarg); break; 110 case ARG_ID: nf++; parse_handle(cls, optarg); break; 111 case ARG_PROTO: nf++; parse_proto(cls, optarg); break; 115 if (nf == 0 && !interactive && !default_yes) {
|
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/tests/ |
H A D | bitvect_test.c | 149 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 D | combpath_test.c | 121 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 D | splitpath_test.c | 136 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 D | uncstring_test.c | 134 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 D | leb128_test.c | 165 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 D | floatnum_test.c | 417 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/chromium_org/third_party/icu/source/samples/numfmt/ |
H A D | main.cpp | 92 * @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/icu/icu4c/source/samples/numfmt/ |
H A D | main.cpp | 92 * @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 D | chelmel4.c | 55 //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/chromium_org/third_party/icu/source/test/intltest/ |
H A D | numrgts.cpp | 477 NumberFormat *nf = NumberFormat::createInstance(status); local 479 delete nf; 482 nf->setMaximumFractionDigits(4); 485 out = nf->format(x, out, pos); 491 delete nf; 513 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); local 514 if(nf == NULL) { 520 logln("nf toPattern1: " + nf->toPattern(temp)); 521 logln("nf toLocPattern 843 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); local 1615 NumberFormat *nf = NumberFormat::createInstance(status); local 1790 DecimalFormat *nf = new DecimalFormat("##,###,###.00", status); local 1921 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff); local 2193 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local 2398 NumberFormat *nf; local 2543 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local 2661 NumberFormat *nf = NumberFormat::createInstance(loc, status); local 2719 NumberFormat *nf = NumberFormat::createInstance(Locale::getEnglish(), status); local 2865 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | numrgts.cpp | 477 NumberFormat *nf = NumberFormat::createInstance(status); local 479 delete nf; 482 nf->setMaximumFractionDigits(4); 485 out = nf->format(x, out, pos); 491 delete nf; 513 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); local 514 if(nf == NULL) { 520 logln("nf toPattern1: " + nf->toPattern(temp)); 521 logln("nf toLocPattern 843 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); local 1615 NumberFormat *nf = NumberFormat::createInstance(status); local 1790 DecimalFormat *nf = new DecimalFormat("##,###,###.00", status); local 1921 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff); local 2193 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local 2398 NumberFormat *nf; local 2543 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local 2661 NumberFormat *nf = NumberFormat::createInstance(loc, status); local 2719 NumberFormat *nf = NumberFormat::createInstance(Locale::getEnglish(), status); local 2865 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status); local [all...] |
/external/valgrind/main/VEX/priv/ |
H A D | guest_arm64_helpers.c | 121 ULong nf = (cc_dep1 >> ARM64G_CC_SHIFT_N) & 1; local 122 return nf; 129 ULong nf = (ULong)(res >> 31); local 130 return nf; 137 ULong nf = (ULong)(res >> 63); local 138 return nf; 145 ULong nf = (ULong)(res >> 31); local 146 return nf; 153 ULong nf = res >> 63; local 154 return nf; 163 ULong nf = res >> 31; local 173 ULong nf = res >> 63; local 183 ULong nf = res >> 31; local 193 ULong nf = res >> 63; local 199 ULong nf = res >> 31; local 205 ULong nf = res >> 63; local 617 ULong nf, zf, vf, cf; local [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | unum.cpp | 138 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...] |