Home
last modified time | relevance | path

Searched refs:decFmt (Results 1 – 22 of 22) sorted by relevance

/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dquantityformatter.cpp152 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in selectPlural() local
153 if (decFmt != NULL) { in selectPlural()
155 decFmt->formatToDecimalQuantity(number, dq, status); in selectPlural()
160 decFmt->format(number, formattedNumber, pos, status); in selectPlural()
Dupluralrules.cpp40 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in select() local
41 if (decFmt != NULL) { in select()
43 decFmt->formatToDecimalQuantity(obj, dq, status); in select()
Dplurfmt.cpp278 auto *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local
279 if(decFmt != nullptr) { in format()
280 decFmt->toNumberFormatter().formatImpl(&data, status); // mutates &data in format()
Dmsgfmt.cpp1972 auto* decFmt = dynamic_cast<const DecimalFormat *>(context.formatter); in select() local
1973 if(decFmt != NULL) { in select()
1975 decFmt->formatToDecimalQuantity(context.number, dq, ec); in select()
/third_party/skia/third_party/externals/icu/source/i18n/
Dquantityformatter.cpp154 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in selectPlural() local
155 if (decFmt != NULL) { in selectPlural()
157 decFmt->formatToDecimalQuantity(number, dq, status); in selectPlural()
162 decFmt->format(number, formattedNumber, pos, status); in selectPlural()
Dupluralrules.cpp43 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in select() local
44 if (decFmt != NULL) { in select()
46 decFmt->formatToDecimalQuantity(obj, dq, status); in select()
Dplurfmt.cpp278 auto *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local
279 if(decFmt != nullptr) { in format()
280 const number::LocalizedNumberFormatter* lnf = decFmt->toNumberFormatter(status); in format()
Dmsgfmt.cpp1984 auto* decFmt = dynamic_cast<const DecimalFormat *>(context.formatter); in select() local
1985 if(decFmt != NULL) { in select()
1987 decFmt->formatToDecimalQuantity(context.number, dq, ec); in select()
/third_party/icu/icu4c/source/i18n/
Dquantityformatter.cpp154 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in selectPlural() local
155 if (decFmt != NULL) { in selectPlural()
157 decFmt->formatToDecimalQuantity(number, dq, status); in selectPlural()
162 decFmt->format(number, formattedNumber, pos, status); in selectPlural()
Dupluralrules.cpp43 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in select() local
44 if (decFmt != NULL) { in select()
46 decFmt->formatToDecimalQuantity(obj, dq, status); in select()
Dplurfmt.cpp278 auto *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local
279 if(decFmt != nullptr) { in format()
280 const number::LocalizedNumberFormatter* lnf = decFmt->toNumberFormatter(status); in format()
Dmsgfmt.cpp1984 auto* decFmt = dynamic_cast<const DecimalFormat *>(context.formatter); in select() local
1985 if(decFmt != NULL) { in select()
1987 decFmt->formatToDecimalQuantity(context.number, dq, ec); in select()
/third_party/node/deps/icu-small/source/i18n/
Dquantityformatter.cpp154 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in selectPlural() local
155 if (decFmt != NULL) { in selectPlural()
157 decFmt->formatToDecimalQuantity(number, dq, status); in selectPlural()
162 decFmt->format(number, formattedNumber, pos, status); in selectPlural()
Dupluralrules.cpp43 const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt); in select() local
44 if (decFmt != NULL) { in select()
46 decFmt->formatToDecimalQuantity(obj, dq, status); in select()
Dplurfmt.cpp278 auto *decFmt = dynamic_cast<DecimalFormat *>(numberFormat); in format() local
279 if(decFmt != nullptr) { in format()
280 const number::LocalizedNumberFormatter* lnf = decFmt->toNumberFormatter(status); in format()
Dmsgfmt.cpp1984 auto* decFmt = dynamic_cast<const DecimalFormat *>(context.formatter); in select() local
1985 if(decFmt != NULL) { in select()
1987 decFmt->formatToDecimalQuantity(context.number, dq, ec); in select()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DRbnfLenientScannerTest.java210 NumberFormat decFmt = NumberFormat.getInstance(Locale.US); in doLenientParseTest() local
216 String actualNumber = decFmt.format(formatter.parse(words)); in doLenientParseTest()
DRbnfTest.java1179 NumberFormat decFmt = new DecimalFormat("#,###.################"); in doTest() local
1187 Number num = decFmt.parse(number); in doTest()
1196 String actualNumber = decFmt.format(formatter in doTest()
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DRbnfLenientScannerTest.java207 NumberFormat decFmt = NumberFormat.getInstance(Locale.US); in doLenientParseTest() local
213 String actualNumber = decFmt.format(formatter.parse(words)); in doLenientParseTest()
/third_party/icu/icu4c/source/test/intltest/
Ditrbnf.cpp2365 DecimalFormat decFmt("#,###.################", dfs, status); in doTest() local
2376 decFmt.parse(escapedNumString, expectedNumber, status); in doTest()
2386 decFmt.format(expectedNumber, msg, status); in doTest()
2393 decFmt.format(expectedNumber, msg, status); in doTest()
2419 decFmt.format(expectedNumber, msg, status); in doTest()
2421 decFmt.format(parsedNumber, msg, status); in doTest()
2438 NumberFormat* decFmt = NumberFormat::createInstance(Locale::getUS(), status); in doLenientParseTest() local
2461 decFmt->parse(asciiUSNumberString, expectedNumber, status); in doLenientParseTest()
2470 decFmt->format(actualNumber, actualNumberString, status); in doLenientParseTest()
2471 decFmt->format(expectedNumber, expectedNumberString, status); in doLenientParseTest()
[all …]
Dnumfmtst.cpp6704 DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(status); in TestFieldPositionIterator() local
6714 decFmt->format(num, str1, &iter1, status); in TestFieldPositionIterator()
6716 decFmt->format(num, str2, &iter2, status); in TestFieldPositionIterator()
6725 decFmt->format(num, str2, NULL, status); in TestFieldPositionIterator()
6728 delete decFmt; in TestFieldPositionIterator()
6734 …DecimalFormat *decFmt = (DecimalFormat *) NumberFormat::createInstance(locale, UNUM_CURRENCY, stat… in TestFormatAttributes() local
6750 decFmt->format(val, result, &posIter, status); in TestFormatAttributes()
6756 decFmt->format(val, result, fp); in TestFormatAttributes()
6762 decFmt->format(val, result, fp); in TestFormatAttributes()
6765 delete decFmt; in TestFormatAttributes()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java1241 NumberFormat decFmt = createDecimalFormatter(); in doTest() local
1249 Number num = decFmt.parse(number); in doTest()
1258 String actualNumber = decFmt.format(formatter in doTest()
1276 NumberFormat decFmt = createDecimalFormatter(); in doParsingTest() local
1284 Number expectedNumber = decFmt.parse(testData[i][1]); in doParsingTest()