/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocalePriorityListTest.java | 19 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 …]
|
D | LocaleMatcherTest.java | 32 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 …]
|
D | ULocaleTest.java | 49 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/ |
D | LocalePriorityListTest.java | 20 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 …]
|
D | LocaleMatcherTest.java | 33 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 …]
|
D | ULocaleTest.java | 50 import android.icu.util.LocalePriorityList; 1666 LocalePriorityList.add(ACCEPT_LANGUAGE_HTTP[i]).build().getULocales(); in TestAcceptLanguage2()
|
/external/icu/icu4c/source/common/ |
D | localeprioritylist.h | 57 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;
|
D | localeprioritylist.cpp | 113 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()
|
D | localematcher.cpp | 182 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/ |
D | localeprioritylist.h | 57 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/ |
D | LocalePriorityList.java | 74 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) {
|
D | LocaleMatcher.java | 369 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()
|
D | GlobalizationPreferences.java | 252 Set<ULocale> acceptSet = LocalePriorityList.add(acceptLanguageString).build().getULocales(); in setLocales()
|
D | ULocale.java | 2330 LocalePriorityList desired; in acceptLanguage() 2332 desired = LocalePriorityList.add(acceptLanguageList).build(); in acceptLanguage()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | LocalePriorityList.java | 73 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) {
|
D | LocaleMatcher.java | 387 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()
|
D | ULocale.java | 2464 LocalePriorityList desired; in acceptLanguage() 2466 desired = LocalePriorityList.add(acceptLanguageList).build(); in acceptLanguage()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | XLocaleMatcherTest.java | 19 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()
|
D | LocaleMatcherTest.java | 16 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()
|
D | LanguageInfoTest.java | 15 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/ |
D | XLocaleMatcher.java | 17 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/ |
D | ULocale.java.patch | 37 - * <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/ |
D | LocaleMatcher.java | 83 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/ |
D | localematchertest.cpp | 214 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/ |
D | GlobalizationPreferences.java | 262 Set<ULocale> acceptSet = LocalePriorityList.add(acceptLanguageString).build().getULocales(); in setLocales()
|