/** * Gets the LCID as a string, for a given locale id. * @param locId the localie id to lookup. * @return the LCID found, as a string. */ public static String getLCID_asString (LocaleId locId) { return Util.intToStr(getLCID(locId)); }
/** * Creates a locale id for a given LCID value. * @param lcid the LCID to lookup. * @return a new locale id for the given LCID value. */ public static LocaleId getLocaleId (int lcid) { return new LocaleId(getTag(lcid)); }
if (inst == null) inst = new LCIDUtil(); LCIDDescr descr = inst.new LCIDDescr(language, region, lcid, null);
/** * Gets an LCID for a given language tag. * @param tag the language tag to lookup. * @return the LCID value found. */ public static int getLCID (String tag) { return getLCID(LocaleId.fromString(tag)); }