Home
last modified time | relevance | path

Searched refs:variants (Results 1 – 4 of 4) 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.java576 private int checkVariants(String variants, String sep) { in checkVariants() argument
577 StringTokenIterator itr = new StringTokenIterator(variants, sep); in checkVariants()
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java2443 List<String> variants = null; in getDefaultList() local
2446 variants = new LinkedList<>(); in getDefaultList()
2449 variants.add(variant.substring(0, idx)); in getDefaultList()
2456 if (variants != null) { in getDefaultList()
2457 for (String v : variants) { in getDefaultList()
2469 if (variants != null) { in getDefaultList()
2470 for (String v : variants) { in getDefaultList()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSimpleDateFormatTest.java927 String[] variants) { in parse_whitespace_variants() argument
938 for (String variant: variants) { in parse_whitespace_variants()