Home
last modified time | relevance | path

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

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DListFormatterTest.java19 import com.ibm.icu.text.ListFormatter;
35ListFormatter formatter = new ListFormatter("{0} and {1}", "{0}; {1}", "{0}, {1}", "{0}, and {1}"); in TestBasic()
50 checkData(ListFormatter.getInstance(ULocale.ENGLISH), EnglishTestData); in TestEnglish()
51 checkData(ListFormatter.getInstance(ULocale.US), EnglishTestData); in TestEnglish()
53 checkData(ListFormatter.getInstance(Locale.ENGLISH), EnglishTestData); in TestEnglish()
55 checkData(ListFormatter.getInstance(), EnglishTestData); in TestEnglish()
73 checkData(ListFormatter.getInstance(new ULocale("en_GB")), EnglishGBTestData); in TestEnglishGB()
90 checkData(ListFormatter.getInstance(new ULocale("zh_Hant_HK")), ChineseTradHKTestData); in TestChineseTradHK()
104 checkData(ListFormatter.getInstance(ULocale.JAPANESE), JapaneseTestData); in TestJapanese()
117ListFormatter formatter = new ListFormatter("{1} after {0}", "{1} after the first {0}", "{1} after… in TestPatternOutOfOrder()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DListFormatterTest.java20 import android.icu.text.ListFormatter;
38ListFormatter formatter = new ListFormatter("{0} and {1}", "{0}; {1}", "{0}, {1}", "{0}, and {1}"); in TestBasic()
53 checkData(ListFormatter.getInstance(ULocale.ENGLISH), EnglishTestData); in TestEnglish()
54 checkData(ListFormatter.getInstance(ULocale.US), EnglishTestData); in TestEnglish()
56 checkData(ListFormatter.getInstance(Locale.ENGLISH), EnglishTestData); in TestEnglish()
58 checkData(ListFormatter.getInstance(), EnglishTestData); in TestEnglish()
76 checkData(ListFormatter.getInstance(new ULocale("en_GB")), EnglishGBTestData); in TestEnglishGB()
93 checkData(ListFormatter.getInstance(new ULocale("zh_Hant_HK")), ChineseTradHKTestData); in TestChineseTradHK()
107 checkData(ListFormatter.getInstance(ULocale.JAPANESE), JapaneseTestData); in TestJapanese()
120ListFormatter formatter = new ListFormatter("{1} after {0}", "{1} after the first {0}", "{1} after… in TestPatternOutOfOrder()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dlistformatter.h71 class U_I18N_API ListFormatter : public UObject{
79 ListFormatter(const ListFormatter&);
85 ListFormatter& operator=(const ListFormatter& other);
95 static ListFormatter* createInstance(UErrorCode& errorCode);
106 static ListFormatter* createInstance(const Locale& locale, UErrorCode& errorCode);
119 …static ListFormatter* createInstance(const Locale& locale, const char* style, UErrorCode& errorCod…
127 virtual ~ListFormatter();
178 ListFormatter(const ListFormatData &data, UErrorCode &errorCode);
182 ListFormatter(const ListFormatInternal* listFormatterInternal);
195 ListFormatter();
Dmeasfmt.h86 class ListFormatter; variable
356 ListFormatter *listFormatter;
/external/icu/icu4c/source/i18n/
Dlistformatter.cpp87 ListFormatter::ListFormatter(const ListFormatter& other) : in ListFormatter() function in ListFormatter
95 ListFormatter& ListFormatter::operator=(const ListFormatter& other) { in operator =()
110 void ListFormatter::initializeHash(UErrorCode& errorCode) { in initializeHash()
126 const ListFormatInternal* ListFormatter::getListFormatInternal( in getListFormatInternal()
176 struct ListFormatter::ListPatternsSink : public ResourceSink {
239 ListFormatter::ListPatternsSink::~ListPatternsSink() {} in ~ListPatternsSink()
241 ListFormatInternal* ListFormatter::loadListFormatInternal( in loadListFormatInternal()
249 ListFormatter::ListPatternsSink sink; in loadListFormatInternal()
281 ListFormatter* ListFormatter::createInstance(UErrorCode& errorCode) { in createInstance()
286 ListFormatter* ListFormatter::createInstance(const Locale& locale, UErrorCode& errorCode) { in createInstance()
[all …]
Dulistformatter.cpp28 LocalPointer<ListFormatter> listfmt(ListFormatter::createInstance(Locale(locale), *status)); in ulistfmt_open()
39 delete (ListFormatter*)listfmt; in ulistfmt_close()
83 ((const ListFormatter*)listfmt)->format( ustrings, stringCount, res, *status ); in ulistfmt_format()
Dmeasfmt.cpp650 listFormatter = new ListFormatter(*other.listFormatter); in MeasureFormat()
665 listFormatter = new ListFormatter(*other.listFormatter); in operator =()
900 listFormatter = ListFormatter::createInstance( in initMeasureFormat()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DListFormatter.java34 final public class ListFormatter { class
115 public ListFormatter(String two, String start, String middle, String end) { in ListFormatter() method in ListFormatter
124 private ListFormatter(String two, String start, String middle, String end, ULocale locale) { in ListFormatter() method in ListFormatter
143 public static ListFormatter getInstance(ULocale locale) { in getInstance()
154 public static ListFormatter getInstance(Locale locale) { in getInstance()
168 public static ListFormatter getInstance(ULocale locale, Style style) { in getInstance()
177 public static ListFormatter getInstance() { in getInstance()
312 private final ICUCache<String, ListFormatter> cache =
313 new SimpleCache<String, ListFormatter>();
315 public ListFormatter get(ULocale locale, String style) { in get()
[all …]
DMeasureFormat.java45 import android.icu.text.ListFormatter.FormattedListBuilder;
148 WIDE(ListFormatter.Style.DURATION, UnitWidth.FULL_NAME, UnitWidth.FULL_NAME),
153 SHORT(ListFormatter.Style.DURATION_SHORT, UnitWidth.SHORT, UnitWidth.ISO_CODE),
158 NARROW(ListFormatter.Style.DURATION_NARROW, UnitWidth.NARROW, UnitWidth.SHORT),
165 NUMERIC(ListFormatter.Style.DURATION_NARROW, UnitWidth.NARROW, UnitWidth.SHORT),
175 DEFAULT_CURRENCY(ListFormatter.Style.DURATION, UnitWidth.FULL_NAME, UnitWidth.SHORT);
177 private final ListFormatter.Style listFormatterStyle;
191 … private FormatWidth(ListFormatter.Style style, UnitWidth unitWidth, UnitWidth currencyWidth) { in FormatWidth()
197 ListFormatter.Style getListFormatterStyle() { in getListFormatterStyle()
425 ListFormatter listFormatter = ListFormatter.getInstance(getLocale(), in formatMeasuresInternal()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DListFormatter.java34 final public class ListFormatter { class
114 public ListFormatter(String two, String start, String middle, String end) { in ListFormatter() method in ListFormatter
123 private ListFormatter(String two, String start, String middle, String end, ULocale locale) { in ListFormatter() method in ListFormatter
143 public static ListFormatter getInstance(ULocale locale) { in getInstance()
155 public static ListFormatter getInstance(Locale locale) { in getInstance()
169 public static ListFormatter getInstance(ULocale locale, Style style) { in getInstance()
179 public static ListFormatter getInstance() { in getInstance()
317 private final ICUCache<String, ListFormatter> cache =
318 new SimpleCache<String, ListFormatter>();
320 public ListFormatter get(ULocale locale, String style) { in get()
[all …]
DMeasureFormat.java44 import com.ibm.icu.text.ListFormatter.FormattedListBuilder;
158 WIDE(ListFormatter.Style.DURATION, UnitWidth.FULL_NAME, UnitWidth.FULL_NAME),
165 SHORT(ListFormatter.Style.DURATION_SHORT, UnitWidth.SHORT, UnitWidth.ISO_CODE),
172 NARROW(ListFormatter.Style.DURATION_NARROW, UnitWidth.NARROW, UnitWidth.SHORT),
181 NUMERIC(ListFormatter.Style.DURATION_NARROW, UnitWidth.NARROW, UnitWidth.SHORT),
191 DEFAULT_CURRENCY(ListFormatter.Style.DURATION, UnitWidth.FULL_NAME, UnitWidth.SHORT);
193 private final ListFormatter.Style listFormatterStyle;
207 … private FormatWidth(ListFormatter.Style style, UnitWidth unitWidth, UnitWidth currencyWidth) { in FormatWidth()
213 ListFormatter.Style getListFormatterStyle() { in getListFormatterStyle()
451 ListFormatter listFormatter = ListFormatter.getInstance(getLocale(), in formatMeasuresInternal()
[all …]
/external/icu/icu4c/source/test/intltest/
Dlistformattertest.cpp83 void ListFormatterTest::CheckFormatting(const ListFormatter* formatter, UnicodeString data[], int32… in CheckFormatting()
97 …LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(Locale(locale_string), errorCo… in CheckFourCases()
118 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(locale, errorCode)); in RecordFourCases()
172 LocalPointer<ListFormatter> formatter(ListFormatter::createInstance(Locale("en"), errorCode)); in Test9946()
221 LocalPointer<ListFormatter> formatter( in TestFieldPositionIteratorWontCrash()
222 ListFormatter::createInstance(Locale("en"), errorCode)); in TestFieldPositionIteratorWontCrash()
244 ListFormatter* formatter, in RunTestFieldPositionIteratorWithFormatter()
268 LocalPointer<ListFormatter> formatter( in RunTestFieldPositionIteratorWithNItemsPatternShift()
269 ListFormatter::createInstance(Locale("ur", "IN"), "unit-narrow", errorCode)); in RunTestFieldPositionIteratorWithNItemsPatternShift()
286 LocalPointer<ListFormatter> formatter( in RunTestFieldPositionIteratorWithNItems()
[all …]
Dlistformattertest.h57 const ListFormatter* formatter,
83 ListFormatter* formatter,
/external/v8/src/objects/
Djs-list-format.cc191 icu::ListFormatter* formatter = icu::ListFormatter::createInstance( in InitializeListFormat()
199 Handle<Managed<icu::ListFormatter>> managed_formatter = in InitializeListFormat()
200 Managed<icu::ListFormatter>::FromRawPtr(isolate, 0, formatter); in InitializeListFormat()
220 icu::ListFormatter* JSListFormat::UnpackFormatter(Isolate* isolate, in UnpackFormatter()
222 return Managed<icu::ListFormatter>::cast(holder->formatter())->raw(); in UnpackFormatter()
355 icu::ListFormatter* formatter = in FormatListCommon()
Djs-list-format.h21 class ListFormatter; variable
39 static icu::ListFormatter* UnpackFormatter(
/external/cldr/tools/java/org/unicode/cldr/util/
DXListFormatter.java11 import com.ibm.icu.text.ListFormatter;
56 private ListFormatter listFormatter;
64 listFormatter = new ListFormatter(doublePattern, startPattern, middlePattern, endPattern); in XListFormatter()
/external/cldr/tools/java/org/unicode/cldr/test/
DCheckCLDR.java47 import com.ibm.icu.text.ListFormatter;
396 return ListFormatter.getInstance().format(allkeys); in getValidKeys()
DExampleGenerator.java56 import com.ibm.icu.text.ListFormatter;
797ListFormatter listFormatter = new ListFormatter(doublePattern, startPattern, middlePattern, endPat… in longListPatternExample()
/external/icu/icu4j/
Dcoverage-exclusion.txt816 com/ibm/icu/text/ListFormatter$Style#valueOf:(Ljava/lang/String;)Lcom/ibm/icu/text/ListFormatter$St…
817 com/ibm/icu/text/ListFormatter$Style#values:()[Lcom/ibm/icu/text/ListFormatter$Style;
/external/icu/icu4j/tools/build/
Dicu4j55.api3.gz
Dicu4j56.api3.gz12;ICU4J 56.1;; 2ST@3.6;PB;NS;NF;NS; ...
Dicu4j57.api3.gz
Dicu4j54.api3.gz
Dicu4j59.api3.gz
Dicu4j58.api3.gz

12