📄 hxlang.h
字号:
#endif#ifndef LANG_SANSKRIT#define LANG_SANSKRIT 0x4f#endif#ifndef LANG_SWAHILI#define LANG_SWAHILI 0x41#endif#ifndef LANG_TAMIL#define LANG_TAMIL 0x49#endif#ifndef LANG_TATAR#define LANG_TATAR 0x44#endif#ifndef LANG_TELUGU#define LANG_TELUGU 0x4a#endif#ifndef LANG_UZBEK#define LANG_UZBEK 0x43#endif#ifndef SUBLANG_UZBEK_LATIN#define SUBLANG_UZBEK_LATIN 0x01 // Uzbek (Latin)#endif#ifndef SUBLANG_UZBEK_CYRILLIC#define SUBLANG_UZBEK_CYRILLIC 0x02 // Uzbek (Cyrillic)#endif#ifndef SUBLANG_SERBO_CROATIAN_LATIN#define SUBLANG_SERBO_CROATIAN_LATIN 0x01 /* Croato-Serbian (Latin) */#endif#ifndef LANG_URDU#define LANG_URDU 0x20#endiftypedef struct _HXLangMapping { const char* szISO639; UINT16 nLangID; } HXLangMapping; class CHXLang{public: // Given a languageID (defined in olenls.h), this returns the // index of the exact language, or -1 if not found. static INT16 FindExact(UINT16 nLangID); static INT16 FindExact(const char* szISO639); // Given a languageID (defined in olenls.h), this returns the // index of the closest matching language, or -1 static INT16 FindClosest(UINT16 nLangID); // Given an index from 0 to GetCount()-1 ... static const char* GetISO639(INT16 nIndex); static UINT16 GetLangID(INT16 nIndex); // Returns the # of langauges in the static database static INT16 GetCount(); static BOOL IsValidIndex(INT16 nIdx) { return(nIdx>=0 && nIdx<GetCount()); } private: static const HXLangMapping Languages[];};#endif/* "Afrikaans", MAKELANGID(LANG_AFRIKAANS,SUBLANG_NEUTRAL)"Albanian", MAKELANGID(LANG_ALBANIAN,SUBLANG_NEUTRAL)"Arabic", MAKELANGID(LANG_ARABIC,SUBLANG_NEUTRAL)"Arabic-Algeria", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_ALGERIA)"Arabic-Bahrain", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_BAHRAIN)"Arabic-Egypt", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_EGYPT)"Arabic-Iraq", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_IRAQ)"Arabic-Jordan", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_JORDAN) "Arabic-Kuwait", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_KUWAIT) "Arabic-Lebanon", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_LEBANON) "Arabic-Libya", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_LIBYA) "Arabic-Morocco", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_MOROCCO) "Arabic-Oman", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_OMAN) "Arabic-Qatar", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_QATAR) "Arabic-Saudi Arabia", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_SAUDI_ARABIA)"Arabic-Syria", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_SYRIA) "Arabic-Tunisia", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_TUNISIA) "Arabic-UAE", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_UAE) "Arabic-Yemen", MAKELANGID(LANG_ARABIC,SUBLANG_ARABIC_YEMEN) "Basque", MAKELANGID(LANG_BASQUE,SUBLANG_NEUTRAL) "Bulgarian", MAKELANGID(LANG_BULGARIAN,SUBLANG_NEUTRAL) "Catalan", MAKELANGID(LANG_CATALAN,SUBLANG_NEUTRAL)"Chinese", MAKELANGID(LANG_CHINESE,SUBLANG_NEUTRAL)"Chinese-China", MAKELANGID(LANG_CHINESE,SUBLANG_CHINESE_SIMPLIFIED) "Chinese-Hong Kong", MAKELANGID(LANG_CHINESE,SUBLANG_CHINESE_HONGKONG) "Chinese-Singapore", MAKELANGID(LANG_CHINESE,SUBLANG_CHINESE_SINGAPORE) "Chinese-Taiwan", MAKELANGID(LANG_CHINESE,SUBLANG_CHINESE_TRADITIONAL) "Croatian", MAKELANGID(LANG_CROATIAN,SUBLANG_NEUTRAL)"Czech", MAKELANGID(LANG_CZECH,SUBLANG_NEUTRAL)"Danish", MAKELANGID(LANG_DANISH,SUBLANG_NEUTRAL) "Dutch", MAKELANGID(LANG_DUTCH,SUBLANG_NEUTRAL) "Dutch-Belgian", MAKELANGID(LANG_DUTCH,SUBLANG_DUTCH_BELGIAN) "English", MAKELANGID(LANG_ENGLISH,SUBLANG_NEUTRAL) "English-Australia", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_AUS) "English-Belize", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_BELIZE) "English-Canada", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_CAN) "English-Caribbean", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_CARIBBEAN) "English-Irish", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_EIRE) "English-Jamaica", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_JAMAICA) "English-New Zealand", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_NZ) "English-South Africa", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_SOUTH_AFRICA)"English-Trinidad", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_TRINIDAD) "English-UK", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_UK) "English-US", MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US) "Estonian", MAKELANGID(LANG_ESTONIAN,SUBLANG_NEUTRAL) "Faroese", MAKELANGID(LANG_FAEROESE,SUBLANG_NEUTRAL) "Finnish", MAKELANGID(LANG_FINNISH,SUBLANG_NEUTRAL) "French", MAKELANGID(LANG_FRENCH,SUBLANG_NEUTRAL) "French-Belgian", MAKELANGID(LANG_FRENCH,SUBLANG_FRENCH_BELGIAN) "French-Canadian", MAKELANGID(LANG_FRENCH,SUBLANG_FRENCH_CANADIAN) "French-Luxembourg", MAKELANGID(LANG_FRENCH,SUBLANG_FRENCH_LUXEMBOURG) "French-Swiss", MAKELANGID(LANG_FRENCH,SUBLANG_FRENCH_SWISS) "German", MAKELANGID(LANG_GERMAN,SUBLANG_NEUTRAL) "German-Austrian", MAKELANGID(LANG_GERMAN,SUBLANG_GERMAN_AUSTRIAN) "German-Liechtenstein", MAKELANGID(LANG_GERMAN,SUBLANG_GERMAN_LIECHTENSTEIN) "German-Luxembourg", MAKELANGID(LANG_GERMAN,SUBLANG_GERMAN_LUXEMBOURG) "German-Swiss", MAKELANGID(LANG_GERMAN,SUBLANG_GERMAN_SWISS) "Greek", MAKELANGID(LANG_GREEK,SUBLANG_NEUTRAL) "Hebrew", MAKELANGID(LANG_HEBREW,SUBLANG_NEUTRAL) "Hungarian", MAKELANGID(LANG_HUNGARIAN,SUBLANG_NEUTRAL) "Icelandic", MAKELANGID(LANG_ICELANDIC,SUBLANG_NEUTRAL) "Indonesian", MAKELANGID(LANG_INDONESIAN,SUBLANG_NEUTRAL) "Italian", MAKELANGID(LANG_ITALIAN,SUBLANG_NEUTRAL) "Italian-Swiss", MAKELANGID(LANG_ITALIAN,SUBLANG_ITALIAN_SWISS) "Japanese", MAKELANGID(LANG_JAPANESE,SUBLANG_NEUTRAL) "Korean", MAKELANGID(LANG_KOREAN,SUBLANG_NEUTRAL) "Korean-Johab", MAKELANGID(LANG_KOREAN,SUBLANG_KOREAN_JOHAB) "Latvian", MAKELANGID(LANG_LATVIAN,SUBLANG_NEUTRAL) "Lithuanian", MAKELANGID(LANG_LITHUANIAN,SUBLANG_NEUTRAL) "Norwegian", MAKELANGID(LANG_NORWEGIAN,SUBLANG_NEUTRAL) "Polish", MAKELANGID(LANG_POLISH,SUBLANG_NEUTRAL) "Portuguese", MAKELANGID(LANG_PORTUGUESE,SUBLANG_NEUTRAL) "Portuguese-Brazilian", MAKELANGID(LANG_PORTUGUESE,SUBLANG_PORTUGUESE_BRAZILIAN) "Romanian", MAKELANGID(LANG_ROMANIAN,SUBLANG_NEUTRAL) "Russian", MAKELANGID(LANG_RUSSIAN,SUBLANG_NEUTRAL) "Serbian", MAKELANGID(LANG_SERBIAN,SUBLANG_SERBIAN_CYRILLIC) "Slovak", MAKELANGID(LANG_SLOVAK,SUBLANG_NEUTRAL) "Slovenian", MAKELANGID(LANG_SLOVENIAN,SUBLANG_NEUTRAL) "Spanish", MAKELANGID(LANG_SPANISH,SUBLANG_NEUTRAL) "Spanish-Argentina", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_ARGENTINA) "Spanish-Bolivia", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_BOLIVIA ) "Spanish-Chile", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_CHILE ) "Spanish-Colombia", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_COLOMBIA ) "Spanish-Costa Rica", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_COSTA_RICA)"Spanish-Dominican Republic",MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_DOMINICAN_R)"Spanish-Ecuador", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_ECUADOR ) "Spanish-El Salvador", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_EL_SALVADOR) "Spanish-Guatemala", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_GUATEMALA ) "Spanish-Honduras", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_HONDURAS ) "Spanish-Mexican", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_MEXICAN ) "Spanish-Modern", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_MODERN ) "Spanish-Nicaragua", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_NICARAGUA) "Spanish-Panama", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_PANAMA ) "Spanish-Paraguay", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_PARAGUAY ) "Spanish-Peru", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_PERU ) "Spanish-Puerto Rico", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_PUERTO_RICO) "Spanish-Uruguay", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_URUGUAY ) "Spanish-Venezvela", MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH_VENEZUELA) "Swedish", MAKELANGID(LANG_SWEDISH,SUBLANG_NEUTRAL) "Swedish-Finland", MAKELANGID(LANG_SWEDISH,SUBLANG_SWEDISH_FINLAND)"Thai", MAKELANGID(LANG_THAI,SUBLANG_NEUTRAL) "Turkish", MAKELANGID(LANG_TURKISH,SUBLANG_NEUTRAL) "Ukrainian", MAKELANGID(LANG_UKRAINIAN,SUBLANG_NEUTRAL) "Vietnamese", MAKELANGID(LANG_VIETNAMESE,SUBLANG_NEUTRAL) */// These are known languages that we don't have lang ID's for, so for now// they aren't included in our master list.// "mk","Macedonian", // "mg","Malagasy", // "ms","Malay", // "ml","Maltese", // "mi","Maori", // "mr","Marathi", // "mo","Moldavian", // "mn","Mongolian", // "na","Nauru", // "ne","Nepali", // "or","Oriya", // "om","Oromo", // "pa","Panjabi", // "fa","Persian", // "ps","Pushto", // "qu","Quechua", // "rn","Rundi", // "sm","Samoan", // "sg","Sango", // "sa","Sanskrit", // "sn","Shona", // "sd","Sindhi", // "si","Singhalese", // "ss","Siswant", // "so","Somali", // "st","Sotho, Southern", //
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -