Home
last modified time | relevance | path

Searched refs:nf (Results 1 – 25 of 405) sorted by relevance

12345678910>>...17

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DNumberFormatTest.java27 NumberFormat nf = new NumberFormat(java.text.NumberFormat.getInstance()); in testNumberFormat() local
28 assertEquals(nf, NumberFormat.getInstance()); in testNumberFormat()
130 NumberFormat nf = NumberFormat.getInstance(); in testIsParseIntegerOnly() local
131 nf.setParseIntegerOnly(true); in testIsParseIntegerOnly()
132 assertTrue(nf.isParseIntegerOnly()); in testIsParseIntegerOnly()
133 nf.setParseIntegerOnly(false); in testIsParseIntegerOnly()
134 assertFalse(nf.isParseIntegerOnly()); in testIsParseIntegerOnly()
142 NumberFormat nf = NumberFormat.getInstance(); in testSetParseIntegerOnly() local
143 assertEquals(new Double(123.456), nf.parse(str)); in testSetParseIntegerOnly()
144 nf.setParseIntegerOnly(true); in testSetParseIntegerOnly()
[all …]
/external/python/cpython2/Parser/
Dpgen.c39 nfa *nf, node *n, int *pa, int *pb);
41 nfa *nf, node *n, int *pa, int *pb);
43 nfa *nf, node *n, int *pa, int *pb);
45 nfa *nf, node *n, int *pa, int *pb);
48 addnfastate(nfa *nf) in addnfastate() argument
52 nf->nf_state = (nfastate *)PyObject_REALLOC(nf->nf_state, in addnfastate()
53 sizeof(nfastate) * (nf->nf_nstates + 1)); in addnfastate()
54 if (nf->nf_state == NULL) in addnfastate()
56 st = &nf->nf_state[nf->nf_nstates++]; in addnfastate()
59 return st - nf->nf_state; in addnfastate()
[all …]
/external/python/cpython3/Parser/
Dpgen.c39 nfa *nf, node *n, int *pa, int *pb);
41 nfa *nf, node *n, int *pa, int *pb);
43 nfa *nf, node *n, int *pa, int *pb);
45 nfa *nf, node *n, int *pa, int *pb);
48 addnfastate(nfa *nf) in addnfastate() argument
52 nf->nf_state = (nfastate *)PyObject_REALLOC(nf->nf_state, in addnfastate()
53 sizeof(nfastate) * (nf->nf_nstates + 1)); in addnfastate()
54 if (nf->nf_state == NULL) in addnfastate()
56 st = &nf->nf_state[nf->nf_nstates++]; in addnfastate()
59 return st - nf->nf_state; in addnfastate()
[all …]
/external/libnl/src/
Dnl-route-delete.c88 int nf = 0; in main() local
141 case 'd': nf++; nl_cli_route_parse_dst(route, optarg); break; in main()
142 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main()
143 case 't': nf++; nl_cli_route_parse_table(route, optarg); break; in main()
144 case ARG_FAMILY: nf++; nl_cli_route_parse_family(route, optarg); break; in main()
145 case ARG_SRC: nf++; nl_cli_route_parse_src(route, optarg); break; in main()
146 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break; in main()
147 case ARG_PREF_SRC: nf++; nl_cli_route_parse_pref_src(route, optarg); break; in main()
148 case ARG_METRICS: nf++; nl_cli_route_parse_metric(route, optarg); break; in main()
149 case ARG_PRIORITY: nf++; nl_cli_route_parse_prio(route, optarg); break; in main()
[all …]
D.gitignore2 /nf-ct-add
3 nf-ct-list
4 nf-exp-list
5 nf-exp-add
6 nf-exp-delete
7 nf-log
8 nf-monitor
41 nf-queue
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatRegressionTest.java47 NumberFormat nf = NumberFormat.getInstance(Locale.US); in Test4161100() local
48 nf.setMinimumFractionDigits(1); in Test4161100()
49 nf.setMaximumFractionDigits(1); in Test4161100()
51 String s = nf.format(a); in Test4161100()
53 ((DecimalFormat) nf).toPattern() + " = " + s); in Test4161100()
76 NumberFormat nf = NumberFormat.getInstance(loc); in TestJ691() local
88 df.setNumberFormat(nf); in TestJ691()
327 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { in checkNBSPPatternRtNum() argument
328 String myString = nf.format(myNumber); in checkNBSPPatternRtNum()
332 aNumber = nf.parse(myString).doubleValue(); in checkNBSPPatternRtNum()
[all …]
DNumberRegressionTests.java226 NumberFormat nf = NumberFormat.getInstance(); in Test4071492() local
227 nf.setMaximumFractionDigits(4); in Test4071492()
228 String out = nf.format(x); in Test4071492()
242 NumberFormat nf = NumberFormat.getInstance(Locale.FRANCE); in Test4086575() local
243 logln("nf toPattern1: " + ((DecimalFormat)nf).toPattern()); in Test4086575()
244 logln("nf toLocPattern1: " + ((DecimalFormat)nf).toLocalizedPattern()); in Test4086575()
248 ((DecimalFormat)nf).applyLocalizedPattern("###,00;(###,00)"); in Test4086575()
249 logln("nf toPattern2: " + ((DecimalFormat)nf).toPattern()); in Test4086575()
250 logln("nf toLocPattern2: " + ((DecimalFormat)nf).toLocalizedPattern()); in Test4086575()
252 logln("nf: " + nf.format(1234)); // 1234,00 in Test4086575()
[all …]
DNumberFormatSpecificationTest.java43 NumberFormat nf = nfWithPattern("#,##0.##"); in TestNfSetters() local
44 nf.setMaximumIntegerDigits(5); in TestNfSetters()
45 nf.setMinimumIntegerDigits(4); in TestNfSetters()
46 assertEquals("", "34 567,89", format(1234567.89, nf)); in TestNfSetters()
47 assertEquals("", "0 034,56", format(34.56, nf)); in TestNfSetters()
168 private static String format(double d, NumberFormat nf) { in format() argument
169 return nf.format(d).replace('\u00a0', ' '); in format()
DNumberFormatTest.java1005 NumberFormat nf = NumberFormat.getCurrencyInstance(locs[i]); in TestCurrencyPatterns() local
1008 int min = nf.getMinimumFractionDigits(); in TestCurrencyPatterns()
1009 int max = nf.getMaximumFractionDigits(); in TestCurrencyPatterns()
1011 String a = nf.format(1.0); in TestCurrencyPatterns()
1012 String b = nf.format(1.125); in TestCurrencyPatterns()
1020 if (nf instanceof DecimalFormat) { in TestCurrencyPatterns()
1021 Currency curr = ((DecimalFormat) nf).getCurrency(); in TestCurrencyPatterns()
1024 String a = nf.format(1.0); in TestCurrencyPatterns()
1057 NumberFormat nf = NumberFormat.getInstance(); in TestRounding487() local
1058 roundingTest(nf, 0.00159999, 4, "0.0016"); in TestRounding487()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatRegressionTest.java50 NumberFormat nf = NumberFormat.getInstance(Locale.US); in Test4161100() local
51 nf.setMinimumFractionDigits(1); in Test4161100()
52 nf.setMaximumFractionDigits(1); in Test4161100()
54 String s = nf.format(a); in Test4161100()
56 ((DecimalFormat) nf).toPattern() + " = " + s); in Test4161100()
79 NumberFormat nf = NumberFormat.getInstance(loc); in TestJ691() local
91 df.setNumberFormat(nf); in TestJ691()
330 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { in checkNBSPPatternRtNum() argument
331 String myString = nf.format(myNumber); in checkNBSPPatternRtNum()
335 aNumber = nf.parse(myString).doubleValue(); in checkNBSPPatternRtNum()
[all …]
DNumberRegressionTests.java229 NumberFormat nf = NumberFormat.getInstance(); in Test4071492() local
230 nf.setMaximumFractionDigits(4); in Test4071492()
231 String out = nf.format(x); in Test4071492()
245 NumberFormat nf = NumberFormat.getInstance(Locale.FRANCE); in Test4086575() local
246 logln("nf toPattern1: " + ((DecimalFormat)nf).toPattern()); in Test4086575()
247 logln("nf toLocPattern1: " + ((DecimalFormat)nf).toLocalizedPattern()); in Test4086575()
251 ((DecimalFormat)nf).applyLocalizedPattern("###,00;(###,00)"); in Test4086575()
252 logln("nf toPattern2: " + ((DecimalFormat)nf).toPattern()); in Test4086575()
253 logln("nf toLocPattern2: " + ((DecimalFormat)nf).toLocalizedPattern()); in Test4086575()
255 logln("nf: " + nf.format(1234)); // 1234,00 in Test4086575()
[all …]
DNumberFormatSpecificationTest.java46 NumberFormat nf = nfWithPattern("#,##0.##"); in TestNfSetters() local
47 nf.setMaximumIntegerDigits(5); in TestNfSetters()
48 nf.setMinimumIntegerDigits(4); in TestNfSetters()
49 assertEquals("", "34 567,89", format(1234567.89, nf)); in TestNfSetters()
50 assertEquals("", "0 034,56", format(34.56, nf)); in TestNfSetters()
171 private static String format(double d, NumberFormat nf) { in format() argument
172 return nf.format(d).replace('\u00a0', ' '); in format()
DGlobalizationPreferencesTest.java111 NumberFormat nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestDefault() local
112 ULocale nfLocale = nf.getLocale(ULocale.VALID_LOCALE); in TestDefault()
1392 NumberFormat nf; in TestNumberFormat() local
1399 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
1400 numStr = nf.format(num); in TestNumberFormat()
1411 nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestNumberFormat()
1412 numStr = nf.format(num); in TestNumberFormat()
1419 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
1420 numStr = nf.format(num); in TestNumberFormat()
1427 nf = gp.getNumberFormat(GlobalizationPreferences.NF_PERCENT); in TestNumberFormat()
[all …]
DNumberFormatTest.java1008 NumberFormat nf = NumberFormat.getCurrencyInstance(locs[i]); in TestCurrencyPatterns() local
1011 int min = nf.getMinimumFractionDigits(); in TestCurrencyPatterns()
1012 int max = nf.getMaximumFractionDigits(); in TestCurrencyPatterns()
1014 String a = nf.format(1.0); in TestCurrencyPatterns()
1015 String b = nf.format(1.125); in TestCurrencyPatterns()
1023 if (nf instanceof DecimalFormat) { in TestCurrencyPatterns()
1024 Currency curr = ((DecimalFormat) nf).getCurrency(); in TestCurrencyPatterns()
1027 String a = nf.format(1.0); in TestCurrencyPatterns()
1060 NumberFormat nf = NumberFormat.getInstance(); in TestRounding487() local
1061 roundingTest(nf, 0.00159999, 4, "0.0016"); in TestRounding487()
[all …]
/external/icu/icu4c/source/i18n/
Dunum.cpp155 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); in unum_clone() local
156 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_clone()
160 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone()
510 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); in unum_getAttribute() local
513 return nf->isLenient(); in unum_getAttribute()
516 return nf->getMaximumIntegerDigits(); in unum_getAttribute()
519 return nf->getMinimumIntegerDigits(); in unum_getAttribute()
523 return nf->getMinimumIntegerDigits(); in unum_getAttribute()
526 return nf->getMaximumFractionDigits(); in unum_getAttribute()
529 return nf->getMinimumFractionDigits(); in unum_getAttribute()
[all …]
/external/icu/icu4c/source/samples/numfmt/
Dmain.cpp105 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_4() argument
118 DecimalFormat *dnf=dynamic_cast<DecimalFormat *>(&nf); in setNumberFormatCurrency_2_4()
171 nf.setMinimumFractionDigits(currencyMap[i].fractionDigits); in setNumberFormatCurrency_2_4()
172 nf.setMaximumFractionDigits(currencyMap[i].fractionDigits); in setNumberFormatCurrency_2_4()
194 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_6() argument
210 nf.setCurrency(uCurrency); in setNumberFormatCurrency_2_6()
212 nf.setCurrency(uCurrency, errorCode); in setNumberFormatCurrency_2_6()
230 NumberFormat *nf; in showCurrencyFormatting() local
247 nf=NumberFormat::createCurrencyInstance(sampleLocaleIDs[i], errorCode); in showCurrencyFormatting()
259 setNumberFormatCurrency_2_6(*nf, sampleCurrencies[j], errorCode); in showCurrencyFormatting()
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DNumberFormatTest.java51 NumberFormat nf; in checkGetInstance() local
53 nf = getJDKInstance(type, loc, method); in checkGetInstance()
55 boolean isIcuImpl = (nf instanceof com.ibm.icu.impl.jdkadapter.DecimalFormatICU) in checkGetInstance()
56 || (nf instanceof com.ibm.icu.impl.jdkadapter.NumberFormatICU); in checkGetInstance()
69 if (!nf.equals(nfIcu)) { in checkGetInstance()
83 NumberFormat nf = null; in getJDKInstance() local
88 nf = NumberFormat.getInstance(loc); in getJDKInstance()
92 nf = NumberFormat.getNumberInstance(loc); in getJDKInstance()
96 nf = NumberFormat.getIntegerInstance(loc); in getJDKInstance()
100 nf = NumberFormat.getPercentInstance(loc); in getJDKInstance()
[all …]
/external/icu/icu4c/source/test/intltest/
Dnumrgts.cpp487 NumberFormat *nf = NumberFormat::createInstance(status); in Test4071492() local
489 delete nf; in Test4071492()
492 nf->setMaximumFractionDigits(4); in Test4071492()
495 out = nf->format(x, out, pos); in Test4071492()
501 delete nf; in Test4071492()
523 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); in Test4086575() local
524 if(nf == NULL) { in Test4086575()
530 logln("nf toPattern1: " + nf->toPattern(temp)); in Test4086575()
531 logln("nf toLocPattern1: " + nf->toLocalizedPattern(temp)); in Test4086575()
535 nf->applyLocalizedPattern(UnicodeString("###,00;(###,00)"), status); in Test4086575()
[all …]
Duobjtest.cpp593 NumberFormat *nf = NumberFormat::createInstance("de", errorCode); in TestCompilerRTTI() local
598 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) { in TestCompilerRTTI()
602 if (&typeid(*nf) == NULL || typeid(*nf) == typeid(UObject) || typeid(*nf) == typeid(Format) || in TestCompilerRTTI()
603 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) || in TestCompilerRTTI()
604 typeid(*nf) == typeid(emptySet) in TestCompilerRTTI()
608 delete nf; in TestCompilerRTTI()
/external/ltp/testcases/kernel/syscalls/fork/
Dfork09.c67 int pid, status, nf; in main() local
149 for (nf = first; nf < nfiles; nf++) { in main()
150 fclose(fildeses[nf]); in main()
151 sprintf(filname, "file%d.%d", nf, mypid); in main()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java108 NumberFormat nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestDefault() local
109 ULocale nfLocale = nf.getLocale(ULocale.VALID_LOCALE); in TestDefault()
1389 NumberFormat nf; in TestNumberFormat() local
1396 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
1397 numStr = nf.format(num); in TestNumberFormat()
1408 nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestNumberFormat()
1409 numStr = nf.format(num); in TestNumberFormat()
1416 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
1417 numStr = nf.format(num); in TestNumberFormat()
1424 nf = gp.getNumberFormat(GlobalizationPreferences.NF_PERCENT); in TestNumberFormat()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DTimer.java63 return nf; in getNumberFormat()
71 return nf.format(getDuration()) + "\tns"; in toString()
77 return nf.format(getDuration()/iterations) + "\tns"; in toString()
81 …return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D… in toString()
84 private DecimalFormat nf = (DecimalFormat) NumberFormat.getNumberInstance(ULocale.ENGLISH); field in Timer
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DTimer.java60 return nf; in getNumberFormat()
68 return nf.format(getDuration()) + "\tns"; in toString()
74 return nf.format(getDuration()/iterations) + "\tns"; in toString()
78 …return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D… in toString()
81 private DecimalFormat nf = (DecimalFormat) NumberFormat.getNumberInstance(ULocale.ENGLISH); field in Timer
/external/pdfium/xfa/fxfa/parser/
Dcxfa_localevalue.cpp725 int32_t nf = 0; in ValidateNumericTemp() local
727 wchar_t cf = pFmt[nf]; in ValidateNumericTemp()
731 ++nf; in ValidateNumericTemp()
737 while (n < nCount && (bLimit ? nf < nCountFmt : true) && in ValidateNumericTemp()
740 if ((cf = pFmt[nf]) == L'*') in ValidateNumericTemp()
743 nf++; in ValidateNumericTemp()
751 if (nf == nCountFmt) in ValidateNumericTemp()
754 while (nf < nCountFmt && (cf = pFmt[nf]) != L'.') { in ValidateNumericTemp()
756 ++nf; in ValidateNumericTemp()
765 if (pFmt[nf] != L'.') in ValidateNumericTemp()
[all …]
/external/valgrind/VEX/priv/
Dguest_arm64_helpers.c121 ULong nf = (cc_dep1 >> ARM64G_CC_SHIFT_N) & 1; in arm64g_calculate_flag_n() local
122 return nf; in arm64g_calculate_flag_n()
129 ULong nf = (ULong)(res >> 31); in arm64g_calculate_flag_n() local
130 return nf; in arm64g_calculate_flag_n()
137 ULong nf = (ULong)(res >> 63); in arm64g_calculate_flag_n() local
138 return nf; in arm64g_calculate_flag_n()
145 ULong nf = (ULong)(res >> 31); in arm64g_calculate_flag_n() local
146 return nf; in arm64g_calculate_flag_n()
153 ULong nf = res >> 63; in arm64g_calculate_flag_n() local
154 return nf; in arm64g_calculate_flag_n()
[all …]

12345678910>>...17