/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/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/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | NumberFormatRegressionTest.java | 44 NumberFormat nf = NumberFormat.getInstance(Locale.US); in Test4161100() local 45 nf.setMinimumFractionDigits(1); in Test4161100() 46 nf.setMaximumFractionDigits(1); in Test4161100() 48 String s = nf.format(a); in Test4161100() 50 ((DecimalFormat) nf).toPattern() + " = " + s); in Test4161100() 73 NumberFormat nf = NumberFormat.getInstance(loc); in TestJ691() local 82 df.setNumberFormat(nf); in TestJ691() 324 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { in checkNBSPPatternRtNum() argument 325 String myString = nf.format(myNumber); in checkNBSPPatternRtNum() 329 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 | 41 NumberFormat nf = nfWithPattern("#,##0.##"); in TestNfSetters() local 42 nf.setMaximumIntegerDigits(5); in TestNfSetters() 43 nf.setMinimumIntegerDigits(4); in TestNfSetters() 44 assertEquals("", "34 567,89", format(1234567.89, nf)); in TestNfSetters() 45 assertEquals("", "0 034,56", format(34.56, nf)); in TestNfSetters() 166 private static String format(double d, NumberFormat nf) { in format() argument 167 return nf.format(d).replace('\u00a0', ' '); in format()
|
D | NumberFormatTest.java | 1313 NumberFormat nf = NumberFormat.getCurrencyInstance(locs[i]); in TestCurrencyPatterns() local 1316 int min = nf.getMinimumFractionDigits(); in TestCurrencyPatterns() 1317 int max = nf.getMaximumFractionDigits(); in TestCurrencyPatterns() 1319 String a = nf.format(1.0); in TestCurrencyPatterns() 1320 String b = nf.format(1.125); in TestCurrencyPatterns() 1328 if (nf instanceof DecimalFormat) { in TestCurrencyPatterns() 1329 Currency curr = ((DecimalFormat) nf).getCurrency(); in TestCurrencyPatterns() 1332 String a = nf.format(1.0); in TestCurrencyPatterns() 1365 NumberFormat nf = NumberFormat.getInstance(); in TestRounding487() local 1366 roundingTest(nf, 0.00159999, 4, "0.0016"); in TestRounding487() [all …]
|
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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | NumberFormatRegressionTest.java | 43 NumberFormat nf = NumberFormat.getInstance(Locale.US); in Test4161100() local 44 nf.setMinimumFractionDigits(1); in Test4161100() 45 nf.setMaximumFractionDigits(1); in Test4161100() 47 String s = nf.format(a); in Test4161100() 49 ((DecimalFormat) nf).toPattern() + " = " + s); in Test4161100() 72 NumberFormat nf = NumberFormat.getInstance(loc); in TestJ691() local 81 df.setNumberFormat(nf); in TestJ691() 323 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { in checkNBSPPatternRtNum() argument 324 String myString = nf.format(myNumber); in checkNBSPPatternRtNum() 328 aNumber = nf.parse(myString).doubleValue(); in checkNBSPPatternRtNum() [all …]
|
D | NumberRegressionTests.java | 225 NumberFormat nf = NumberFormat.getInstance(); in Test4071492() local 226 nf.setMaximumFractionDigits(4); in Test4071492() 227 String out = nf.format(x); in Test4071492() 241 NumberFormat nf = NumberFormat.getInstance(Locale.FRANCE); in Test4086575() local 242 logln("nf toPattern1: " + ((DecimalFormat)nf).toPattern()); in Test4086575() 243 logln("nf toLocPattern1: " + ((DecimalFormat)nf).toLocalizedPattern()); in Test4086575() 247 ((DecimalFormat)nf).applyLocalizedPattern("###,00;(###,00)"); in Test4086575() 248 logln("nf toPattern2: " + ((DecimalFormat)nf).toPattern()); in Test4086575() 249 logln("nf toLocPattern2: " + ((DecimalFormat)nf).toLocalizedPattern()); in Test4086575() 251 logln("nf: " + nf.format(1234)); // 1234,00 in Test4086575() [all …]
|
D | NumberFormatSpecificationTest.java | 40 NumberFormat nf = nfWithPattern("#,##0.##"); in TestNfSetters() local 41 nf.setMaximumIntegerDigits(5); in TestNfSetters() 42 nf.setMinimumIntegerDigits(4); in TestNfSetters() 43 assertEquals("", "34 567,89", format(1234567.89, nf)); in TestNfSetters() 44 assertEquals("", "0 034,56", format(34.56, nf)); in TestNfSetters() 165 private static String format(double d, NumberFormat nf) { in format() argument 166 return nf.format(d).replace('\u00a0', ' '); in format()
|
D | NumberFormatTest.java | 1312 NumberFormat nf = NumberFormat.getCurrencyInstance(locs[i]); in TestCurrencyPatterns() local 1315 int min = nf.getMinimumFractionDigits(); in TestCurrencyPatterns() 1316 int max = nf.getMaximumFractionDigits(); in TestCurrencyPatterns() 1318 String a = nf.format(1.0); in TestCurrencyPatterns() 1319 String b = nf.format(1.125); in TestCurrencyPatterns() 1327 if (nf instanceof DecimalFormat) { in TestCurrencyPatterns() 1328 Currency curr = ((DecimalFormat) nf).getCurrency(); in TestCurrencyPatterns() 1331 String a = nf.format(1.0); in TestCurrencyPatterns() 1364 NumberFormat nf = NumberFormat.getInstance(); in TestRounding487() local 1365 roundingTest(nf, 0.00159999, 4, "0.0016"); in TestRounding487() [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 | 48 NumberFormat nf; in checkGetInstance() local 50 nf = getJDKInstance(type, loc, method); in checkGetInstance() 52 boolean isIcuImpl = (nf instanceof com.ibm.icu.impl.jdkadapter.DecimalFormatICU) in checkGetInstance() 53 || (nf instanceof com.ibm.icu.impl.jdkadapter.NumberFormatICU); in checkGetInstance() 66 if (!nf.equals(nfIcu)) { in checkGetInstance() 80 NumberFormat nf = null; in getJDKInstance() local 85 nf = NumberFormat.getInstance(loc); in getJDKInstance() 89 nf = NumberFormat.getNumberInstance(loc); in getJDKInstance() 93 nf = NumberFormat.getIntegerInstance(loc); in getJDKInstance() 97 nf = NumberFormat.getPercentInstance(loc); in getJDKInstance() [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() 483 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); in unum_getAttribute() local 486 return nf->isLenient(); in unum_getAttribute() 490 const DecimalFormat* df = dynamic_cast<const DecimalFormat*>(nf); in unum_getAttribute() 504 NumberFormat* nf = reinterpret_cast<NumberFormat*>(fmt); in unum_setAttribute() local 508 return nf->setLenient(newValue != 0); in unum_setAttribute() 511 DecimalFormat* df = dynamic_cast<DecimalFormat*>(nf); in unum_setAttribute() 522 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); in unum_getDoubleAttribute() local [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 | 588 NumberFormat *nf = NumberFormat::createInstance("de", errorCode); in TestCompilerRTTI() local 593 if (dynamic_cast<DecimalFormat *>(nf) == NULL || dynamic_cast<ChoiceFormat *>(nf) != NULL) { in TestCompilerRTTI() 597 if (&typeid(*nf) == NULL || typeid(*nf) == typeid(UObject) || typeid(*nf) == typeid(Format) || in TestCompilerRTTI() 598 typeid(*nf) != typeid(DecimalFormat) || typeid(*nf) == typeid(ChoiceFormat) || in TestCompilerRTTI() 599 typeid(*nf) == typeid(emptySet) in TestCompilerRTTI() 603 delete nf; in TestCompilerRTTI()
|
/external/ltp/testcases/kernel/syscalls/fork/ |
D | fork09.c | 66 int pid, status, nf; in main() local 153 for (nf = first; nf < nfiles; nf++) { in main() 154 fclose(fildeses[nf]); in main() 155 sprintf(filname, "file%d.%d", nf, mypid); in main()
|
/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/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | Timer.java | 61 return nf; in getNumberFormat() 69 return nf.format(getDuration()) + "\tns"; in toString() 75 return nf.format(getDuration()/iterations) + "\tns"; in toString() 79 …return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D… in toString() 82 private DecimalFormat nf = (DecimalFormat) NumberFormat.getNumberInstance(ULocale.ENGLISH); field in Timer
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/ |
D | GlobalizationPreferencesTest.java | 107 NumberFormat nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestDefault() local 108 ULocale nfLocale = nf.getLocale(ULocale.VALID_LOCALE); in TestDefault() 1388 NumberFormat nf; in TestNumberFormat() local 1395 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat() 1396 numStr = nf.format(num); in TestNumberFormat() 1407 nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestNumberFormat() 1408 numStr = nf.format(num); in TestNumberFormat() 1415 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat() 1416 numStr = nf.format(num); in TestNumberFormat() 1423 nf = gp.getNumberFormat(GlobalizationPreferences.NF_PERCENT); in TestNumberFormat() [all …]
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
D | NumberFormatProviderICU.java | 77 NumberFormat nf = null; in getInstance() local 79 nf = DecimalFormatICU.wrap((com.ibm.icu.text.DecimalFormat)icuNfmt); in getInstance() 81 nf = NumberFormatICU.wrap(icuNfmt); in getInstance() 84 return nf; in getInstance()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
D | AbstractFormat.java | 92 final NumberFormat nf = NumberFormat.getNumberInstance(locale); in getDefaultNumberFormat() local 93 nf.setMaximumFractionDigits(0); in getDefaultNumberFormat() 94 nf.setParseIntegerOnly(true); in getDefaultNumberFormat() 95 return nf; in getDefaultNumberFormat()
|
/external/llvm/test/Transforms/LoopVectorize/ |
D | multi-use-reduction-bug.ll | 18 %nf = alloca i32, align 4 22 %nf.promoted = load i32, i32* %nf, align 4 27 %inc6 = phi i32 [ %nf.promoted, %entry ], [ undef, %for.body ]
|