/libcore/ojluni/src/main/java/sun/util/locale/ |
D | BaseLocale.java | 44 private final String region; field in BaseLocale 50 private BaseLocale(String language, String region) { in BaseLocale() argument 53 this.region = region; in BaseLocale() 57 private BaseLocale(String language, String script, String region, String variant) { in BaseLocale() argument 60 this.region = (region != null) ? LocaleUtils.toUpperString(region).intern() : ""; in BaseLocale() 66 public static BaseLocale createInstance(String language, String region) { in createInstance() argument 67 BaseLocale base = new BaseLocale(language, region); in createInstance() 68 CACHE.put(new Key(language, region), base); in createInstance() 73 String region, String variant) { in getInstance() argument 85 Key key = new Key(language, script, region, variant); in getInstance() [all …]
|
D | InternalLocaleBuilder.java | 48 private String region = ""; field in InternalLocaleBuilder 83 public InternalLocaleBuilder setRegion(String region) throws LocaleSyntaxException { in setRegion() argument 84 if (LocaleUtils.isEmpty(region)) { in setRegion() 85 this.region = ""; in setRegion() 87 if (!LanguageTag.isRegion(region)) { in setRegion() 88 throw new LocaleSyntaxException("Ill-formed region: " + region, 0); in setRegion() 90 this.region = region; in setRegion() 359 region = langtag.getRegion(); in setLanguageTag() 379 String region = base.getRegion(); in setLocale() local 385 if (language.equals("ja") && region.equals("JP") && variant.equals("JP")) { in setLocale() [all …]
|
D | LanguageTag.java | 55 private String region = ""; // region subtag field in LanguageTag 303 region = s; in parseRegion() 421 String region = baseLocale.getRegion(); in parseLocale() local 445 if (isRegion(region)) { in parseLocale() 446 tag.region = canonicalizeRegion(region); in parseLocale() 451 if (tag.language.equals("no") && tag.region.equals("NO") && variant.equals("NY")) { in parseLocale() 562 return region; in getRegion() 728 if (region.length() > 0) { in toString() 729 sb.append(SEP).append(region); in toString()
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 211 mat1.region(1, 10); in test_lookingAt() 271 mat3.region(7, 10); in test_findI() 278 mat3.region(1, 4); in test_findI() 342 m.region(0, 15); in testRegion() 347 m.region(5, 15); in testRegion() 351 m.region(10, 15); in testRegion() 357 m.region(-1, 15); in testRegion() 365 m.region(0, 16); in testRegion() 431 mat.region(1, 10); in test_regionStart() 444 mat.region(1, 10); in test_regionEnd() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | ResourceBundle.java | 2315 String region = base.getRegion(); in createObject() local 2322 if (region.equals("NO") && variant.equals("NY")) { in createObject() 2330 List<Locale> tmpList = getDefaultList("nb", script, region, variant); in createObject() 2344 List<Locale> nynorskList = getDefaultList("nn", script, region, variant); in createObject() 2353 if (script.length() == 0 && region.length() > 0) { in createObject() 2356 if (region.equals("TW") || region.equals("HK") || region.equals("MO")) { in createObject() 2358 } else if (region.equals("CN") || region.equals("SG")) { in createObject() 2361 } else if (script.length() > 0 && region.length() == 0) { in createObject() 2365 region = "CN"; in createObject() 2367 region = "TW"; in createObject() [all …]
|
D | Locale.java | 873 String language, region, script, country, variant; in initDefault() local 876 region = System.getProperty("user.region"); in initDefault() 877 if (region != null) { in initDefault() 879 int i = region.indexOf('_'); in initDefault() 881 country = region.substring(0, i); in initDefault() 882 variant = region.substring(i + 1); in initDefault() 884 country = region; in initDefault() 1578 final String region = baseLocale.getRegion(); in getISO3Country() local 1580 if (region.length() == 3) { in getISO3Country() 1582 } else if (region.isEmpty()) { in getISO3Country() [all …]
|
D | Scanner.java | 885 matcher.region(position, buf.limit()); in hasTokenInBuffer() 919 matcher.region(position, buf.limit()); in getCompleteTokenInBuffer() 947 matcher.region(position, buf.limit()); in getCompleteTokenInBuffer() 974 matcher.region(position, tokenEnd); in getCompleteTokenInBuffer() 993 matcher.region(position, buf.limit()); in getCompleteTokenInBuffer() 1022 matcher.region(position, searchLimit); in findPatternInBuffer() 1060 matcher.region(position, buf.limit()); in matchPatternInBuffer()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | MatcherTest.java | 48 m.region(1, 6); in testRegionsIntInt() 54 m.region(1, 0); in testRegionsIntInt() 60 m.region(-1, 2); in testRegionsIntInt() 66 m.region(10, 11); in testRegionsIntInt() 72 m.region(1, 10); in testRegionsIntInt() 567 matcher.region(1, 5); in testMatchesRegionChanged() 618 matcher.region(0, 2); in testFindRegionChanged() 631 matcher.region(0, 3); in testFindRegionChanged2() 693 m.region(4, 8); in testToString()
|
/libcore/luni/src/main/native/ |
D | java_util_regex_Matcher.cpp | 197 matcher->region(start, end, matcher.status()); in Matcher_setInputImpl()
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 772 public Matcher region(int start, int end) { in region() method in Matcher
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 1061 final String region = getProperty("user.region", ""); in addLegacyLocaleSystemProperties() local 1067 if (region.isEmpty()) { in addLegacyLocaleSystemProperties()
|