Class LocaleIDParser
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.LocaleIDParser
Utility class to parse and normalize locale ids (including POSIX style)
-
Constructor Summary
ConstructorsConstructorDescriptionLocaleIDParser(String localeID) LocaleIDParser(String localeID, boolean canonicalize) -
Method Summary
Modifier and TypeMethodDescriptionvoiddefaultKeywordValue(String keywordName, String value) Set the keyword value only if it is not already set to something else.Returns the normalized base form of the locale id.return the normalized country id, or the empty string.Returns a map of the keywords and values, or null if there are none.Returns an iterator over the keywords, or null if we have an empty map.getKeywordValue(String keywordName) Returns the value for the named keyword, or null if the keyword is not present.Returns the normalized language id, or the empty string.String[]Returns the language, script, country, and variant as separate strings.getName()Returns the normalized full form of the locale id.Returns the normalized script id, or the empty string.Returns the normalized variant id, or the empty string.voidvoidsetBaseName(String baseName) voidsetKeywordValue(String keywordName, String value) Set the value for the named keyword, or unset it if value is null.
-
Constructor Details
-
LocaleIDParser
-
LocaleIDParser
-
-
Method Details
-
getLanguage
Returns the normalized language id, or the empty string. -
getScript
Returns the normalized script id, or the empty string. -
getCountry
return the normalized country id, or the empty string. -
getVariant
Returns the normalized variant id, or the empty string. -
getLanguageScriptCountryVariant
Returns the language, script, country, and variant as separate strings. -
setBaseName
-
parseBaseName
public void parseBaseName() -
getBaseName
Returns the normalized base form of the locale id. The base form does not include keywords. -
getName
Returns the normalized full form of the locale id. The full form includes keywords if they are present. -
getKeywordMap
-
getKeywords
-
getKeywordValue
-
defaultKeywordValue
-
setKeywordValue
-