99100101102103104105106
assertTrue(range3.matches(lang, true)); assertTrue(range4.matches(lang, true)); assertTrue(range5.matches(lang, true)); assertTrue(range6.matches(lang, true)); assertTrue(range7.matches(lang, true)); assertFalse(range8.matches(lang, true)); } }
4445464748495051525354
String region = lang.getRegion().getName(); String variant = lang.getVariant().getName(); // Perform extended range matching Range range = new Range("en-US-*", true); System.out.println(range.matches(lang, true)); // Locale integration Locale locale = lang.getLocale(); System.out.println(locale); }
949596979899100101
assertTrue(range3.matches(lang,true)); assertTrue(range4.matches(lang,true)); assertTrue(range5.matches(lang,true)); assertTrue(range6.matches(lang,true)); assertTrue(range7.matches(lang,true)); assertFalse(range8.matches(lang,true)); } }
4647484950515253545556
String region = lang.getRegion().getName(); String variant = lang.getVariant().getName(); // Perform extended range matching Range range = new Range("en-US-*",true); System.out.println(range.matches(lang,true)); // Locale integration Locale locale = lang.getLocale(); System.out.println(locale); }