Home
last modified time | relevance | path

Searched refs:listFormatter (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DListFormatterTest.java150 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestFromList() local
155 assertEquals("list", "A, B, and C", listFormatter.format(list)); in TestFromList()
160 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestCreatePatternForNumItems() local
164 listFormatter.getPatternForNumItems(3)); in TestCreatePatternForNumItems()
169 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestGetPatternForNumItemsException() local
171 listFormatter.getPatternForNumItems(0); in TestGetPatternForNumItemsException()
186 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in Test9946() local
187 assertEquals("bug 9946", "{0}, {1}, and {2}", listFormatter.format("{0}", "{1}", "{2}")); in Test9946()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DListFormatterTest.java153 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestFromList() local
158 assertEquals("list", "A, B, and C", listFormatter.format(list)); in TestFromList()
163 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestCreatePatternForNumItems() local
167 listFormatter.getPatternForNumItems(3)); in TestCreatePatternForNumItems()
172 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestGetPatternForNumItemsException() local
174 listFormatter.getPatternForNumItems(0); in TestGetPatternForNumItemsException()
189 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in Test9946() local
190 assertEquals("bug 9946", "{0}, {1}, and {2}", listFormatter.format("{0}", "{1}", "{2}")); in Test9946()
/external/cldr/tools/java/org/unicode/cldr/util/
DXListFormatter.java56 private ListFormatter listFormatter; field in XListFormatter
64 listFormatter = new ListFormatter(doublePattern, startPattern, middlePattern, endPattern); in XListFormatter()
68 return listFormatter.format(items); in format()
72 return listFormatter.format(items); in format()
80 return listFormatter.format(source); in formatCodePoints()
/external/icu/icu4c/source/i18n/
Dmeasfmt.cpp622 listFormatter(NULL) { in MeasureFormat()
635 listFormatter(NULL) { in MeasureFormat()
645 listFormatter(NULL) { in MeasureFormat()
649 if (other.listFormatter != NULL) { in MeasureFormat()
650 listFormatter = new ListFormatter(*other.listFormatter); in MeasureFormat()
663 delete listFormatter; in operator =()
664 if (other.listFormatter != NULL) { in operator =()
665 listFormatter = new ListFormatter(*other.listFormatter); in operator =()
667 listFormatter = NULL; in operator =()
677 listFormatter(NULL) { in MeasureFormat()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMeasureFormat.java451 ListFormatter listFormatter = ListFormatter.getInstance(getLocale(), in formatMeasuresInternal() local
454 formatMeasuresSlowTrack(listFormatter, appendTo, fieldPosition, measures); in formatMeasuresInternal()
466 FormattedListBuilder builder = listFormatter.format(Arrays.asList(results), -1); in formatMeasuresInternal()
786 ListFormatter listFormatter, in formatMeasuresSlowTrack() argument
812 ListFormatter.FormattedListBuilder builder = listFormatter.format(Arrays.asList(results), in formatMeasuresSlowTrack()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMeasureFormat.java425 ListFormatter listFormatter = ListFormatter.getInstance(getLocale(), in formatMeasuresInternal() local
428 formatMeasuresSlowTrack(listFormatter, appendTo, fieldPosition, measures); in formatMeasuresInternal()
440 FormattedListBuilder builder = listFormatter.format(Arrays.asList(results), -1); in formatMeasuresInternal()
745 ListFormatter listFormatter, in formatMeasuresSlowTrack() argument
771 ListFormatter.FormattedListBuilder builder = listFormatter.format(Arrays.asList(results), in formatMeasuresSlowTrack()
/external/icu/icu4c/source/i18n/unicode/
Dmeasfmt.h356 ListFormatter *listFormatter; variable
/external/cldr/tools/java/org/unicode/cldr/test/
DExampleGenerator.java797 …ListFormatter listFormatter = new ListFormatter(doublePattern, startPattern, middlePattern, endPat… in longListPatternExample() local
798 String example = listFormatter.format(items); in longListPatternExample()