Home
last modified time | relevance | path

Searched refs:region (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java45 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 …]
DInternalLocaleBuilder.java48 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 …]
DLanguageTag.java55 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/
DZoneName.java49 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/
DOldMatcherTest.java239 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/
DLocale.java970 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 …]
DResourceBundle.java2373 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 …]
DScanner.java890 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/
DMatcherTest.java48 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/
DActions.java85 m.region(0, "foo 123".length()); in run()
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/
DMatcher.annotated.java84 @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/
DMatcher.java139 public java.util.regex.Matcher region(int start, int end) { in region() method in Matcher
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java235 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/
DWeekFields.java289 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/
DMatcher.java922 public Matcher region(int start, int end) { in region() method in Matcher
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1095 final String region = getProperty("user.region", ""); in addLegacyLocaleSystemProperties() local
1101 if (region.isEmpty()) { in addLegacyLocaleSystemProperties()
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java2071 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/
DLocale.annotated.java230 public java.util.Locale.Builder setRegion(java.lang.String region) { throw new RuntimeException("St… in setRegion() argument
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java226 …va.util.Locale.Builder setRegion(@libcore.util.Nullable java.lang.String region) { throw new Runti… in setRegion() argument