ULAPI
8.0
|
An enhanced enumerated type used to represent languages. More...
#include <ullanguage.h>
Public Member Functions | |
ULLanguage () | |
ULLanguage (const ULLanguage &other) | |
ULLanguage (int id) | |
ULLanguage (const char *otherStringID) | |
virtual | ~ULLanguage () |
virtual void | clear () |
ULLanguage & | operator= (const ULLanguage &other) |
ULLanguage & | operator= (int otherID) |
ULLanguage & | operator= (const char *otherStringID) |
bool | operator== (const ULLanguage &other) const |
bool | operator== (const char *otherStringID) const |
bool | operator!= (const ULLanguage &other) const |
bool | operator!= (const char *otherStringID) const |
bool | operator< (const ULLanguage &other) const |
bool | operator< (const char *otherStringID) const |
const char * | getTwoLetterISOCode () const |
const char * | getThreeLetterISOCode () const |
Public Member Functions inherited from ULEnum | |
ULEnum () | |
ULEnum (const ULEnum &other) | |
virtual | ~ULEnum () |
virtual ULEnum & | operator= (const ULEnum &other) |
operator int () const | |
uluint32 | hash (uluint32 tableSize) const |
int | getID () const |
const char * | getStringID () const |
virtual const char * | getDisplayString () const |
Static Public Member Functions | |
static int | getEnumeratedValueCount () |
static const ULLanguage & | getInstance (int id) |
Static Public Member Functions inherited from ULEnum | |
static bool | isEnumeratedFeature (const ULString &featureName) |
static uluint32 | getRunTimeFeatureID (const ULString &featureName) |
Static Public Attributes | |
static const ULLanguage & | NoLanguage = ULLanguage("nolanguage", "nolanguage", "No language") |
static const ULLanguage & | Any = ULLanguage("any", "any", "Any language") |
static const ULLanguage & | English = ULLanguage("en", "eng", "English") |
static const ULLanguage & | French = ULLanguage("fr", "fra", "French") |
static const ULLanguage & | Spanish = ULLanguage("es", "spa", "Spanish") |
static const ULLanguage & | German = ULLanguage("de", "deu", "German") |
static const ULLanguage & | Italian = ULLanguage("it", "ita", "Italian") |
static const ULLanguage & | Portuguese = ULLanguage("pt", "por", "Portuguese") |
static const ULLanguage & | Norwegian = ULLanguage("no", "nor", "Norwegian") |
static const ULLanguage & | Latin = ULLanguage("la", "lat", "Latin") |
static const ULLanguage & | Esperanto = ULLanguage("eo", "epo", "Esperanto") |
static const ULLanguage & | Russian = ULLanguage("ru", "rus", "Russian") |
static const ULLanguage & | Dutch = ULLanguage("nl", "nld", "Dutch") |
static const ULLanguage & | Polish = ULLanguage("pl", "pol", "Polish") |
static const ULLanguage & | Chinese = ULLanguage("zh", "zho", "Chinese") |
static const ULLanguage & | Mandarin = ULLanguage("cmn", "cmn", "Mandarin") |
static const ULLanguage & | Cantonese = ULLanguage("yue", "yue", "Cantonese") |
static const ULLanguage & | Klingon = ULLanguage("tlh", "tlh", "Klingon") |
static const ULLanguage & | Turkish = ULLanguage("tr", "tur", "Turkish") |
static const ULLanguage & | Haitian = ULLanguage("ht", "hat", "Haitian") |
static const ULLanguage & | Swedish = ULLanguage("sv", "swe", "Swedish") |
static const ULLanguage & | Danish = ULLanguage("da", "dan", "Danish") |
static const ULLanguage & | Japanese = ULLanguage("ja", "jpn", "Japanese") |
static const ULLanguage & | Hindi = ULLanguage("hi", "hin", "Hindi") |
static const ULLanguage & | Korean = ULLanguage("ko", "kor", "Korean") |
static const ULLanguage & | Icelandic = ULLanguage("is", "isl", "Icelandic") |
static const ULLanguage & | SwissGerman = ULLanguage("gsw", "gsw", "Swiss German") |
static const ULLanguage & | Romanian = ULLanguage("ro", "ron", "Romanian") |
static const ULLanguage & | Lithuanian = ULLanguage("lt", "lit", "Lithuanian") |
static const ULLanguage & | Bulgarian = ULLanguage("bg", "bul", "Bulgarian") |
static const ULLanguage & | Latvian = ULLanguage("lv", "lav", "Latvian") |
static const ULLanguage & | Arabic = ULLanguage("ar", "ara", "Arabic") |
static const ULLanguage & | Hebrew = ULLanguage("he", "heb", "Hebrew") |
static const ULLanguage & | Swahili = ULLanguage("sw", "swa", "Swahili") |
static const ULLanguage & | Urdu = ULLanguage("ur", "urd", "Urdu") |
static const ULLanguage & | Sanskrit = ULLanguage("sa", "san", "Sanskrit") |
static const ULLanguage & | Persian = ULLanguage("fa", "fas", "Persian") |
static const ULLanguage & | Thai = ULLanguage("th", "tha", "Thai") |
static const ULLanguage & | Vietnamese = ULLanguage("vi", "vie", "Vietnamese") |
static const ULLanguage & | Synonyms = ULLanguage("syn", "syn", "Synonyms") |
Additional Inherited Members | |
Protected Attributes inherited from ULEnum | |
int | id |
const char * | stringID |
const char * | displayString |
Static Protected Attributes inherited from ULEnum | |
static ULHashTable< ULString, uluint32 > | featureNameToRunTimeID |
An enhanced enumerated type used to represent languages.
See ULEnum for a discussion of enhanced enumerated types in ULAPI.
ULLanguage::ULLanguage | ( | ) |
Default constructor.
ULLanguage::ULLanguage | ( | const ULLanguage & | other | ) |
Copy constructor.
ULLanguage::ULLanguage | ( | int | otherID | ) |
Constructor by id.
ULLanguage::ULLanguage | ( | const char * | otherStringID | ) |
Constructor.
[in] | otherStringID | The string ID corresponding to the ULLanguage value this ULLanguage should be copied from. |
|
virtual |
Destructor.
|
virtual |
Sets this ULLanguage object to its default state.
Reimplemented from ULEnum.
|
static |
|
static |
[in] | id | the desired integer id. |
const char * ULLanguage::getThreeLetterISOCode | ( | ) | const |
const char * ULLanguage::getTwoLetterISOCode | ( | ) | const |
bool ULLanguage::operator!= | ( | const ULLanguage & | other | ) | const |
Inequality operator.
bool ULLanguage::operator!= | ( | const char * | stringID | ) | const |
Inequality operator.
[in] | stringID | The string to compare to this object's string ID. |
bool ULLanguage::operator< | ( | const ULLanguage & | other | ) | const |
Comparison operator.
[in] | other | The other ULLanguage object. |
bool ULLanguage::operator< | ( | const char * | stringID | ) | const |
Comparison operator.
[in] | stringID | The string ID. |
ULLanguage & ULLanguage::operator= | ( | const ULLanguage & | other | ) |
Assignment operator.
ULLanguage & ULLanguage::operator= | ( | int | otherID | ) |
Assignment operator.
[in] | otherID | The ID of the enumerated value of ULLanguage to assign to this ULLanguage. |
ULLanguage & ULLanguage::operator= | ( | const char * | otherStringID | ) |
Assignment operator.
[in] | stringID | If stringID is the string ID of one of the ULLanguage enumerated values, then this object is copied from that ULLanguage. Otherwise, this object is assigned the default value. |
bool ULLanguage::operator== | ( | const ULLanguage & | other | ) | const |
Equality operator.
bool ULLanguage::operator== | ( | const char * | stringID | ) | const |
Equality operator.
[in] | stringID | The string to compare to this object's string ID. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |