Home
last modified time | relevance | path

Searched refs:LocaleUtils (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/locale/
DLanguageTag.java129 GRANDFATHERED.put(LocaleUtils.toLowerString(e[0]), e); in LocaleUtils.toLowerString()
191 String[] gfmap = GRANDFATHERED.get(LocaleUtils.toLowerString(languageTag)); in parse()
594 return (len >= 2) && (len <= 8) && LocaleUtils.isAlphaString(s); in isLanguage()
600 return (s.length() == 3) && LocaleUtils.isAlphaString(s); in isExtlang()
605 return (s.length() == 4) && LocaleUtils.isAlphaString(s); in isScript()
611 return ((s.length() == 2) && LocaleUtils.isAlphaString(s)) in isRegion()
612 || ((s.length() == 3) && LocaleUtils.isNumericString(s)); in isRegion()
620 return LocaleUtils.isAlphaNumericString(s); in isVariant()
623 return LocaleUtils.isNumeric(s.charAt(0)) in isVariant()
624 && LocaleUtils.isAlphaNumeric(s.charAt(1)) in isVariant()
[all …]
DBaseLocale.java59 this.language = (language != null) ? LocaleUtils.toLowerString(language).intern() : ""; in BaseLocale()
60 this.script = (script != null) ? LocaleUtils.toTitleString(script).intern() : ""; in BaseLocale()
61 this.region = (region != null) ? LocaleUtils.toUpperString(region).intern() : ""; in BaseLocale()
77 if (LocaleUtils.caseIgnoreMatch(language, "he")) { in getInstance()
79 } else if (LocaleUtils.caseIgnoreMatch(language, "yi")) { in getInstance()
81 } else if (LocaleUtils.caseIgnoreMatch(language, "id")) { in getInstance()
193 h = 31 * h + LocaleUtils.toLower(region.charAt(i)); in Key()
210 h = 31*h + LocaleUtils.toLower(language.charAt(i)); in Key()
219 h = 31*h + LocaleUtils.toLower(script.charAt(i)); in Key()
228 h = 31*h + LocaleUtils.toLower(region.charAt(i)); in Key()
[all …]
DUnicodeLocaleExtension.java109 return (SINGLETON == LocaleUtils.toLower(c)); in isSingletonChar()
115 return (len >= 3) && (len <= 8) && LocaleUtils.isAlphaNumericString(s); in isAttribute()
120 return (s.length() == 2) && LocaleUtils.isAlphaNumericString(s); in isKey()
126 return (len >= 3) && (len <= 8) && LocaleUtils.isAlphaNumericString(s); in isTypeSubtag()
DInternalLocaleBuilder.java60 if (LocaleUtils.isEmpty(language)) { in setLanguage()
72 if (LocaleUtils.isEmpty(script)) { in setScript()
84 if (LocaleUtils.isEmpty(region)) { in setRegion()
96 if (LocaleUtils.isEmpty(variant)) { in setVariant()
174 boolean remove = LocaleUtils.isEmpty(value); in setExtension()
226 if (LocaleUtils.isEmpty(subtags)) { in setExtensions()
315 if (!LocaleUtils.isEmpty(bcpExtensions)) { in setExtensions()
510 … if (LocaleUtils.caseIgnoreMatch(itr.current(), LanguageTag.PRIVUSE_VARIANT_PREFIX)) { in getBaseLocale()
531 if (LocaleUtils.isEmpty(extensions) && LocaleUtils.isEmpty(uattributes) in getLocaleExtensions()
532 && LocaleUtils.isEmpty(ukeywords)) { in getLocaleExtensions()
[all …]
DLocaleUtils.java42 public final class LocaleUtils { class
44 private LocaleUtils() { in LocaleUtils() method in LocaleUtils
/libcore/ojluni/src/main/java/java/util/
DLocale.java60 import sun.util.locale.LocaleUtils;
2577 return (s.length() == 2) && LocaleUtils.isAlphaNumericString(s); in isUnicodeExtensionKey()
2682 language = LocaleUtils.toLowerString(language).intern(); in convertOldISOCodes()
2700 if (LocaleUtils.caseIgnoreMatch(language, "ja") in getCompatibilityExtensions()
2702 && LocaleUtils.caseIgnoreMatch(country, "jp") in getCompatibilityExtensions()
2706 } else if (LocaleUtils.caseIgnoreMatch(language, "th") in getCompatibilityExtensions()
2708 && LocaleUtils.caseIgnoreMatch(country, "th") in getCompatibilityExtensions()
/libcore/
Dopenjdk_java_files.bp1807 "ojluni/src/main/java/sun/util/locale/LocaleUtils.java",