Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* ADOBE CONFIDENTIAL
*
* Copyright 2005 Adobe Systems Incorporated All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of
* Adobe Systems Incorporated and its suppliers, if any. The intellectual and
* technical concepts contained herein are proprietary to Adobe Systems
* Incorporated and its suppliers and may be covered by U.S. and Foreign
* Patents, patents in process, and are protected by trade secret or copyright
* law. Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained from
* Adobe Systems Incorporated.
*/
package com.adobe.xfa.ut;
import java.text.NumberFormat;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
/**
* A class to represent any of the locales known to XFA.
*
* @author Mike P. Tardif
*/
public final class LcLocale {
/*
* Locale names who's value is the comprised of the ISO 139-1 language name,
* optionally followed by, the ISO 3166-1 country name, optionally followed
* by, a locale modifier, each separated by an underscore. For example
* LcLocale.Arabic_UAE is "ar_AE".
*/
/**
* @exclude from published api.
*/
public static final String Arabic = "ar";
/**
* @exclude from published api.
*/
public static final String Arabic_UAE = "ar_AE";
/**
* @exclude from published api.
*/
public static final String Arabic_Bahrain = "ar_BH";
/**
* @exclude from published api.
*/
public static final String Arabic_Algeria = "ar_DZ";
/**
* @exclude from published api.
*/
public static final String Arabic_Egypt = "ar_EG";
/**
* @exclude from published api.
*/
public static final String Arabic_Iraq = "ar_IQ";
/**
* @exclude from published api.
*/
public static final String Arabic_Jordan = "ar_JO";
/**
* @exclude from published api.
*/
public static final String Arabic_Kuwait = "ar_KW";
/**
* @exclude from published api.
*/
public static final String Arabic_Lebanon = "ar_LB";
/**
* @exclude from published api.
*/
public static final String Arabic_Libya = "ar_LY";
/**
* @exclude from published api.
*/
public static final String Arabic_Morocco = "ar_MA";
/**
* @exclude from published api.
*/
public static final String Arabic_Oman = "ar_OM";
/**
* @exclude from published api.
*/
public static final String Arabic_Qatar = "ar_QA";
/**
* @exclude from published api.
*/
public static final String Arabic_SaudiArabia = "ar_SA";
/**
* @exclude from published api.
*/
public static final String Arabic_Sudan = "ar_SD";
/**
* @exclude from published api.
*/
public static final String Arabic_Syria = "ar_SY";
/**
* @exclude from published api.
*/
public static final String Arabic_Tunisia = "ar_TN";
/**
* @exclude from published api.
*/
public static final String Arabic_Yemen = "ar_YE";
/**
* @exclude from published api.
*/
public static final String Azerbaijani = "az";
/**
* @exclude from published api.
*/
public static final String Azerbaijani_Azerbaijan = "az_AZ";
/**
* @exclude from published api.
*/
public static final String Azerbaijani_Cyrillic = "az_Cyrl";
/**
* @exclude from published api.
*/
public static final String Azerbaijani_Cyrillic_Azerbaijan = "az_Cyrl_AZ";
/**
* @exclude from published api.
*/
public static final String Azerbaijani_Latin = "az_Latn";
/**
* @exclude from published api.
*/
public static final String Azerbaijani_Latin_Azerbaijan = "az_Latn_AZ";
/**
* @exclude from published api.
*/
public static final String Byelorussian = "be";
/**
* @exclude from published api.
*/
public static final String Byelorussian_Belarus = "be_BY";
/**
* @exclude from published api.
*/
public static final String Bulgarian = "bg";
/**
* @exclude from published api.
*/
public static final String Bulgarian_Bulgaria = "bg_BG";
/**
* @exclude from published api.
*/
public static final String Bosnian = "bs";
/**
* @exclude from published api.
*/
public static final String Bosnian_BosniaHerzegovina = "bs_BA";
/**
* @exclude from published api.
*/
public static final String C = "c";
/**
* @exclude from published api.
*/
public static final String Catalan = "ca";
/**
* @exclude from published api.
*/
public static final String Catalan_Spain = "ca_ES";
/**
* @exclude from published api.
*/
public static final String Czech = "cs";
/**
* @exclude from published api.
*/
public static final String Czech_CzechRepublic = "cs_CZ";
/**
* @exclude from published api.
*/
public static final String Danish = "da";
/**
* @exclude from published api.
*/
public static final String Danish_Denmark = "da_DK";
/**
* @exclude from published api.
*/
public static final String German = "de";
/**
* @exclude from published api.
*/
public static final String German_Austria = "de_AT";
/**
* @exclude from published api.
*/
public static final String German_Belgium = "de_BE";
/**
* @exclude from published api.
*/
public static final String German_Switzerland = "de_CH";
/**
* @exclude from published api.
*/
public static final String German_Germany = "de_DE";
/**
* @exclude from published api.
*/
public static final String German_Liechtenstein = "de_LI";
/**
* @exclude from published api.
*/
public static final String German_Luxembourg = "de_LU";
/**
* @exclude from published api.
*/
public static final String Greek = "el";
/**
* @exclude from published api.
*/
public static final String Greek_Greece = "el_GR";
/**
* @exclude from published api.
*/
public static final String English = "en";
/**
* @exclude from published api.
*/
public static final String English_Australia = "en_AU";
/**
* @exclude from published api.
*/
public static final String English_Belgium = "en_BE";
/**
* @exclude from published api.
*/
public static final String English_Canada = "en_CA";
/**
* @exclude from published api.
*/
public static final String English_UK = "en_GB";
/**
* @exclude from published api.
*/
public static final String English_UK_Euro = "en_GB_EURO";
/**
* @exclude from published api.
*/
public static final String English_HongKong = "en_HK";
/**
* @exclude from published api.
*/
public static final String English_Ireland = "en_IE";
/**
* @exclude from published api.
*/
public static final String English_India = "en_IN";
/**
* @exclude from published api.
*/
public static final String English_NewZealand = "en_NZ";
/**
* @exclude from published api.
*/
public static final String English_Philippines = "en_PH";
/**
* @exclude from published api.
*/
public static final String English_Singapore = "en_SG";
/**
* @exclude from published api.
*/
public static final String English_US = "en_US";
/**
* @exclude from published api.
*/
public static final String English_US_Posix = "en_US_POSIX";
/**
* @exclude from published api.
*/
public static final String English_VirginIslands = "en_VI";
/**
* @exclude from published api.
*/
public static final String English_SouthAfrica = "en_ZA";
/**
* @exclude from published api.
*/
public static final String Spanish = "es";
/**
* @exclude from published api.
*/
public static final String Spanish_Argentina = "es_AR";
/**
* @exclude from published api.
*/
public static final String Spanish_Bolivia = "es_BO";
/**
* @exclude from published api.
*/
public static final String Spanish_Chile = "es_CL";
/**
* @exclude from published api.
*/
public static final String Spanish_Colombia = "es_CO";
/**
* @exclude from published api.
*/
public static final String Spanish_CostaRica = "es_CR";
/**
* @exclude from published api.
*/
public static final String Spanish_DominicanRepublic = "es_DO";
/**
* @exclude from published api.
*/
public static final String Spanish_Ecuador = "es_EC";
/**
* @exclude from published api.
*/
public static final String Spanish_Spain = "es_ES";
/**
* @exclude from published api.
*/
public static final String Spanish_Guatemala = "es_GT";
/**
* @exclude from published api.
*/
public static final String Spanish_Honduras = "es_HN";
/**
* @exclude from published api.
*/
public static final String Spanish_Mexico = "es_MX";
/**
* @exclude from published api.
*/
public static final String Spanish_Nicaragua = "es_NI";
/**
* @exclude from published api.
*/
public static final String Spanish_Panama = "es_PA";
/**
* @exclude from published api.
*/
public static final String Spanish_Peru = "es_PE";
/**
* @exclude from published api.
*/
public static final String Spanish_PuertoRico = "es_PR";
/**
* @exclude from published api.
*/
public static final String Spanish_Paraguay = "es_PY";
/**
* @exclude from published api.
*/
public static final String Spanish_ElSalvador = "es_SV";
/**
* @exclude from published api.
*/
public static final String Spanish_US = "es_US";
/**
* @exclude from published api.
*/
public static final String Spanish_Uruguay = "es_UY";
/**
* @exclude from published api.
*/
public static final String Spanish_Venezuela = "es_VE";
/**
* @exclude from published api.
*/
public static final String Estonian = "et";
/**
* @exclude from published api.
*/
public static final String Estonian_Estonia = "et_EE";
/**
* @exclude from published api.
*/
public static final String Basque = "eu";
/**
* @exclude from published api.
*/
public static final String Basque_Spain = "eu_ES";
/**
* @exclude from published api.
*/
public static final String Persian = "fa";
/**
* @exclude from published api.
*/
public static final String Persian_Iran = "fa_IR";
/**
* @exclude from published api.
*/
public static final String Finnish = "fi";
/**
* @exclude from published api.
*/
public static final String Finnish_Finland = "fi_FI";
/**
* @exclude from published api.
*/
public static final String French = "fr";
/**
* @exclude from published api.
*/
public static final String French_Belgium = "fr_BE";
/**
* @exclude from published api.
*/
public static final String French_Canada = "fr_CA";
/**
* @exclude from published api.
*/
public static final String French_Switzerland = "fr_CH";
/**
* @exclude from published api.
*/
public static final String French_France = "fr_FR";
/**
* @exclude from published api.
*/
public static final String French_Luxembourg = "fr_LU";
/**
* @exclude from published api.
*/
public static final String Hebrew = "he";
/**
* @exclude from published api.
*/
public static final String Hebrew_Israel = "he_IL";
/**
* @exclude from published api.
*/
public static final String Hindi = "hi";
/**
* @exclude from published api.
*/
public static final String Hindi_India = "hi_IN";
/**
* @exclude from published api.
*/
public static final String Croatian = "hr";
/**
* @exclude from published api.
*/
public static final String Croatian_Croatia = "hr_HR";
/**
* @exclude from published api.
*/
public static final String Hungarian = "hu";
/**
* @exclude from published api.
*/
public static final String Hungarian_Hungary = "hu_HU";
/**
* @exclude from published api.
*/
public static final String Armenian = "hy";
/**
* @exclude from published api.
*/
public static final String Armenian_Armenia = "hy_AM";
/**
* @exclude from published api.
*/
public static final String Indonesian = "id";
/**
* @exclude from published api.
*/
public static final String Indonesian_Indonesia = "id_ID";
/**
* @exclude from published api.
*/
public static final String Icelandic = "is";
/**
* @exclude from published api.
*/
public static final String Icelandic_Iceland = "is_IS";
/**
* @exclude from published api.
*/
public static final String Italian = "it";
/**
* @exclude from published api.
*/
public static final String Italian_Switzerland = "it_CH";
/**
* @exclude from published api.
*/
public static final String Italian_Italy = "it_IT";
/**
* @exclude from published api.
*/
public static final String Japanese = "ja";
/**
* @exclude from published api.
*/
public static final String Japanese_Japan = "ja_JP";
/**
* @exclude from published api.
*/
public static final String Kazakh = "kk";
/**
* @exclude from published api.
*/
public static final String Kazakh_Kazakhstan= "kk_KZ";
/**
* @exclude from published api.
*/
public static final String Khmer = "km";
/**
* @exclude from published api.
*/
public static final String Khmer_Cambodia = "km_KH";
/**
* @exclude from published api.
*/
public static final String Korean = "ko";
/**
* @exclude from published api.
*/
public static final String Korean_Korea = "ko_KR";
/**
* @exclude from published api.
*/
public static final String Korean_Korea_Hani = "ko_KR_HANI";
/**
* @exclude from published api.
*/
public static final String Lao = "lo";
/**
* @exclude from published api.
*/
public static final String Lao_Laos= "lo_LA";
/**
* @exclude from published api.
*/
public static final String Lithuanian = "lt";
/**
* @exclude from published api.
*/
public static final String Lithuanian_Lithuania = "lt_LT";
/**
* @exclude from published api.
*/
public static final String Latvian = "lv";
/**
* @exclude from published api.
*/
public static final String Latvian_Latvia = "lv_LV";
/**
* @exclude from published api.
*/
public static final String Macedonian = "mk";
/**
* @exclude from published api.
*/
public static final String Macedonian_Macedonia = "mk_MK";
/**
* @exclude from published api.
*/
public static final String Malay = "ms";
/**
* @exclude from published api.
*/
public static final String Malay_Malaysia = "ms_MY";
/**
* @exclude from published api.
*/
public static final String Norwegian_Bokmal = "nb";
/**
* @exclude from published api.
*/
public static final String Norwegian_Bokmal_Norway = "nb_NO";
/**
* @exclude from published api.
*/
public static final String Dutch = "nl";
/**
* @exclude from published api.
*/
public static final String Dutch_Belgium = "nl_BE";
/**
* @exclude from published api.
*/
public static final String Dutch_Netherlands = "nl_NL";
/**
* @exclude from published api.
*/
public static final String Norwegian_Nynorsk = "nn";
/**
* @exclude from published api.
*/
public static final String Norwegian_Nynorsk_Norway = "nn_NO";
/**
* @exclude from published api.
*/
public static final String Polish = "pl";
/**
* @exclude from published api.
*/
public static final String Polish_Poland = "pl_PL";
/**
* @exclude from published api.
*/
public static final String Portuguese = "pt";
/**
* @exclude from published api.
*/
public static final String Portuguese_Brazil = "pt_BR";
/**
* @exclude from published api.
*/
public static final String Portuguese_Portugal = "pt_PT";
/**
* @exclude from published api.
*/
public static final String Romanian = "ro";
/**
* @exclude from published api.
*/
public static final String Romanian_Moldova = "ro_MD";
/**
* @exclude from published api.
*/
public static final String Romanian_Romania = "ro_RO";
/**
* @exclude from published api.
*/
public static final String Russian = "ru";
/**
* @exclude from published api.
*/
public static final String Russian_Moldova = "ru_MD";
/**
* @exclude from published api.
*/
public static final String Russian_Russia = "ru_RU";
/**
* @exclude from published api.
*/
public static final String Russian_Ukraine = "ru_UA";
/**
* @exclude from published api.
*/
public static final String Serbo_Croatian = "sh";
/**
* @exclude from published api.
*/
public static final String Serbo_Croatian_BosniaHerzegovina = "sh_BA";
/**
* @exclude from published api.
*/
public static final String Serbo_Croatian_SerbiaMontenegro = "sh_CS";
/**
* @exclude from published api.
*/
public static final String Serbo_Croatian_Croatia = "sh_HR";
/**
* @exclude from published api.
*/
public static final String Slovak = "sk";
/**
* @exclude from published api.
*/
public static final String Slovak_Slovakia = "sk_SK";
/**
* @exclude from published api.
*/
public static final String Slovenian = "sl";
/**
* @exclude from published api.
*/
public static final String Slovenian_Slovenia = "sl_SI";
/**
* @exclude from published api.
*/
public static final String Albanian = "sq";
/**
* @exclude from published api.
*/
public static final String Albanian_Albania = "sq_AL";
/**
* @exclude from published api.
*/
public static final String Serbian = "sr";
/**
* @exclude from published api.
*/
public static final String Serbian_Yugoslavia = "sr_CS";
/**
* @exclude from published api.
*/
public static final String Serbian_Cyrillic = "sr_Cyrl";
/**
* @exclude from published api.
*/
public static final String Serbian_Cyrillic_SerbiaMontenegro = "sr_Cyrl_CS";
/**
* @exclude from published api.
*/
public static final String Serbian_Latin = "sr_Latn";
/**
* @exclude from published api.
*/
public static final String Serbian_Latin_SerbiaMontenegro = "sr_Latn_CS";
/**
* @exclude from published api.
*/
public static final String Swedish = "sv";
/**
* @exclude from published api.
*/
public static final String Swedish_Finland = "sv_FI";
/**
* @exclude from published api.
*/
public static final String Swedish_Sweden = "sv_SE";
/**
* @exclude from published api.
*/
public static final String Thai = "th";
/**
* @exclude from published api.
*/
public static final String Thai_Thailand = "th_TH";
/**
* @exclude from published api.
*/
public static final String Thai_Thailand_Traditional = "th_TH_TH";
/**
* @exclude from published api.
*/
public static final String Tagalog = "tl";
/**
* @exclude from published api.
*/
public static final String Tagalog_Philippines = "tl_PH";
/**
* @exclude from published api.
*/
public static final String Turkish = "tr";
/**
* @exclude from published api.
*/
public static final String Turkish_Turkey = "tr_TR";
/**
* @exclude from published api.
*/
public static final String Ukrainian = "uk";
/**
* @exclude from published api.
*/
public static final String Ukrainian_Ukraine = "uk_UA";
/**
* @exclude from published api.
*/
public static final String Vietnamese = "vi";
/**
* @exclude from published api.
*/
public static final String Vietnamese_Vietnam = "vi_VN";
/**
* @exclude from published api.
*/
public static final String Chinese = "zh";
/**
* @exclude from published api.
*/
public static final String Chinese_China = "zh_CN";
/**
* @exclude from published api.
*/
public static final String Chinese_HongKong = "zh_HK";
/**
* @exclude from published api.
*/
public static final String Chinese_Simplified = "zh_Hans";
/**
* @exclude from published api.
*/
public static final String Chinese_Traditional = "zh_Hant";
/**
* @exclude from published api.
*/
public static final String Chinese_Singapore = "zh_SG";
/**
* @exclude from published api.
*/
public static final String Chinese_Taiwan = "zh_TW";
/**
* The default XFA locale name: en_US.
*/
public static final String DEFAULT_LOCALE = English_US;
private final static int MASK_ARABIC = 0x0001;
private final static int MASK_BIDI = 0x0002;
private final static int MASK_CHINESE = 0x0004;
private final static int MASK_CHINESE_SIMPLIFIED = 0x0008;
private final static int MASK_CHINESE_TRADITIONAL = 0x0010;
private final static int MASK_DICTIONARY = 0x0020;
private final static int MASK_IDEOGRAPHIC = 0x0040;
private final static int MASK_JAPANESE = 0x0080;
private final static int MASK_KOREAN = 0x0100;
private final static int MASK_KOREAN_HANI = 0x0200;
private final static int MASK_THAI = 0x0400;
private static class LocaleDesc {
final String mLocName;
final String mDescName;
// final String mScript;
final String mCharSet;
final int mMask;
LocaleDesc(String locName, String descName, /* String script, */ String charSet, int mask) {
mLocName = locName;
mDescName = descName;
// mScript = script;
mCharSet = charSet;
mMask = mask;
}
}
private final LocaleDesc mLocaleDesc;
private static final LocaleDesc mInvalidLocale = new LocaleDesc("x", "XXX", /* "Zxxx", */ "ibm367", 0x0);
/*
* Runtime (user-defined) store of locale descriptions.
*/
private final static ThreadLocal