/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
H A D | NumberFormatSpecificationTest.java | 46 NumberFormat nf = nfWithPattern("#,##0.##"); 47 nf.setMaximumIntegerDigits(5); 48 nf.setMinimumIntegerDigits(4); 49 assertEquals("", "34 567,89", format(1234567.89, nf)); 50 assertEquals("", "0 034,56", format(34.56, nf)); 171 private static String format(double d, NumberFormat nf) { argument 172 return nf.format(d).replace('\u00a0', ' ');
|
H A D | NumberFormatRegressionTest.java | 50 NumberFormat nf = NumberFormat.getInstance(Locale.US); 51 nf.setMinimumFractionDigits(1); 52 nf.setMaximumFractionDigits(1); 54 String s = nf.format(a); 56 ((DecimalFormat) nf).toPattern() + " = " + s); 79 NumberFormat nf = NumberFormat.getInstance(loc); 82 //nf.setParseIntegerOnly(true); 84 //nf.setGroupingUsed(false); 91 df.setNumberFormat(nf); 330 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, doubl argument 348 checkNBSPPatternRT(String testcase, NumberFormat nf) argument [all...] |
/external/icu/icu4c/source/i18n/ |
H A D | upluralrules.cpp | 70 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); local 71 if (plrules == NULL || nf == NULL || ((keyword == NULL)? capacity != 0 : capacity < 0)) { 76 UnicodeString result = plrules->select(obj, *nf, *status);
|
H A D | winnmfmt.cpp | 320 NumberFormat *nf = fCurrency? NumberFormat::createCurrencyInstance(fLocale, status) : NumberFormat::createInstance(fLocale, status); local 322 nf->parse(text, result, parsePosition); 323 delete nf;
|
H A D | plurfmt.cpp | 358 NumberFormat* nf = (NumberFormat*)format->clone(); local 359 if (nf != NULL) { 361 numberFormat = nf;
|
/external/ltp/testcases/kernel/syscalls/fork/ |
H A D | fork09.c | 67 int pid, status, nf; local 149 for (nf = first; nf < nfiles; nf++) { 150 fclose(fildeses[nf]); 151 sprintf(filname, "file%d.%d", nf, mypid);
|
/external/icu/icu4c/source/samples/numfmt/ |
H A D | main.cpp | 94 * @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 D | NumberFormatRegressionTest.java | 47 NumberFormat nf = NumberFormat.getInstance(Locale.US); 48 nf.setMinimumFractionDigits(1); 49 nf.setMaximumFractionDigits(1); 51 String s = nf.format(a); 53 ((DecimalFormat) nf).toPattern() + " = " + s); 76 NumberFormat nf = NumberFormat.getInstance(loc); 79 //nf.setParseIntegerOnly(true); 81 //nf.setGroupingUsed(false); 88 df.setNumberFormat(nf); 327 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, doubl argument 345 checkNBSPPatternRT(String testcase, NumberFormat nf) argument [all...] |
H A D | NumberFormatSpecificationTest.java | 43 NumberFormat nf = nfWithPattern("#,##0.##"); 44 nf.setMaximumIntegerDigits(5); 45 nf.setMinimumIntegerDigits(4); 46 assertEquals("", "34 567,89", format(1234567.89, nf)); 47 assertEquals("", "0 034,56", format(34.56, nf)); 168 private static String format(double d, NumberFormat nf) { argument 169 return nf.format(d).replace('\u00a0', ' ');
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
H A D | Timer.java | 63 return nf; 71 return nf.format(getDuration()) + "\tns"; 77 return nf.format(getDuration()/iterations) + "\tns"; 81 return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D) + ""; 84 private DecimalFormat nf = (DecimalFormat) NumberFormat.getNumberInstance(ULocale.ENGLISH); field in class:Timer
|
/external/icu/icu4c/source/test/intltest/ |
H A D | pptest.cpp | 181 NumberFormat *nf = NumberFormat::createInstance(status); local 183 delete nf; 187 DecimalFormat *fmt = dynamic_cast<DecimalFormat *>(nf); 215 delete nf;
|
H A D | dtfmapts.cpp | 237 const NumberFormat *nf = def->getNumberFormat(); local 238 NumberFormat *newNf = (NumberFormat*) nf->clone();
|
H A D | uobjtest.cpp | 593 NumberFormat *nf = NumberFormat::createInstance("de", errorCode); local 598 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) { 602 if (&typeid(*nf) == NULL || typeid(*nf) == typeid(UObject) || typeid(*nf) == typeid(Format) || 603 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) || 604 typeid(*nf) == typeid(emptySet) 608 delete nf; [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
H A D | Timer.java | 60 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 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...] |
/external/syslinux/core/lwip/src/netif/ |
H A D | slipif.c | 262 * @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/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
H A D | TimeZoneAliasTest.java | 163 static private final NumberFormat nf = NumberFormat.getInstance(Locale.US); field in class:TimeZoneAliasTest.Zone 229 return nf.format(hours/DHOUR);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
H A D | TrieMapTest.java | 53 private static DecimalFormat nf = t.getNumberFormat(); field in class:TrieMapTest 111 logln("\tTest Data Elements:\t\t\t" + nf.format(unicodeTestMap.size())); 112 logln("\tTotal chars:\t\t\t" + nf.format(charCount)); 351 errln(style + "\t" + option + "\tTrie build takes too long. Expected:\t< " + nf.format(ratioToMap * comparisonTime) + ", Actual:\t" + nf.format(trieTime)); 379 logln("\tkey byte size\tTREEMAP\tn/a\t" + nf.format(mapKeyByteSize)); 385 logln("\tkey byte size\t" + style + "\t" + option + "\t" + nf.format(trieKeyByteSize) + "\t\t" + pf.format(trieKeyByteSize/(double)comparisonSize - 1D) + ""); 389 errln(style + "\t" + option + "\ttrieKeyByteSize too large. Expected:\t< " + nf.format(ratioToMap * comparisonSize) + ", Actual:\t" + nf.format(trieKeyByteSize));
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
H A D | TimeZoneAliasTest.java | 160 static private final NumberFormat nf = NumberFormat.getInstance(Locale.US); field in class:TimeZoneAliasTest.Zone 226 return nf.format(hours/DHOUR);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
H A D | TrieMapTest.java | 50 private static DecimalFormat nf = t.getNumberFormat(); field in class:TrieMapTest 108 logln("\tTest Data Elements:\t\t\t" + nf.format(unicodeTestMap.size())); 109 logln("\tTotal chars:\t\t\t" + nf.format(charCount)); 348 errln(style + "\t" + option + "\tTrie build takes too long. Expected:\t< " + nf.format(ratioToMap * comparisonTime) + ", Actual:\t" + nf.format(trieTime)); 376 logln("\tkey byte size\tTREEMAP\tn/a\t" + nf.format(mapKeyByteSize)); 382 logln("\tkey byte size\t" + style + "\t" + option + "\t" + nf.format(trieKeyByteSize) + "\t\t" + pf.format(trieKeyByteSize/(double)comparisonSize - 1D) + ""); 386 errln(style + "\t" + option + "\ttrieKeyByteSize too large. Expected:\t< " + nf.format(ratioToMap * comparisonSize) + ", Actual:\t" + nf.format(trieKeyByteSize));
|
/external/libedit/src/ |
H A D | map.c | 1399 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 D | cxdxt.cpp | 179 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 D | SafeConstructor.java | 278 private final NumberFormat nf = NumberFormat.getInstance(); field in class:SafeConstructor.ConstructYamlNumber 283 return nf.parse(scalar.getValue());
|
/external/aac/libFDK/src/ |
H A D | mdct.cpp | 346 int nt, nf, i; local 350 nf = fMin(hMdct->prev_nr, nrSamples); 356 for (i = 0; i < nf; i++) { 362 for (i = 0; i < nf; i++) { 369 return (nt + nf);
|
/external/clang/test/SemaCXX/ |
H A D | cxx0x-cursory-default-delete.cpp | 75 no_fields nf; member in struct:no_fields_container 106 const no_fields nf; // ok local
|