Searched defs:tags (Results 1 - 3 of 3) sorted by relevance
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | LocaleMatcher.java | 55 // Create a list of language tags to be matched. 56 List<String> tags = new ArrayList<>(); 58 tags.add(locale.toLanguageTag()); 61 // Filter language tags. 62 List<String> filteredTags = filterTags(priorityList, tags, mode); 74 Collection<String> tags, 76 if (priorityList.isEmpty() || tags.isEmpty()) { 82 return filterExtended(priorityList, tags); 90 return filterExtended(priorityList, tags); 108 return filterBasic(list, tags); 73 filterTags(List<LanguageRange> priorityList, Collection<String> tags, FilteringMode mode) argument 112 filterBasic(List<LanguageRange> priorityList, Collection<String> tags) argument 136 filterExtended(List<LanguageRange> priorityList, Collection<String> tags) argument 202 lookupTag(List<LanguageRange> priorityList, Collection<String> tags) argument [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | LocaleTest.java | 581 // Script tags shouldn't be mis-recognized as regions. 587 // Neither should variant tags. 617 // Four or more sub tags 792 List<String> tags = tagsOf( 804 assertFilter(tagsOf("en-US"), ranges, tags); 807 assertFilter(tagsOf("en-US"), ranges, tags, AUTOSELECT_FILTERING); 808 assertFilter(tagsOf("en-US"), ranges, tags, REJECT_EXTENDED_RANGES); 809 assertFilter(tagsOf("en-US"), ranges, tags, IGNORE_EXTENDED_RANGES); 813 assertFilter(tagsOf("en-US", "en-Latn-US"), ranges, tags, EXTENDED_FILTERING); 816 assertFilter(tagsOf("en-US", "zh-Hant-TW"), ranges, tags); 1623 tagsOf(String... tags) argument 1639 assertFilter(List<String> filteredTags, List<LanguageRange> languageRanges, List<String> tags) argument 1648 assertFilter(List<String> filteredTags, List<LanguageRange> languageRanges, List<String> tags, Locale.FilteringMode filteringMode) argument 1666 assertLookup(String expectedTag, List<LanguageRange> languageRanges, List<String> tags) argument [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Locale.java | 273 * locales (or language tags) which meet each user's specific preferences. Note 278 * tags, <a href="http://tools.ietf.org/html/rfc4647">RFC 4647 Matching of 292 * <p>The filtering operation returns all matching language tags. It is defined 296 * acceptable match. All of the language tags in the matching set of tags will 299 * matching language tags." 310 * <p>The lookup operation returns the best matching language tags. It is 319 * method progressively searches the language tags below in order to find the 335 * <p>If multiple language tags match as a result of the subtag {@code '*'} 337 * an {@link Iterator} over a {@link Collection} of language tags i 3376 filterTags(List<LanguageRange> priorityList, Collection<String> tags, FilteringMode mode) argument 3399 filterTags(List<LanguageRange> priorityList, Collection<String> tags) argument 3437 lookupTag(List<LanguageRange> priorityList, Collection<String> tags) argument [all...] |
Completed in 429 milliseconds