Home
last modified time | relevance | path

Searched refs:lnf (Results 1 – 20 of 20) sorted by relevance

/third_party/icu/icu4c/source/test/intltest/
Dnumbertest_range.cpp682 LocalizedNumberFormatter lnf = unf.locale(locale); in testPlurals() local
685 …assertEquals(Int64ToUnicodeString(1), u"1 britanski funt", lnf.formatDouble(1, status).toString(st… in testPlurals()
686 …assertEquals(Int64ToUnicodeString(2), u"2 britanska funta", lnf.formatDouble(2, status).toString(s… in testPlurals()
687 …assertEquals(Int64ToUnicodeString(3), u"3 britanski funti", lnf.formatDouble(3, status).toString(s… in testPlurals()
688 …assertEquals(Int64ToUnicodeString(5), u"5 britanskih funtov", lnf.formatDouble(5, status).toString… in testPlurals()
835 LocalizedNumberRangeFormatter lnf = NumberRangeFormatter::withLocale("en"); in toObject() local
836 LocalPointer<LocalizedNumberRangeFormatter> lnf2(lnf.clone()); in toObject()
844 LocalPointer<LocalizedNumberRangeFormatter> lnf( in toObject() local
846 assertFalse("should create successfully, rvalue reference", lnf.isNull()); in toObject()
848 lnf->formatFormattableRange(5, 7, status).toString(status)); in toObject()
[all …]
Dnumbertest_permutation.cpp135 auto lnf = NumberFormatter::forSkeleton(skeleton, status) in testPermutations() local
140 lnf.formatDouble(input, status).toTempString(status))); in testPermutations()
Dnumbertest_api.cpp1208 LocalizedNumberFormatter lnf = NumberFormatter::with() in unitArbitraryMeasureUnits() local
1212 lnf.operator=(lnf); // self-assignment should be a no-op in unitArbitraryMeasureUnits()
1213 lnf.formatInt(1, status); in unitArbitraryMeasureUnits()
1242 lnf = NumberFormatter::with() in unitArbitraryMeasureUnits()
1246 lnf.formatInt(1, status); in unitArbitraryMeasureUnits()
4980 LocalizedNumberFormatter lnf = NumberFormatter::withLocale("fr") in toFormat() local
4982 LocalPointer<Format> format(lnf.toFormat(status), status); in toFormat()
4991 lnf.toSkeleton(status), in toFormat()
4997 lnf.formatImpl(&result, status); in toFormat()
5011 LocalizedNumberFormatter lnf = NumberFormatter::withLocale(Locale::getEnglish()).precision( in errors() local
[all …]
Ddcfmapts.cpp1372 const number::LocalizedNumberFormatter* lnf = df->toNumberFormatter(status); in testInvalidObject() local
1374 (int64_t) nullptr, (int64_t) lnf); in testInvalidObject()
1377 lnf->formatInt(1, status); in testInvalidObject()
1378 lnf->formatDouble(1.0, status); in testInvalidObject()
1379 lnf->formatDecimal("1", status); in testInvalidObject()
1380 lnf->toFormat(status); in testInvalidObject()
1381 lnf->toSkeleton(status); in testInvalidObject()
1382 lnf->copyErrorTo(status); in testInvalidObject()
Dnumfmtst.cpp8927 LocalizedNumberFormatter lnf = NumberFormatter::withLocale("en"); in TestFastFormatInt32() local
8961 UnicodeString expected = lnf.formatDouble(num, status).toString(status); in TestFastFormatInt32()
/third_party/skia/third_party/externals/icu/source/i18n/
Dmeasfmt.cpp511 if (auto* lnf = df->toNumberFormatter(status)) { in formatMeasurePerUnit() local
513 lnf->unit(measure.getUnit()) in formatMeasurePerUnit()
711 if (auto* lnf = df->toNumberFormatter(status)) { in formatMeasure() local
713 lnf->unit(amtUnit) in formatMeasure()
764 if (auto* lnf = numberFormatter->toNumberFormatter(status)) { in formatNumeric() local
765 numberFormatter2 = lnf->integerWidth(number::IntegerWidth::zeroFillTo(2)); in formatNumeric()
Dquantityformatter.cpp191 const number::LocalizedNumberFormatter* lnf = df->toNumberFormatter(status); in formatAndSelect() local
195 lnf->formatImpl(&fn, status); in formatAndSelect()
Dplurfmt.cpp280 const number::LocalizedNumberFormatter* lnf = decFmt->toNumberFormatter(status); in format() local
284 lnf->formatImpl(&data, status); // mutates &data in format()
/third_party/icu/icu4c/source/i18n/
Dmeasfmt.cpp511 if (auto* lnf = df->toNumberFormatter(status)) { in formatMeasurePerUnit() local
513 lnf->unit(measure.getUnit()) in formatMeasurePerUnit()
711 if (auto* lnf = df->toNumberFormatter(status)) { in formatMeasure() local
713 lnf->unit(amtUnit) in formatMeasure()
764 if (auto* lnf = numberFormatter->toNumberFormatter(status)) { in formatNumeric() local
765 numberFormatter2 = lnf->integerWidth(number::IntegerWidth::zeroFillTo(2)); in formatNumeric()
Dquantityformatter.cpp191 const number::LocalizedNumberFormatter* lnf = df->toNumberFormatter(status); in formatAndSelect() local
195 lnf->formatImpl(&fn, status); in formatAndSelect()
Dplurfmt.cpp280 const number::LocalizedNumberFormatter* lnf = decFmt->toNumberFormatter(status); in format() local
284 lnf->formatImpl(&data, status); // mutates &data in format()
/third_party/node/deps/icu-small/source/i18n/
Dmeasfmt.cpp511 if (auto* lnf = df->toNumberFormatter(status)) { in formatMeasurePerUnit() local
513 lnf->unit(measure.getUnit()) in formatMeasurePerUnit()
711 if (auto* lnf = df->toNumberFormatter(status)) { in formatMeasure() local
713 lnf->unit(amtUnit) in formatMeasure()
764 if (auto* lnf = numberFormatter->toNumberFormatter(status)) { in formatNumeric() local
765 numberFormatter2 = lnf->integerWidth(number::IntegerWidth::zeroFillTo(2)); in formatNumeric()
Dquantityformatter.cpp191 const number::LocalizedNumberFormatter* lnf = df->toNumberFormatter(status); in formatAndSelect() local
195 lnf->formatImpl(&fn, status); in formatAndSelect()
Dplurfmt.cpp280 const number::LocalizedNumberFormatter* lnf = decFmt->toNumberFormatter(status); in format() local
284 lnf->formatImpl(&data, status); // mutates &data in format()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberRangeFormatterTest.java684 LocalizedNumberFormatter lnf = unf.locale(locale); in testPlurals() local
687 assertEquals(Integer.toString(1), "1 britanski funt", lnf.format(1).toString()); in testPlurals()
688 assertEquals(Integer.toString(2), "2 britanska funta", lnf.format(2).toString()); in testPlurals()
689 assertEquals(Integer.toString(3), "3 britanski funti", lnf.format(3).toString()); in testPlurals()
690 assertEquals(Integer.toString(5), "5 britanskih funtov", lnf.format(5).toString()); in testPlurals()
DNumberPermutationTest.java132 LocalizedNumberFormatter lnf = in testPermutations() local
136 resultLines.add(" " + lnf.format(input).toString()); in testPermutations()
DNumberFormatterApiTest.java2962 LocalizedNumberFormatter lnf = NumberFormatter.withLocale(ULocale.FRENCH) in toFormat() local
2964 Format format = lnf.toFormat(); in toFormat()
2972 lnf, in toFormat()
2975 lnf.format(514.23).toCharacterIterator().getAttributes(), in toFormat()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberRangeFormatterTest.java700 LocalizedNumberFormatter lnf = unf.locale(locale); in testPlurals() local
703 assertEquals(Integer.toString(1), "1 britanski funt", lnf.format(1).toString()); in testPlurals()
704 assertEquals(Integer.toString(2), "2 britanska funta", lnf.format(2).toString()); in testPlurals()
705 assertEquals(Integer.toString(3), "3 britanski funti", lnf.format(3).toString()); in testPlurals()
706 assertEquals(Integer.toString(5), "5 britanskih funtov", lnf.format(5).toString()); in testPlurals()
DNumberPermutationTest.java129 LocalizedNumberFormatter lnf = in testPermutations() local
133 resultLines.add(" " + lnf.format(input).toString()); in testPermutations()
DNumberFormatterApiTest.java1130 LocalizedNumberFormatter lnf = NumberFormatter.with() in unitArbitraryMeasureUnits() local
1135 lnf.format(1); in unitArbitraryMeasureUnits()
1136 fail("Expected failure for pow4-mile, got: " + lnf.format(1) + "."); in unitArbitraryMeasureUnits()
1161 lnf = NumberFormatter.with() in unitArbitraryMeasureUnits()
1166 lnf.format(1); in unitArbitraryMeasureUnits()
1167 … fail("Expected failure for kilowatt-hour-per-100-kilometer, got: " + lnf.format(1) + "."); in unitArbitraryMeasureUnits()
4892 LocalizedNumberFormatter lnf = NumberFormatter.withLocale(ULocale.FRENCH) in toFormat() local
4894 Format format = lnf.toFormat(); in toFormat()
4902 lnf, in toFormat()
4905 lnf.format(514.23).toCharacterIterator().getAttributes(), in toFormat()