/libcore/ojluni/src/main/java/sun/util/locale/ |
D | BaseLocale.java | 45 private final String region; field in BaseLocale 51 private BaseLocale(String language, String region) { in BaseLocale() argument 54 this.region = region; in BaseLocale() 58 private BaseLocale(String language, String script, String region, String variant) { in BaseLocale() argument 61 this.region = (region != null) ? LocaleUtils.toUpperString(region).intern() : ""; in BaseLocale() 67 public static BaseLocale createInstance(String language, String region) { in createInstance() argument 68 BaseLocale base = new BaseLocale(language, region); in createInstance() 69 CACHE.put(new Key(language, region), base); in createInstance() 74 String region, String variant) { in getInstance() argument 86 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/ojluni/src/main/java/java/time/format/ |
D | ZoneName.java | 49 String region = uLocale.getCountry(); in toZid() local 50 if (region.length() == 0) { in toZid() 52 region = uLocale.getCountry(); in toZid() 54 zid = tzNames.getReferenceZoneID(zid, region); in toZid()
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 239 mat1.region(1, 10); in test_lookingAt() 299 mat3.region(7, 10); in test_findI() 306 mat3.region(1, 4); in test_findI() 370 m.region(0, 15); in testRegion() 375 m.region(5, 15); in testRegion() 379 m.region(10, 15); in testRegion() 385 m.region(-1, 15); in testRegion() 393 m.region(0, 16); in testRegion() 459 mat.region(1, 10); in test_regionStart() 472 mat.region(1, 10); in test_regionEnd() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 970 String language, region, script, country, variant; in initDefault() local 973 region = System.getProperty("user.region"); in initDefault() 974 if (region != null) { in initDefault() 976 int i = region.indexOf('_'); in initDefault() 978 country = region.substring(0, i); in initDefault() 979 variant = region.substring(i + 1); in initDefault() 981 country = region; in initDefault() 1764 final String region = baseLocale.getRegion(); in getISO3Country() local 1766 if (region.length() == 3) { in getISO3Country() 1768 } else if (region.isEmpty()) { in getISO3Country() [all …]
|
D | ResourceBundle.java | 2373 String region = base.getRegion(); in createObject() local 2380 if (region.equals("NO") && variant.equals("NY")) { in createObject() 2388 List<Locale> tmpList = getDefaultList("nb", script, region, variant); in createObject() 2402 List<Locale> nynorskList = getDefaultList("nn", script, region, variant); in createObject() 2411 if (script.length() == 0 && region.length() > 0) { in createObject() 2414 switch (region) { in createObject() 2425 } else if (script.length() > 0 && region.length() == 0) { in createObject() 2430 region = "CN"; in createObject() 2433 region = "TW"; in createObject() 2439 return getDefaultList(language, script, region, variant); in createObject() [all …]
|
D | Scanner.java | 890 matcher.region(position, buf.limit()); in hasTokenInBuffer() 924 matcher.region(position, buf.limit()); in getCompleteTokenInBuffer() 952 matcher.region(position, buf.limit()); in getCompleteTokenInBuffer() 979 matcher.region(position, tokenEnd); in getCompleteTokenInBuffer() 998 matcher.region(position, buf.limit()); in getCompleteTokenInBuffer() 1027 matcher.region(position, searchLimit); in findPatternInBuffer() 1065 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() 658 matcher.region(1, 5); in testMatchesRegionChanged() 709 matcher.region(0, 2); in testFindRegionChanged() 722 matcher.region(0, 3); in testFindRegionChanged2() 784 m.region(4, 8); in testToString()
|
/libcore/metrictests/memory/apps/src/libcore/heapdumper/ |
D | Actions.java | 85 m.region(0, "foo 123".length()); in run()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/ |
D | Matcher.annotated.java | 84 @libcore.util.NonNull public java.util.regex.Matcher region(int start, int end) { throw new Runtime… in region() method in Matcher
|
/libcore/ojluni/annotations/hiddenapi/java/util/regex/ |
D | Matcher.java | 139 public java.util.regex.Matcher region(int start, int end) { in region() method in Matcher
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Locale.java | 235 java.lang.String region, boolean strict) { in normalizeAndValidateRegion() argument 566 public java.util.Locale.Builder setRegion(java.lang.String region) { in setRegion() argument
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 289 String region = ULocale.getRegionForSupplementalData(ulocale, /* inferRegion */ true); in of() local 290 Calendar.WeekData weekData = Calendar.getWeekDataForRegion(region); in of()
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 922 public Matcher region(int start, int end) { in region() method in Matcher
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 1095 final String region = getProperty("user.region", ""); in addLegacyLocaleSystemProperties() local 1101 if (region.isEmpty()) { in addLegacyLocaleSystemProperties()
|
/libcore/ojluni/src/main/java/java/text/ |
D | SimpleDateFormat.java | 2071 String region = uLocale.getCountry(); in subParseZoneStringFromICU() local 2072 if (region.length() == 0) { in subParseZoneStringFromICU() 2074 region = uLocale.getCountry(); in subParseZoneStringFromICU() 2076 tzId = tzNames.getReferenceZoneID(bestMatch.mzID(), region); in subParseZoneStringFromICU()
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | Locale.annotated.java | 230 public java.util.Locale.Builder setRegion(java.lang.String region) { throw new RuntimeException("St… in setRegion() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Locale.annotated.java | 226 …va.util.Locale.Builder setRegion(@libcore.util.Nullable java.lang.String region) { throw new Runti… in setRegion() argument
|