Home
last modified time | relevance | path

Searched refs:LocalePriorityList (Results 1 – 25 of 37) sorted by relevance

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocalePriorityListTest.java19 import com.ibm.icu.util.LocalePriorityList;
32 LocalePriorityList list = LocalePriorityList.add("af, en, fr;q=0.9").build(); in testLanguagePriorityList()
36 LocalePriorityList list2 = LocalePriorityList.add( in testLanguagePriorityList()
41 LocalePriorityList list3 = LocalePriorityList in testLanguagePriorityList()
49 LocalePriorityList list4 = LocalePriorityList.add(list).build(); in testLanguagePriorityList()
53 LocalePriorityList list5 = LocalePriorityList.add("af, fr;q=0.9, en").build(true); in testLanguagePriorityList()
59 LocalePriorityList list = LocalePriorityList.add("af, en, fr").build(); in testGetULocales()
67 LocalePriorityList list = LocalePriorityList.add("af, en, fr").build(); in testIterator()
82 LocalePriorityList.add("de;q=-0.1"); in testQValue()
88 LocalePriorityList.add("de;q=1.001"); in testQValue()
[all …]
DLocaleMatcherTest.java32 import com.ibm.icu.util.LocalePriorityList;
48 private LocaleMatcher newLocaleMatcher(LocalePriorityList build) { in newLocaleMatcher()
53 return new LocaleMatcher(LocalePriorityList.add(string).build()); in newLocaleMatcher()
110 LocalePriorityList lpl = LocalePriorityList.add("en, hi").build(); in testFallbacks()
118 LocalePriorityList. in testBasics()
149 LocalePriorityList list = LocalePriorityList.add(ULocale.JAPAN, ULocale.US).build(); in testBasics()
291 LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(null, 0).build()); in TestLocaleMatcherCoverage()
558 LocalePriorityList.add( in check2()
652 LocalePriorityList supported = LocalePriorityList.add("fr, de-CH, it").build(); in testDemotion()
653 LocalePriorityList desired = LocalePriorityList.add("fr-CH, de-CH, it").build(); in testDemotion()
[all …]
DULocaleTest.java49 import com.ibm.icu.util.LocalePriorityList;
1663 LocalePriorityList.add(ACCEPT_LANGUAGE_HTTP[i]).build().getULocales(); in TestAcceptLanguage2()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocalePriorityListTest.java20 import android.icu.util.LocalePriorityList;
35 LocalePriorityList list = LocalePriorityList.add("af, en, fr;q=0.9").build(); in testLanguagePriorityList()
39 LocalePriorityList list2 = LocalePriorityList.add( in testLanguagePriorityList()
44 LocalePriorityList list3 = LocalePriorityList in testLanguagePriorityList()
52 LocalePriorityList list4 = LocalePriorityList.add(list).build(); in testLanguagePriorityList()
56 LocalePriorityList list5 = LocalePriorityList.add("af, fr;q=0.9, en").build(true); in testLanguagePriorityList()
62 LocalePriorityList list = LocalePriorityList.add("af, en, fr").build(); in testGetULocales()
70 LocalePriorityList list = LocalePriorityList.add("af, en, fr").build(); in testIterator()
85 LocalePriorityList.add("de;q=-0.1"); in testQValue()
91 LocalePriorityList.add("de;q=1.001"); in testQValue()
[all …]
DLocaleMatcherTest.java33 import android.icu.util.LocalePriorityList;
51 private LocaleMatcher newLocaleMatcher(LocalePriorityList build) { in newLocaleMatcher()
56 return new LocaleMatcher(LocalePriorityList.add(string).build()); in newLocaleMatcher()
113 LocalePriorityList lpl = LocalePriorityList.add("en, hi").build(); in testFallbacks()
121 LocalePriorityList. in testBasics()
152 LocalePriorityList list = LocalePriorityList.add(ULocale.JAPAN, ULocale.US).build(); in testBasics()
294 LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(null, 0).build()); in TestLocaleMatcherCoverage()
561 LocalePriorityList.add( in check2()
655 LocalePriorityList supported = LocalePriorityList.add("fr, de-CH, it").build(); in testDemotion()
656 LocalePriorityList desired = LocalePriorityList.add("fr-CH, de-CH, it").build(); in testDemotion()
[all …]
DULocaleTest.java50 import android.icu.util.LocalePriorityList;
1666 LocalePriorityList.add(ACCEPT_LANGUAGE_HTTP[i]).build().getULocales(); in TestAcceptLanguage2()
/external/icu/icu4c/source/common/
Dlocaleprioritylist.h57 class U_COMMON_API LocalePriorityList : public UMemory {
74 friend class LocalePriorityList;
76 Iterator(const LocalePriorityList &list) : list(list), length(list.getLength()) {} in Iterator()
78 const LocalePriorityList &list;
84 LocalePriorityList(StringPiece s, UErrorCode &errorCode);
86 ~LocalePriorityList();
99 LocalePriorityList(const LocalePriorityList &) = delete;
100 LocalePriorityList &operator=(const LocalePriorityList &) = delete;
Dlocaleprioritylist.cpp113 LocalePriorityList::LocalePriorityList(StringPiece s, UErrorCode &errorCode) { in LocalePriorityList() function in LocalePriorityList
160 LocalePriorityList::~LocalePriorityList() { in ~LocalePriorityList()
170 const Locale *LocalePriorityList::localeAt(int32_t i) const { in localeAt()
174 Locale *LocalePriorityList::orphanLocaleAt(int32_t i) { in orphanLocaleAt()
182 bool LocalePriorityList::add(const Locale &locale, int32_t weight, UErrorCode &errorCode) { in add()
231 void LocalePriorityList::sort(UErrorCode &errorCode) { in sort()
Dlocalematcher.cpp182 LocalePriorityList list(locales, errorCode_); in setSupportedLocalesFromListString()
646 LocalePriorityList list(desiredLocaleList, errorCode); in getBestMatchForListString()
647 LocalePriorityList::Iterator iter = list.iterator(); in getBestMatchForListString()
842 LocalePriorityList list(httpAcceptLanguage, *status); in uloc_acceptLanguageFromHTTP()
843 LocalePriorityList::Iterator desiredLocales = list.iterator(); in uloc_acceptLanguageFromHTTP()
/external/icu/libicu/cts_headers/
Dlocaleprioritylist.h57 class U_COMMON_API LocalePriorityList : public UMemory {
74 friend class LocalePriorityList;
76 Iterator(const LocalePriorityList &list) : list(list), length(list.getLength()) {} in Iterator()
78 const LocalePriorityList &list;
84 LocalePriorityList(StringPiece s, UErrorCode &errorCode);
86 ~LocalePriorityList();
99 LocalePriorityList(const LocalePriorityList &) = delete;
100 LocalePriorityList &operator=(const LocalePriorityList &) = delete;
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocalePriorityList.java74 public class LocalePriorityList implements Iterable<ULocale> { class
111 public static Builder add(LocalePriorityList list) { in add()
186 final LocalePriorityList that = (LocalePriorityList) o; in equals()
204 private LocalePriorityList(final Map<ULocale, Double> languageToWeight) { in LocalePriorityList() method in LocalePriorityList
222 private LocalePriorityList built;
232 private Builder(LocalePriorityList list) { in Builder()
250 public LocalePriorityList build() {
260 public LocalePriorityList build(boolean preserveWeights) {
302 return built = new LocalePriorityList(Collections.unmodifiableMap(temp));
311 public Builder add(final LocalePriorityList list) {
DLocaleMatcher.java369 return setSupportedULocales(LocalePriorityList.add(locales).build().getULocales()); in setSupportedLocales()
634 public LocaleMatcher(LocalePriorityList supportedLocales) { in LocaleMatcher()
874 return getBestMatch(LocalePriorityList.add(desiredLocaleList).build()); in getBestMatch()
DGlobalizationPreferences.java252 Set<ULocale> acceptSet = LocalePriorityList.add(acceptLanguageString).build().getULocales(); in setLocales()
DULocale.java2330 LocalePriorityList desired; in acceptLanguage()
2332 desired = LocalePriorityList.add(acceptLanguageList).build(); in acceptLanguage()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocalePriorityList.java73 public class LocalePriorityList implements Iterable<ULocale> { class
113 public static Builder add(LocalePriorityList list) { in add()
194 final LocalePriorityList that = (LocalePriorityList) o; in equals()
213 private LocalePriorityList(final Map<ULocale, Double> languageToWeight) { in LocalePriorityList() method in LocalePriorityList
231 private LocalePriorityList built;
241 private Builder(LocalePriorityList list) { in Builder()
260 public LocalePriorityList build() {
271 public LocalePriorityList build(boolean preserveWeights) {
313 return built = new LocalePriorityList(Collections.unmodifiableMap(temp));
323 public Builder add(final LocalePriorityList list) {
DLocaleMatcher.java387 return setSupportedULocales(LocalePriorityList.add(locales).build().getULocales()); in setSupportedLocales()
668 public LocaleMatcher(LocalePriorityList supportedLocales) { in LocaleMatcher()
912 return getBestMatch(LocalePriorityList.add(desiredLocaleList).build()); in getBestMatch()
DULocale.java2464 LocalePriorityList desired; in acceptLanguage()
2466 desired = LocalePriorityList.add(acceptLanguageList).build(); in acceptLanguage()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DXLocaleMatcherTest.java19 import com.ibm.icu.util.LocalePriorityList;
39 private XLocaleMatcher newXLocaleMatcher(LocalePriorityList build) { in newXLocaleMatcher()
44 return new XLocaleMatcher(LocalePriorityList.add(string).build()); in newXLocaleMatcher()
47 private XLocaleMatcher newXLocaleMatcher(LocalePriorityList string, int d) { in newXLocaleMatcher()
51 …private XLocaleMatcher newXLocaleMatcher(LocalePriorityList string, int d, DistanceOption distance… in newXLocaleMatcher()
152 LocalePriorityList.add( in check2()
280 LocalePriorityList supportedList = LocalePriorityList.add(supportedReformatted).build(); in handle()
284 LocalePriorityList desiredList = LocalePriorityList.add(desiredReformatted).build(); in handle()
DLocaleMatcherTest.java16 import com.ibm.icu.util.LocalePriorityList;
31 private LocaleMatcher newLocaleMatcher(LocalePriorityList build) { in newLocaleMatcher()
35 private LocaleMatcher newLocaleMatcher(LocalePriorityList build, LanguageMatcherData data) { in newLocaleMatcher()
39 …private LocaleMatcher newLocaleMatcher(LocalePriorityList lpl, LanguageMatcherData data, double d)… in newLocaleMatcher()
44 return new LocaleMatcher(LocalePriorityList.add(string).build(), LANGUAGE_MATCHER_DATA); in newLocaleMatcher()
144 LocalePriorityList lpl = LocalePriorityList.add("en, hi").build(); in testFallbacks()
160 LocalePriorityList in testOverrideData()
177 …final LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(ULocale.FRENCH).add(ULocale.… in testBasics()
242 LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(null, 0).build(), null); in TestLocaleMatcherCoverage()
535 LocalePriorityList.add( in check2()
DLanguageInfoTest.java15 import com.ibm.icu.util.LocalePriorityList;
89 final LocaleMatcher matcher = new LocaleMatcher(LocalePriorityList in testBasics()
112 LocaleMatcher matcher = new LocaleMatcher(LocalePriorityList.add( in TestChinese()
161 LocalePriorityList in testFallbacks()
/external/cldr/tools/java/org/unicode/cldr/draft/
DXLocaleMatcher.java17 import com.ibm.icu.util.LocalePriorityList;
55 … this.supportedLanguagesList = asSet(LocalePriorityList.add(languagePriorityList).build()); in setSupportedLocales()
59 public Builder setSupportedLocales(LocalePriorityList languagePriorityList) { in setSupportedLocales()
136 public XLocaleMatcher(LocalePriorityList supportedLocales) { in XLocaleMatcher()
217 return getBestMatch(LocalePriorityList.add(languageList).build(), null);
231 public ULocale getBestMatch(LocalePriorityList desiredLanguages) {
236 …public ULocale getBestMatch(LocalePriorityList desiredLanguages, Output<ULocale> outputBestDesired…
241 private static Set<ULocale> asSet(LocalePriorityList languageList) {
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/util/
DULocale.java.patch37 - * <p>This is a thin wrapper over {@link LocalePriorityList} + {@link LocaleMatcher}.
45 - * @see LocalePriorityList
68 - * <p>This is a thin wrapper over {@link LocalePriorityList} + {@link LocaleMatcher}.
76 - * @see LocalePriorityList
/external/cldr/tools/java/com/ibm/icu/util/
DLocaleMatcher.java83 public LocaleMatcher(LocalePriorityList languagePriorityList) { in LocaleMatcher()
95 this(LocalePriorityList.add(languagePriorityListString).build()); in LocaleMatcher()
106 public LocaleMatcher(LocalePriorityList languagePriorityList, LanguageMatcherData matcherData) { in LocaleMatcher()
118 …public LocaleMatcher(LocalePriorityList languagePriorityList, LanguageMatcherData matcherData, dou… in LocaleMatcher()
177 public ULocale getBestMatch(LocalePriorityList languageList) { in getBestMatch()
205 return getBestMatch(LocalePriorityList.add(languageList).build()); in getBestMatch()
225 return getBestMatch(LocalePriorityList.add(ulocales).build()); in getBestMatch()
/external/icu/icu4c/source/test/intltest/
Dlocalematchertest.cpp214 LocalePriorityList list("fr, en-GB", errorCode); in testBasics()
215 LocalePriorityList::Iterator iter(list.iterator()); in testBasics()
239 LocalePriorityList list2("ja-JP, en-US", errorCode); in testBasics()
240 LocalePriorityList::Iterator iter2(list2.iterator()); in testBasics()
600 LocalePriorityList desired(test.desired.toStringPiece(), errorCode); in dataDriven()
601 LocalePriorityList::Iterator desiredIter = desired.iterator(); in dataDriven()
617 LocalePriorityList desired(test.desired.toStringPiece(), errorCode); in dataDriven()
618 LocalePriorityList::Iterator desiredIter = desired.iterator(); in dataDriven()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/
DGlobalizationPreferences.java262 Set<ULocale> acceptSet = LocalePriorityList.add(acceptLanguageString).build().getULocales(); in setLocales()

12