Home
last modified time | relevance | path

Searched refs:variants (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/locale/
DLanguageTag.java59 private List<String> variants = Collections.emptyList(); // variant subtags field in LanguageTag
324 if (variants.isEmpty()) { in parseVariants()
325 variants = new ArrayList<>(3); in parseVariants()
327 variants.add(s); in parseVariants()
457 List<String> variants = null; in parseLocale() local
464 if (variants == null) { in parseLocale()
465 variants = new ArrayList<>(); in parseLocale()
467 variants.add(var); // Do not canonicalize! in parseLocale()
470 if (variants != null) { in parseLocale()
471 tag.variants = variants; in parseLocale()
[all …]
DInternalLocaleBuilder.java575 private int checkVariants(String variants, String sep) { in checkVariants() argument
576 StringTokenIterator itr = new StringTokenIterator(variants, sep); in checkVariants()
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java2376 List<String> variants = null; in getDefaultList() local
2379 variants = new LinkedList<>(); in getDefaultList()
2382 variants.add(variant.substring(0, idx)); in getDefaultList()
2389 if (variants != null) { in getDefaultList()
2390 for (String v : variants) { in getDefaultList()
2402 if (variants != null) { in getDefaultList()
2403 for (String v : variants) { in getDefaultList()