/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | NumberFormatTest.java | 27 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/ |
D | pgen.c | 39 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/ |
D | pgen.c | 39 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/ |
D | nl-route-delete.c | 88 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 | .gitignore | 2 /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/ |
D | NumberFormatRegressionTest.java | 47 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 …]
|
D | NumberRegressionTests.java | 226 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 …]
|
D | NumberFormatSpecificationTest.java | 43 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()
|
D | NumberFormatTest.java | 1005 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/ |
D | NumberFormatRegressionTest.java | 50 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 …]
|
D | NumberRegressionTests.java | 229 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 …]
|
D | NumberFormatSpecificationTest.java | 46 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()
|
D | GlobalizationPreferencesTest.java | 111 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 …]
|
D | NumberFormatTest.java | 1008 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/ |
D | unum.cpp | 155 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/ |
D | main.cpp | 105 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/ |
D | NumberFormatTest.java | 51 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/ |
D | numrgts.cpp | 487 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 …]
|
D | uobjtest.cpp | 593 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/ |
D | fork09.c | 67 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/ |
D | GlobalizationPreferencesTest.java | 108 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/ |
D | Timer.java | 63 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/ |
D | Timer.java | 60 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/ |
D | cxfa_localevalue.cpp | 725 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/ |
D | guest_arm64_helpers.c | 121 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 …]
|