Modifier and Type | Method and Description |
---|---|
static LangTag |
LangTagUtils.extract(String s)
Extracts the language tag, if any is found, from the specified
string.
|
static LangTag |
LangTag.parse(String s)
Parses the specified string representation of a language tag.
|
static LangTag[] |
LangTagUtils.parseLangTagArray(String... values)
Parses a language tag array from the specified string values.
|
static List<LangTag> |
LangTagUtils.parseLangTagList(Collection<String> collection)
Parses a language tag list from the specified string collection.
|
static List<LangTag> |
LangTagUtils.parseLangTagList(String... values)
Parses a language tag list from the specified string values.
|
void |
LangTag.setExtensions(String... extensions)
Sets the extensions.
|
void |
LangTag.setPrivateUse(String privateUse)
Sets the private use.
|
void |
LangTag.setRegion(String region)
Sets the region.
|
void |
LangTag.setScript(String script)
Sets the script.
|
void |
LangTag.setVariants(String... variants)
Sets the variants.
|
Constructor and Description |
---|
LangTag(String primaryLanguage)
Creates a new simple language tag.
|
LangTag(String primaryLanguage,
String... languageSubtags)
Creates a new extended language tag.
|
Copyright © 2016 Connect2id Ltd.. All Rights Reserved.