| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | _languages
Tables used in normalizing portions of the id. |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String[] | |
| public static String[] | getISOLanguages()
Returns a list of all 2-letter language codes defined in ISO 639 plus additional 3-letter codes determined to be useful for locale generation as defined by Unicode CLDR. |
| public static String | |
| public static String |
| _countries | back to summary |
|---|---|
| private static final String[] _countries | |
| _countries3 | back to summary |
|---|---|
| private static final String[] _countries3 | |
| _deprecatedCountries | back to summary |
|---|---|
| private static final String[] _deprecatedCountries | |
| _languages | back to summary |
|---|---|
| private static final String[] _languages Tables used in normalizing portions of the id. | |
| _languages3 | back to summary |
|---|---|
| private static final String[] _languages3 | |
| _obsoleteCountries | back to summary |
|---|---|
| private static final String[] _obsoleteCountries | |
| _obsoleteCountries3 | back to summary |
|---|---|
| private static final String[] _obsoleteCountries3 | |
| _obsoleteLanguages | back to summary |
|---|---|
| private static final String[] _obsoleteLanguages | |
| _obsoleteLanguages3 | back to summary |
|---|---|
| private static final String[] _obsoleteLanguages3 | |
| _replacementCountries | back to summary |
|---|---|
| private static final String[] _replacementCountries | |
| _replacementLanguages | back to summary |
|---|---|
| private static final String[] _replacementLanguages | |
| LocaleIDs | back to summary |
|---|---|
| public LocaleIDs() | |
| findIndex | back to summary |
|---|---|
| private static int findIndex(String[] array, String target) linear search of the string array. the arrays are unfortunately ordered by the two-letter target code, not the three-letter search code, which seems backwards. | |
| getCurrentCountryID | back to summary |
|---|---|
| public static String getCurrentCountryID(String oldID) | |
| getCurrentLanguageID | back to summary |
|---|---|
| public static String getCurrentLanguageID(String oldID) | |
| getISO3Country | back to summary |
|---|---|
| public static String getISO3Country(String country) Returns a three-letter abbreviation for the provided country. If the provided country is empty, returns the empty string. Otherwise, returns an uppercase ISO 3166 3-letter country code.
| |
| getISO3Language | back to summary |
|---|---|
| public static String getISO3Language(String language) Returns a three-letter abbreviation for the language. If language is
empty, returns the empty string. Otherwise, returns
a lowercase ISO 639-2/T language code.
The ISO 639-2 language codes can be found on-line at
| |
| getISOCountries | back to summary |
|---|---|
| public static String[] getISOCountries() Returns a list of all 2-letter country codes defined in ISO 3166. Can be used to create Locales.
| |
| getISOLanguages | back to summary |
|---|---|
| public static String[] getISOLanguages() Returns a list of all 2-letter language codes defined in ISO 639 plus additional 3-letter codes determined to be useful for locale generation as defined by Unicode CLDR. Can be used to create Locales. [NOTE: ISO 639 is not a stable standard-- some languages' codes have changed. The list this function returns includes both the new and the old codes for the languages whose codes have changed.]
| |
| threeToTwoLetterLanguage | back to summary |
|---|---|
| public static String threeToTwoLetterLanguage(String lang) | |
| threeToTwoLetterRegion | back to summary |
|---|---|
| public static String threeToTwoLetterRegion(String region) | |