Home
last modified time | relevance | path

Searched refs:unf (Results 1 – 11 of 11) sorted by relevance

/third_party/icu/docs/
DGemfile.lock244 unf (~> 0.1.4)
252 unf (0.1.4)
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java2112 public void runTest(UnlocalizedNumberFormatter unf, String skeleton) { in runTest() argument
2116 unf = unf.unit(mu).unitDisplayCase(""); in runTest()
2119 unf = unf.unit(mu).unitDisplayCase(this.unitDisplayCase); in runTest()
2126 … skel, skel, unf, new ULocale(this.locale), this.value, this.expected); in runTest()
2132 UnlocalizedNumberFormatter unf; in unitInflections() local
2138 unf = NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME); in unitInflections()
2149 t.runTest(unf, skeleton); in unitInflections()
2154 unf = NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME); in unitInflections()
2244 t.runTest(unf, skeleton); in unitInflections()
2249 unf = NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME); in unitInflections()
[all …]
DNumberRangeFormatterTest.java696 UnlocalizedNumberFormatter unf = NumberFormatter.with() in testPlurals() local
700 LocalizedNumberFormatter lnf = unf.locale(locale); in testPlurals()
709 .numberFormatterBoth(unf) in testPlurals()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberRangeFormatterTest.java680 UnlocalizedNumberFormatter unf = NumberFormatter.with() in testPlurals() local
684 LocalizedNumberFormatter lnf = unf.locale(locale); in testPlurals()
693 .numberFormatterBoth(unf) in testPlurals()
/third_party/icu/icu4c/source/test/cintltst/
Dcnumtst.c3336 UNumberFormat* unf = unum_open(itemPtr->style, NULL, 0, itemPtr->locale, NULL, &status); in TestSetMaxFracAndRoundIncr() local
3342 unum_setAttribute(unf, UNUM_MIN_INTEGER_DIGITS, itemPtr->minInt); in TestSetMaxFracAndRoundIncr()
3343 unum_setAttribute(unf, UNUM_MIN_FRACTION_DIGITS, itemPtr->minFrac); in TestSetMaxFracAndRoundIncr()
3344 unum_setAttribute(unf, UNUM_MAX_FRACTION_DIGITS, itemPtr->maxFrac); in TestSetMaxFracAndRoundIncr()
3345 unum_setDoubleAttribute(unf, UNUM_ROUNDING_INCREMENT, itemPtr->roundIncr); in TestSetMaxFracAndRoundIncr()
3349 int32_t minInt = unum_getAttribute(unf, UNUM_MIN_INTEGER_DIGITS); in TestSetMaxFracAndRoundIncr()
3354 int32_t minFrac = unum_getAttribute(unf, UNUM_MIN_FRACTION_DIGITS); in TestSetMaxFracAndRoundIncr()
3360 int32_t maxFrac = unum_getAttribute(unf, UNUM_MAX_FRACTION_DIGITS); in TestSetMaxFracAndRoundIncr()
3367 double roundIncr = unum_getDoubleAttribute(unf, UNUM_ROUNDING_INCREMENT); in TestSetMaxFracAndRoundIncr()
3376 ulen = unum_toPattern(unf, FALSE, ubuf, kUBufMax, &status); in TestSetMaxFracAndRoundIncr()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dnumbertest_range.cpp678 UnlocalizedNumberFormatter unf = NumberFormatter::with() in testPlurals() local
682 LocalizedNumberFormatter lnf = unf.locale(locale); in testPlurals()
692 .numberFormatterBoth(unf) in testPlurals()
Dnumbertest_api.cpp2127 void NumberFormatterApiTest::runUnitInflectionsTestCases(UnlocalizedNumberFormatter unf, in runUnitInflectionsTestCases() argument
2143 unf = unf.unit(mu).unitDisplayCase(""); in runUnitInflectionsTestCases()
2146 unf = unf.unit(mu).unitDisplayCase(t.unitDisplayCase); in runUnitInflectionsTestCases()
2154 skel, skel, unf, Locale(t.locale), t.value, t.expected); in runUnitInflectionsTestCases()
2162 UnlocalizedNumberFormatter unf; in unitInflections() local
2167 unf = NumberFormatter::with().unitWidth(UNUM_UNIT_WIDTH_FULL_NAME); in unitInflections()
2177 … runUnitInflectionsTestCases(unf, skeleton, percentCases, UPRV_LENGTHOF(percentCases), status); in unitInflections()
2181 unf = NumberFormatter::with().unitWidth(UNUM_UNIT_WIDTH_FULL_NAME); in unitInflections()
2255 runUnitInflectionsTestCases(unf, skeleton, testCases, UPRV_LENGTHOF(testCases), status); in unitInflections()
2259 unf = NumberFormatter::with().unitWidth(UNUM_UNIT_WIDTH_FULL_NAME); in unitInflections()
[all …]
Dnumbertest.h185 void runUnitInflectionsTestCases(UnlocalizedNumberFormatter unf,
Dplurults.cpp1374 number::UnlocalizedNumberFormatter unf = number::NumberFormatter::with() in testSelectTrailingZeros() local
1401 number::FormattedNumber fn = unf.locale(locale).formatDouble(cas.number, status); in testSelectTrailingZeros()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DPluralRulesTest.java504 UnlocalizedNumberFormatter unf = NumberFormatter.with()
528 FormattedNumber fn = unf.locale(locale).format(number);
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java566 UnlocalizedNumberFormatter unf = NumberFormatter.with()
590 FormattedNumber fn = unf.locale(locale).format(number);