public class LCIDUtil extends Object
| Constructor and Description |
|---|
LCIDUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<net.sf.okapi.common.LCIDUtil.LCIDDescr> |
getDescriptors()
Gets a list of all descriptors for the registered LCID.
|
static String |
getLCID_asString(LocaleId locId)
Gets the LCID as a string, for a given locale id.
|
static int |
getLCID(LocaleId locId)
Gets the LCID for a given locale id.
|
static int |
getLCID(String tag)
Gets an LCID for a given language tag.
|
static HashMap<String,net.sf.okapi.common.LCIDUtil.LCIDDescr> |
getLcidLookup() |
static LocaleId |
getLocaleId(int lcid)
Creates a locale id for a given LCID value.
|
static LocaleId |
getLocaleId(String tag)
Creates a locale id for a given language tag.
|
static String |
getTag(int lcid)
Gets the language tag for a given LCID.
|
static String |
getTag(LocaleId locId)
Gets the language tag for a given locale id.
|
static HashMap<Integer,net.sf.okapi.common.LCIDUtil.LCIDDescr> |
getTagLookup() |
public static List<net.sf.okapi.common.LCIDUtil.LCIDDescr> getDescriptors()
public static String getTag(int lcid)
lcid - the LCID value.public static int getLCID(String tag)
tag - the language tag to lookup.public static String getTag(LocaleId locId)
locId - the locale id to lookup.public static int getLCID(LocaleId locId)
locId - the locale id to lookup.public static String getLCID_asString(LocaleId locId)
locId - the localie id to lookup.public static LocaleId getLocaleId(String tag)
This method is the same as calling new LocaleId(tag).
tag - the language tag.public static LocaleId getLocaleId(int lcid)
lcid - the LCID to lookup.public static HashMap<Integer,net.sf.okapi.common.LCIDUtil.LCIDDescr> getTagLookup()
public static HashMap<String,net.sf.okapi.common.LCIDUtil.LCIDDescr> getLcidLookup()
Copyright © 2022. All rights reserved.