Class LocaleNames
java.lang.Object
com.ultikits.ultitools.text.internal.LocaleNames
Locale identifiers used by catalogue names and configuration values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAutomatic(@Nullable String value) Returns whether a configuration value selects automatic language resolution.static booleanisSafeLanguageCode(String code) Checks the ASCII allowlist for a configured language name, not the locale-tag grammar.static LocaleKeeps only a locale's language and country.static @Nullable StringofficialLanguageOf(@Nullable String configured, List<String> officialCodes) Returns the exact official code or the longest official prefix before a hyphen.Parses a language or language-region identifier, omitting variants.
-
Constructor Details
-
LocaleNames
private LocaleNames()
-
-
Method Details
-
parse
-
isAutomatic
Returns whether a configuration value selects automatic language resolution. -
isSafeLanguageCode
Checks the ASCII allowlist for a configured language name, not the locale-tag grammar. -
officialLanguageOf
-
normalize
-