Searched refs:variants (Results 1 – 3 of 3) sorted by relevance
59 private List<String> variants = Collections.emptyList(); // variant subtags field in LanguageTag324 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() local464 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 …]
575 private int checkVariants(String variants, String sep) { in checkVariants() argument576 StringTokenIterator itr = new StringTokenIterator(variants, sep); in checkVariants()
2376 List<String> variants = null; in getDefaultList() local2379 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()