Home
last modified time | relevance | path

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

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DListFormatterTest.java13 import com.ibm.icu.text.ListFormatter;
31ListFormatter formatter = new ListFormatter("{0} and {1}", "{0}; {1}", "{0}, {1}", "{0}, and {1}"); in TestBasic()
45 checkData(ListFormatter.getInstance(ULocale.ENGLISH), EnglishTestData); in TestEnglish()
46 checkData(ListFormatter.getInstance(ULocale.US), EnglishTestData); in TestEnglish()
48 checkData(ListFormatter.getInstance(Locale.ENGLISH), EnglishTestData); in TestEnglish()
50 checkData(ListFormatter.getInstance(), EnglishTestData); in TestEnglish()
64 checkData(ListFormatter.getInstance(ULocale.JAPANESE), JapaneseTestData); in TestJapanese()
76ListFormatter formatter = new ListFormatter("{1} after {0}", "{1} after the first {0}", "{1} after… in TestPatternOutOfOrder()
91 checkData(ListFormatter.getInstance(ULocale.ROOT), RootTestData); in TestSpecial()
93 checkData(ListFormatter.getInstance(new ULocale("xxx")), EnglishTestData); in TestSpecial()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DListFormatterTest.java14 import android.icu.text.ListFormatter;
35ListFormatter formatter = new ListFormatter("{0} and {1}", "{0}; {1}", "{0}, {1}", "{0}, and {1}"); in TestBasic()
49 checkData(ListFormatter.getInstance(ULocale.ENGLISH), EnglishTestData); in TestEnglish()
50 checkData(ListFormatter.getInstance(ULocale.US), EnglishTestData); in TestEnglish()
52 checkData(ListFormatter.getInstance(Locale.ENGLISH), EnglishTestData); in TestEnglish()
54 checkData(ListFormatter.getInstance(), EnglishTestData); in TestEnglish()
68 checkData(ListFormatter.getInstance(ULocale.JAPANESE), JapaneseTestData); in TestJapanese()
80ListFormatter formatter = new ListFormatter("{1} after {0}", "{1} after the first {0}", "{1} after… in TestPatternOutOfOrder()
95 checkData(ListFormatter.getInstance(ULocale.ROOT), RootTestData); in TestSpecial()
97 checkData(ListFormatter.getInstance(new ULocale("xxx")), EnglishTestData); in TestSpecial()
[all …]
/external/icu/icu4c/source/common/unicode/
Dlistformatter.h62 class U_COMMON_API ListFormatter : public UObject{
70 ListFormatter(const ListFormatter&);
76 ListFormatter& operator=(const ListFormatter& other);
86 static ListFormatter* createInstance(UErrorCode& errorCode);
97 static ListFormatter* createInstance(const Locale& locale, UErrorCode& errorCode);
110 …static ListFormatter* createInstance(const Locale& locale, const char* style, UErrorCode& errorCod…
118 virtual ~ListFormatter();
148 ListFormatter(const ListFormatData &data, UErrorCode &errorCode);
152 ListFormatter(const ListFormatInternal* listFormatterInternal);
159 ListFormatter();
/external/icu/icu4c/source/common/
Dlistformatter.cpp90 ListFormatter::ListFormatter(const ListFormatter& other) : in ListFormatter() function in ListFormatter
98 ListFormatter& ListFormatter::operator=(const ListFormatter& other) { in operator =()
113 void ListFormatter::initializeHash(UErrorCode& errorCode) { in initializeHash()
129 const ListFormatInternal* ListFormatter::getListFormatInternal( in getListFormatInternal()
216 ListFormatter* ListFormatter::createInstance(UErrorCode& errorCode) { in createInstance()
221 ListFormatter* ListFormatter::createInstance(const Locale& locale, UErrorCode& errorCode) { in createInstance()
225 ListFormatter* ListFormatter::createInstance(const Locale& locale, const char *style, UErrorCode& e… in createInstance()
231 ListFormatter* p = new ListFormatter(listFormatInternal); in createInstance()
239 ListFormatter::ListFormatter(const ListFormatData& listFormatData, UErrorCode &errorCode) { in ListFormatter() function in ListFormatter
244 ListFormatter::ListFormatter(const ListFormatInternal* listFormatterInternal) : owned(NULL), data(l… in ListFormatter() function in ListFormatter
[all …]
Dulistformatter.cpp26 LocalPointer<ListFormatter> listfmt(ListFormatter::createInstance(Locale(locale), *status)); in ulistfmt_open()
37 delete (ListFormatter*)listfmt; in ulistfmt_close()
81 ((const ListFormatter*)listfmt)->format( ustrings, stringCount, res, *status ); in ulistfmt_format()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DListFormatter.java29 final public class ListFormatter { class
109 public ListFormatter(String two, String start, String middle, String end) { in ListFormatter() method in ListFormatter
118 private ListFormatter(String two, String start, String middle, String end, ULocale locale) { in ListFormatter() method in ListFormatter
138 public static ListFormatter getInstance(ULocale locale) { in getInstance()
150 public static ListFormatter getInstance(Locale locale) { in getInstance()
164 public static ListFormatter getInstance(ULocale locale, Style style) { in getInstance()
174 public static ListFormatter getInstance() { in getInstance()
304 private final ICUCache<String, ListFormatter> cache =
305 new SimpleCache<String, ListFormatter>();
307 public ListFormatter get(ULocale locale, String style) { in get()
[all …]
DMeasureFormat.java167 WIDE(ListFormatter.Style.DURATION, NumberFormat.PLURALCURRENCYSTYLE),
174 SHORT(ListFormatter.Style.DURATION_SHORT, NumberFormat.ISOCURRENCYSTYLE),
181 NARROW(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE),
190 NUMERIC(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE);
196 private final ListFormatter.Style listFormatterStyle;
199 private FormatWidth(ListFormatter.Style style, int currencyStyle) { in FormatWidth()
204 ListFormatter.Style getListFormatterStyle() { in getListFormatterStyle()
553 ListFormatter listFormatter = ListFormatter.getInstance( in formatMeasures()
1133 ListFormatter listFormatter, in formatMeasuresSlowTrack()
1155 ListFormatter.FormattedListBuilder builder = in formatMeasuresSlowTrack()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DListFormatter.java30 final public class ListFormatter { class
110 public ListFormatter(String two, String start, String middle, String end) { in ListFormatter() method in ListFormatter
119 private ListFormatter(String two, String start, String middle, String end, ULocale locale) { in ListFormatter() method in ListFormatter
138 public static ListFormatter getInstance(ULocale locale) { in getInstance()
149 public static ListFormatter getInstance(Locale locale) { in getInstance()
163 public static ListFormatter getInstance(ULocale locale, Style style) { in getInstance()
172 public static ListFormatter getInstance() { in getInstance()
299 private final ICUCache<String, ListFormatter> cache =
300 new SimpleCache<String, ListFormatter>();
302 public ListFormatter get(ULocale locale, String style) { in get()
[all …]
DMeasureFormat.java163 WIDE(ListFormatter.Style.DURATION, NumberFormat.PLURALCURRENCYSTYLE),
168 SHORT(ListFormatter.Style.DURATION_SHORT, NumberFormat.ISOCURRENCYSTYLE),
173 NARROW(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE),
180 NUMERIC(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE);
186 private final ListFormatter.Style listFormatterStyle;
189 private FormatWidth(ListFormatter.Style style, int currencyStyle) { in FormatWidth()
194 ListFormatter.Style getListFormatterStyle() { in getListFormatterStyle()
534 ListFormatter listFormatter = ListFormatter.getInstance( in formatMeasures()
1106 ListFormatter listFormatter, in formatMeasuresSlowTrack()
1128 ListFormatter.FormattedListBuilder builder = in formatMeasuresSlowTrack()
/external/icu/icu4c/source/test/intltest/
Dlistformattertest.cpp26 void ListFormatterTest::CheckFormatting(const ListFormatter* formatter, UnicodeString data[], int32… in CheckFormatting()
40 …LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(Locale(locale_string), errorCo… in CheckFourCases()
61 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(locale, errorCode)); in RecordFourCases()
115 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(Locale("en"), errorCode)); in Test9946()
203 ListFormatter formatter(data, errorCode); in TestOutOfOrderPatterns()
Dlistformattertest.h41 …void CheckFormatting(const ListFormatter* formatter, UnicodeString data[], int32_t data_size, cons…
/external/icu/icu4c/source/i18n/unicode/
Dmeasfmt.h82 class ListFormatter; variable
328 ListFormatter *listFormatter;
/external/icu/icu4c/source/i18n/
Dmeasfmt.cpp609 listFormatter = new ListFormatter(*other.listFormatter); in MeasureFormat()
622 listFormatter = new ListFormatter(*other.listFormatter); in operator =()
835 listFormatter = ListFormatter::createInstance( in initMeasureFormat()
/external/icu/icu4j/tools/build/
Dicu4j52.api3.gz12;ICU4J 52.1;; 2ST@3.6;PB;NS;NF;NS; ...
Dicu4j56.api3.gz
Dicu4j53.api3.gz12;ICU4J 53.1.0;; 2ST@3.6;PB;NS;NF; ...
Dicu4j55.api3.gz
Dicu4j54.api3.gz12;ICU4J 54.1.0;; 2ST@3.6;PB;NS;NF; ...
Dicu4j50.api3.gz12;ICU4J 50.1;; 2ST@3.6;PB;NS;NF;NS; ...
Dicu4j51.api3.gz