![]() |
Ultibo API
C/C++ API for Ultibo Core
|
Go to the source code of this file.
Data Structures | |
| struct | _CPINFO |
| struct | _CPINFOEXA |
| struct | _CPINFOEXW |
| struct | _CODE_TABLE |
| struct | _TRANS_TABLE |
| struct | _LOWER_TABLE |
| struct | _UPPER_TABLE |
| struct | _UNICODE_TABLE |
| struct | _LEAD_BYTES |
| struct | _CODE_PAGE |
Macros | |
| #define | CP_ACP 0 |
| Default to ANSI code page. | |
| #define | CP_OEMCP 1 |
| Default to OEM code page. | |
| #define | CP_MACCP 2 |
| Default to MAC code page. | |
| #define | CP_THREAD_ACP 3 |
| Current thread's ANSI code page. | |
| #define | CP_SYMBOL 42 |
| SYMBOL translations. | |
| #define | CP_UTF16 1200 |
| UTF-16 translation. | |
| #define | CP_UNICODE 1200 |
| Unicode translation. | |
| #define | CP_UTF16_BE 1201 |
| UTF-16 (unicodeFFFE) translation. | |
| #define | CP_UTF7 65000 |
| UTF-7 translation. | |
| #define | CP_UTF8 65001 |
| UTF-8 translation. | |
| #define | CP_OEM_437 437 |
| US. | |
| #define | CP_OEM_720 720 |
| Arabic. | |
| #define | CP_OEM_737 737 |
| Greek. | |
| #define | CP_OEM_775 775 |
| Baltic. | |
| #define | CP_OEM_850 850 |
| Latin I. | |
| #define | CP_OEM_852 852 |
| Latin II. | |
| #define | CP_OEM_857 857 |
| Turkish. | |
| #define | CP_OEM_862 862 |
| Hebrew. | |
| #define | CP_OEM_866 866 |
| Russian. | |
| #define | CP_OEM_874 874 |
| Thai. | |
| #define | CP_OEM_1258 1258 |
| Vietnam. | |
| #define | CP_ANSI_1250 1250 |
| Central Europe. | |
| #define | CP_ANSI_1251 1251 |
| Cyrillic. | |
| #define | CP_ANSI_1252 1252 |
| Latin I. | |
| #define | CP_ANSI_1253 1253 |
| Greek. | |
| #define | CP_ANSI_1254 1254 |
| Turkish. | |
| #define | CP_ANSI_1255 1255 |
| Hebrew. | |
| #define | CP_ANSI_1256 1256 |
| Arabic. | |
| #define | CP_ANSI_1257 1257 |
| Baltic. | |
| #define | CP_ANSI_1258 1258 |
| Vietnam. | |
| #define | CP_ANSI_874 874 |
| Thai. | |
| #define | LOCALE_SYSTEM_DEFAULT 0x800 |
| #define | LOCALE_USER_DEFAULT 0x400 |
| #define | MAX_LEADBYTES 12 |
| 5 ranges, 2 bytes each, 0 terminated | |
| #define | MAX_DEFAULTCHAR 2 |
| single or double byte | |
| #define | MB_PRECOMPOSED 0x00000001 |
| use precomposed chars | |
| #define | MB_COMPOSITE 0x00000002 |
| use composite chars | |
| #define | MB_USEGLYPHCHARS 0x00000004 |
| use glyph chars, not ctrl chars | |
| #define | MB_ERR_INVALID_CHARS 0x00000008 |
| error for invalid chars | |
| #define | WC_COMPOSITECHECK 0x00000200 |
| convert composite to precomposed | |
| #define | WC_DISCARDNS 0x00000010 |
| discard non-spacing chars | |
| #define | WC_SEPCHARS 0x00000020 |
| generate separate chars | |
| #define | WC_DEFAULTCHAR 0x00000040 |
| replace w/ default AnsiChar | |
| #define | WC_NO_BEST_FIT_CHARS 0x00000400 |
| do not use best fit chars | |
| #define | CT_CTYPE1 0x00000001 |
| ctype 1 information | |
| #define | CT_CTYPE2 0x00000002 |
| ctype 2 information | |
| #define | CT_CTYPE3 0x00000004 |
| ctype 3 information | |
| #define | C1_UPPER 0x0001 |
| upper case | |
| #define | C1_LOWER 0x0002 |
| lower case | |
| #define | C1_DIGIT 0x0004 |
| decimal digits | |
| #define | C1_SPACE 0x0008 |
| spacing characters | |
| #define | C1_PUNCT 0x0010 |
| punctuation characters | |
| #define | C1_CNTRL 0x0020 |
| control characters | |
| #define | C1_BLANK 0x0040 |
| blank characters | |
| #define | C1_XDIGIT 0x0080 |
| other digits | |
| #define | C1_ALPHA 0x0100 |
| any linguistic character | |
| #define | C1_DEFINED 0x0200 |
| defined character | |
| #define | C2_LEFTTORIGHT 0x0001 |
| left to right | |
| #define | C2_RIGHTTOLEFT 0x0002 |
| right to left | |
| #define | C2_EUROPENUMBER 0x0003 |
| European number, digit. | |
| #define | C2_EUROPESEPARATOR 0x0004 |
| European numeric separator. | |
| #define | C2_EUROPETERMINATOR 0x0005 |
| European numeric terminator. | |
| #define | C2_ARABICNUMBER 0x0006 |
| Arabic number. | |
| #define | C2_COMMONSEPARATOR 0x0007 |
| common numeric separator | |
| #define | C2_BLOCKSEPARATOR 0x0008 |
| block separator | |
| #define | C2_SEGMENTSEPARATOR 0x0009 |
| segment separator | |
| #define | C2_WHITESPACE 0x000A |
| white space | |
| #define | C2_OTHERNEUTRAL 0x000B |
| other neutrals | |
| #define | C2_NOTAPPLICABLE 0x0000 |
| no implicit directionality | |
| #define | C3_NONSPACING 0x0001 |
| nonspacing character | |
| #define | C3_DIACRITIC 0x0002 |
| diacritic mark | |
| #define | C3_VOWELMARK 0x0004 |
| vowel mark | |
| #define | C3_SYMBOL 0x0008 |
| symbols | |
| #define | C3_KATAKANA 0x0010 |
| katakana character | |
| #define | C3_HIRAGANA 0x0020 |
| hiragana character | |
| #define | C3_HALFWIDTH 0x0040 |
| half width character | |
| #define | C3_FULLWIDTH 0x0080 |
| full width character | |
| #define | C3_IDEOGRAPH 0x0100 |
| ideographic character | |
| #define | C3_KASHIDA 0x0200 |
| Arabic kashida character. | |
| #define | C3_LEXICAL 0x0400 |
| lexical character | |
| #define | C3_ALPHA 0x8000 |
| any linguistic AnsiChar (C1_ALPHA) | |
| #define | C3_NOTAPPLICABLE 0x0000 |
| ctype 3 is not applicable | |
| #define | NORM_IGNORECASE 0x00000001 |
| ignore case | |
| #define | NORM_IGNORENONSPACE 0x00000002 |
| ignore nonspacing chars | |
| #define | NORM_IGNORESYMBOLS 0x00000004 |
| ignore symbols | |
| #define | NORM_IGNOREKANATYPE 0x00010000 |
| ignore kanatype | |
| #define | NORM_IGNOREWIDTH 0x00020000 |
| ignore width | |
| #define | MAP_FOLDCZONE 0x00000010 |
| fold compatibility zone chars | |
| #define | MAP_PRECOMPOSED 0x00000020 |
| convert to precomposed chars | |
| #define | MAP_COMPOSITE 0x00000040 |
| convert to composite chars | |
| #define | MAP_FOLDDIGITS 0x00000080 |
| all digits to ASCII 0-9 | |
| #define | MAP_EXPAND_LIGATURES 0x00002000 |
| expand all ligatures | |
| #define | LCMAP_LOWERCASE 0x00000100 |
| lower case letters | |
| #define | LCMAP_UPPERCASE 0x00000200 |
| upper case letters | |
| #define | LCMAP_SORTKEY 0x00000400 |
| WC sort key (normalize). | |
| #define | LCMAP_BYTEREV 0x00000800 |
| byte reversal | |
| #define | LCMAP_HIRAGANA 0x00100000 |
| map katakana to hiragana | |
| #define | LCMAP_KATAKANA 0x00200000 |
| map hiragana to katakana | |
| #define | LCMAP_HALFWIDTH 0x00400000 |
| map double byte to single byte | |
| #define | LCMAP_FULLWIDTH 0x00800000 |
| map single byte to double byte | |
| #define | LCMAP_LINGUISTIC_CASING 0x01000000 |
| use linguistic rules for casing | |
| #define | LCMAP_SIMPLIFIED_CHINESE 0x02000000 |
| map traditional chinese to simplified chinese | |
| #define | LCMAP_TRADITIONAL_CHINESE 0x04000000 |
| map simplified chinese to traditional chinese | |
| #define | LGRPID_INSTALLED 0x00000001 |
| installed language group ids | |
| #define | LGRPID_SUPPORTED 0x00000002 |
| supported language group ids | |
| #define | LCID_INSTALLED 0x00000001 |
| installed locale ids | |
| #define | LCID_SUPPORTED 0x00000002 |
| supported locale ids | |
| #define | LCID_ALTERNATE_SORTS 0x00000004 |
| alternate sort locale ids | |
| #define | CP_INSTALLED 0x00000001 |
| installed code page ids | |
| #define | CP_SUPPORTED 0x00000002 |
| supported code page ids | |
| #define | SORT_STRINGSORT 0x00001000 |
| STRING Sort: hyphen and apostrophe will sort with all other symbols. | |
| #define | CSTR_LESS_THAN 1 |
| string 1 less than string 2 | |
| #define | CSTR_EQUAL 2 |
| string 1 equal to string 2 | |
| #define | CSTR_GREATER_THAN 3 |
| string 1 greater than string 2 | |
| #define | CTRY_DEFAULT 0 |
| #define | CTRY_ALBANIA 355 |
| Albania. | |
| #define | CTRY_ALGERIA 213 |
| Algeria. | |
| #define | CTRY_ARGENTINA 54 |
| Argentina. | |
| #define | CTRY_ARMENIA 374 |
| Armenia. | |
| #define | CTRY_AUSTRALIA 61 |
| Australia. | |
| #define | CTRY_AUSTRIA 43 |
| Austria. | |
| #define | CTRY_AZERBAIJAN 994 |
| Azerbaijan. | |
| #define | CTRY_BAHRAIN 973 |
| Bahrain. | |
| #define | CTRY_BELARUS 375 |
| Belarus. | |
| #define | CTRY_BELGIUM 32 |
| Belgium. | |
| #define | CTRY_BELIZE 501 |
| Belize. | |
| #define | CTRY_BOLIVIA 591 |
| Bolivia. | |
| #define | CTRY_BRAZIL 55 |
| Brazil. | |
| #define | CTRY_BRUNEI_DARUSSALAM 673 |
| Brunei Darussalam. | |
| #define | CTRY_BULGARIA 359 |
| Bulgaria. | |
| #define | CTRY_CANADA 2 |
| Canada. | |
| #define | CTRY_CARIBBEAN 1 |
| Caribbean. | |
| #define | CTRY_CHILE 56 |
| Chile. | |
| #define | CTRY_COLOMBIA 57 |
| Colombia. | |
| #define | CTRY_COSTA_RICA 506 |
| Costa Rica. | |
| #define | CTRY_CROATIA 385 |
| Croatia. | |
| #define | CTRY_CZECH 420 |
| Czech Republic. | |
| #define | CTRY_DENMARK 45 |
| Denmark. | |
| #define | CTRY_DOMINICAN_REPUBLIC 1 |
| Dominican Republic. | |
| #define | CTRY_ECUADOR 593 |
| Ecuador. | |
| #define | CTRY_EGYPT 20 |
| Egypt. | |
| #define | CTRY_EL_SALVADOR 503 |
| El Salvador. | |
| #define | CTRY_ESTONIA 372 |
| Estonia. | |
| #define | CTRY_FAEROE_ISLANDS 298 |
| Faeroe Islands. | |
| #define | CTRY_FINLAND 358 |
| Finland. | |
| #define | CTRY_FRANCE 33 |
| France. | |
| #define | CTRY_GEORGIA 995 |
| Georgia. | |
| #define | CTRY_GERMANY 49 |
| Germany. | |
| #define | CTRY_GREECE 30 |
| Greece. | |
| #define | CTRY_GUATEMALA 502 |
| Guatemala. | |
| #define | CTRY_HONDURAS 504 |
| Honduras. | |
| #define | CTRY_HONG_KONG 852 |
| Hong Kong S.A.R., P.R.C. | |
| #define | CTRY_HUNGARY 36 |
| Hungary. | |
| #define | CTRY_ICELAND 354 |
| Iceland. | |
| #define | CTRY_INDIA 91 |
| India. | |
| #define | CTRY_INDONESIA 62 |
| Indonesia. | |
| #define | CTRY_IRAN 981 |
| Iran. | |
| #define | CTRY_IRAQ 964 |
| Iraq. | |
| #define | CTRY_IRELAND 353 |
| Ireland. | |
| #define | CTRY_ISRAEL 972 |
| Israel. | |
| #define | CTRY_ITALY 39 |
| Italy. | |
| #define | CTRY_JAMAICA 1 |
| Jamaica. | |
| #define | CTRY_JAPAN 81 |
| Japan. | |
| #define | CTRY_JORDAN 962 |
| Jordan. | |
| #define | CTRY_KAZAKSTAN 7 |
| Kazakstan. | |
| #define | CTRY_KENYA 254 |
| Kenya. | |
| #define | CTRY_KUWAIT 965 |
| Kuwait. | |
| #define | CTRY_KYRGYZSTAN 996 |
| Kyrgyzstan. | |
| #define | CTRY_LATVIA 371 |
| Latvia. | |
| #define | CTRY_LEBANON 961 |
| Lebanon. | |
| #define | CTRY_LIBYA 218 |
| Libya. | |
| #define | CTRY_LIECHTENSTEIN 41 |
| Liechtenstein. | |
| #define | CTRY_LITHUANIA 370 |
| Lithuania. | |
| #define | CTRY_LUXEMBOURG 352 |
| Luxembourg. | |
| #define | CTRY_MACAU 853 |
| Macau S.A.R., PRC. | |
| #define | CTRY_MACEDONIA 389 |
| Former Yugoslav Republic of Macedonia. | |
| #define | CTRY_MALAYSIA 60 |
| Malaysia. | |
| #define | CTRY_MALDIVES 960 |
| Maldives. | |
| #define | CTRY_MEXICO 52 |
| Mexico. | |
| #define | CTRY_MONACO 33 |
| Principality of Monaco. | |
| #define | CTRY_MONGOLIA 976 |
| Mongolia. | |
| #define | CTRY_MOROCCO 212 |
| Morocco. | |
| #define | CTRY_NETHERLANDS 31 |
| Netherlands. | |
| #define | CTRY_NEW_ZEALAND 64 |
| New Zealand. | |
| #define | CTRY_NICARAGUA 505 |
| Nicaragua. | |
| #define | CTRY_NORWAY 47 |
| Norway. | |
| #define | CTRY_OMAN 968 |
| Oman. | |
| #define | CTRY_PAKISTAN 92 |
| Islamic Republic of Pakistan. | |
| #define | CTRY_PANAMA 507 |
| Panama. | |
| #define | CTRY_PARAGUAY 595 |
| Paraguay. | |
| #define | CTRY_PERU 51 |
| Peru. | |
| #define | CTRY_PHILIPPINES 63 |
| Republic of the Philippines. | |
| #define | CTRY_POLAND 48 |
| Poland. | |
| #define | CTRY_PORTUGAL 351 |
| Portugal. | |
| #define | CTRY_PRCHINA 86 |
| People's Republic of China. | |
| #define | CTRY_PUERTO_RICO 1 |
| Puerto Rico. | |
| #define | CTRY_QATAR 974 |
| Qatar. | |
| #define | CTRY_ROMANIA 40 |
| Romania. | |
| #define | CTRY_RUSSIA 7 |
| Russia. | |
| #define | CTRY_SAUDI_ARABIA 966 |
| Saudi Arabia. | |
| #define | CTRY_SERBIA 381 |
| Serbia. | |
| #define | CTRY_SINGAPORE 65 |
| Singapore. | |
| #define | CTRY_SLOVAK 421 |
| Slovak Republic. | |
| #define | CTRY_SLOVENIA 386 |
| Slovenia. | |
| #define | CTRY_SOUTH_AFRICA 27 |
| South Africa. | |
| #define | CTRY_SOUTH_KOREA 82 |
| Korea. | |
| #define | CTRY_SPAIN 34 |
| Spain. | |
| #define | CTRY_SWEDEN 46 |
| Sweden. | |
| #define | CTRY_SWITZERLAND 41 |
| Switzerland. | |
| #define | CTRY_SYRIA 963 |
| Syria. | |
| #define | CTRY_TAIWAN 886 |
| Taiwan. | |
| #define | CTRY_TATARSTAN 7 |
| Tatarstan. | |
| #define | CTRY_THAILAND 66 |
| Thailand. | |
| #define | CTRY_TRINIDAD_Y_TOBAGO 1 |
| Trinidad y Tobago. | |
| #define | CTRY_TUNISIA 216 |
| Tunisia. | |
| #define | CTRY_TURKEY 90 |
| Turkey. | |
| #define | CTRY_UAE 971 |
| U.A.E. | |
| #define | CTRY_UKRAINE 380 |
| Ukraine. | |
| #define | CTRY_UNITED_KINGDOM 44 |
| United Kingdom. | |
| #define | CTRY_UNITED_STATES 1 |
| United States. | |
| #define | CTRY_URUGUAY 598 |
| Uruguay. | |
| #define | CTRY_UZBEKISTAN 7 |
| Uzbekistan. | |
| #define | CTRY_VENEZUELA 58 |
| Venezuela. | |
| #define | CTRY_VIET_NAM 84 |
| Viet Nam. | |
| #define | CTRY_YEMEN 967 |
| Yemen. | |
| #define | CTRY_ZIMBABWE 263 |
| Zimbabwe. | |
| #define | LANG_NEUTRAL 0x00 |
| To Do. | |
| #define | LANG_ENGLISH 0x09 |
| To Do. | |
| #define | SUBLANG_NEUTRAL 0x00 |
| To Do. | |
| #define | SUBLANG_DEFAULT 0x01 |
| user default | |
| #define | SUBLANG_SYS_DEFAULT 0x02 |
| #define | SUBLANG_ENGLISH_US 0x01 |
| To Do. | |
Typedefs | |
| typedef uint32_t | LCID |
| To Do. | |
| typedef uint16_t | LANGID |
| typedef uint32_t | LGRPID |
| typedef uint32_t | LCTYPE |
| typedef uint32_t | CALTYPE |
| typedef uint32_t | CALID |
| typedef struct _CPINFO | CPINFO |
| typedef CPINFO | _cpinfo |
| typedef struct _CPINFOEXA | CPINFOEXA |
| typedef CPINFOEXA | _cpinfoexA |
| typedef struct _CPINFOEXW | CPINFOEXW |
| typedef CPINFOEXW | _cpinfoexW |
| typedef CPINFOEXA | CPINFOEX |
| typedef struct _CODE_TABLE | CODE_TABLE |
| typedef struct _TRANS_TABLE | TRANS_TABLE |
| typedef struct _LOWER_TABLE | LOWER_TABLE |
| typedef struct _UPPER_TABLE | UPPER_TABLE |
| typedef struct _UNICODE_TABLE | UNICODE_TABLE |
| typedef struct _LEAD_BYTES | LEAD_BYTES |
| typedef struct _CODE_PAGE | CODE_PAGE |
Functions | |
| BOOL STDCALL | IsValidCodePage (unsigned int codepage) |
| Determine if a specified code page is valid. | |
| unsigned int STDCALL | GetACP (void) |
| Retrieve the current ANSI code page identifier for the system. | |
| unsigned int STDCALL | GetOEMCP (void) |
| Return the current original equipment manufacturer (OEM) code page identifier for the system. | |
| BOOL STDCALL | SetACP (unsigned int codepage) |
| Set the current ANSI code page identifier for the system. | |
| BOOL STDCALL | SetOEMCP (unsigned int codepage) |
| Set the current original equipment manufacturer (OEM) code page identifier for the system. | |
| unsigned int STDCALL | GetConsoleCP (void) |
| Retrieve the input code page used by the console for the system. | |
| BOOL STDCALL | SetConsoleCP (unsigned int wcodepageid) |
| Set the input code page used by the console for the system. | |
| unsigned int STDCALL | GetConsoleOutputCP (void) |
| Retrieve the output code page used by the console for the system. | |
| BOOL STDCALL | SetConsoleOutputCP (unsigned int wcodepageid) |
| Set the output code page used by the console for the system. | |
| BOOL STDCALL | GetCPInfo (unsigned int codepage, CPINFO *lpcpinfo) |
| Retrieve information about any valid installed or available code page. | |
| BOOL STDCALL | GetCPInfoEx (unsigned int codepage, uint32_t dwflags, CPINFOEXA *lpcpinfoex) |
| Retrieve information about any valid installed or available code page. | |
| BOOL STDCALL | GetCPInfoExA (unsigned int codepage, uint32_t dwflags, CPINFOEXA *lpcpinfoex) |
| Retrieve information about any valid installed or available code page. | |
| BOOL STDCALL | GetCPInfoExW (unsigned int codepage, uint32_t dwflags, CPINFOEXW *lpcpinfoex) |
| Retrieve information about any valid installed or available code page. | |
| BOOL STDCALL | IsValidLocale (LCID locale, uint32_t dwflags) |
| Determine if the specified locale is installed or supported on the system. | |
| LCID STDCALL | GetSystemDefaultLCID (void) |
| Return the locale identifier for the system locale. | |
| LCID STDCALL | GetUserDefaultLCID (void) |
| Return the locale identifier for the user default locale. | |
| BOOL STDCALL | SetSystemDefaultLCID (LCID locale) |
| Set the locale identifier for the system locale. | |
| LANGID STDCALL | GetSystemDefaultLangID (void) |
| Get the System Default Language Identifier (Combined Primary and Sub language Identifiers). | |
| LANGID STDCALL | GetUserDefaultLangID (void) |
| Get the System Default Language Identifier (Combined Primary and Sub language Identifiers). | |
| uint16_t STDCALL | map_page (unsigned int codepage) |
| Map a default code page to the actual current page. | |
| CODE_PAGE *STDCALL | get_page (uint16_t pageid) |
| Find the requested page in the linked list. | |
| BOOL STDCALL | check_page (CODE_PAGE *page) |
| Check that the Page supplied is part of the Linked list. | |
| BOOL STDCALL | link_page (CODE_PAGE *page) |
| Link Page to Prev,Next Siblings and Adjust First/Last. | |
| BOOL STDCALL | unlink_page (CODE_PAGE *page) |
| Unlink Page from Prev,Next Siblings and Adjust First/Last. | |
| BOOL STDCALL | load_page (uint16_t pageid, CODE_TABLE *table, LOWER_TABLE *lower, UPPER_TABLE *upper) |
| Load a code table and allocate memory to create a code page. | |
| BOOL STDCALL | unload_page (uint16_t pageid, CODE_PAGE *page) |
| Unload a code page and release allocated memory. | |
| BOOL STDCALL | default_trans (uint16_t pageid, uint16_t transid) |
| BOOL STDCALL | install_trans (uint16_t pageid, TRANS_TABLE *table) |
| #define CP_ACP 0 |
Default to ANSI code page.
Locale specific constants Default Code Pages
| #define CP_OEMCP 1 |
Default to OEM code page.
| #define CP_MACCP 2 |
Default to MAC code page.
| #define CP_THREAD_ACP 3 |
Current thread's ANSI code page.
| #define CP_SYMBOL 42 |
SYMBOL translations.
| #define CP_UTF16 1200 |
UTF-16 translation.
| #define CP_UNICODE 1200 |
Unicode translation.
| #define CP_UTF16_BE 1201 |
UTF-16 (unicodeFFFE) translation.
| #define CP_UTF7 65000 |
UTF-7 translation.
| #define CP_UTF8 65001 |
UTF-8 translation.
| #define CP_OEM_437 437 |
US.
Code Page Identifiers (See: https://en.wikipedia.org/wiki/Code_page)
| #define CP_OEM_720 720 |
Arabic.
| #define CP_OEM_737 737 |
Greek.
| #define CP_OEM_775 775 |
Baltic.
| #define CP_OEM_850 850 |
Latin I.
| #define CP_OEM_852 852 |
Latin II.
| #define CP_OEM_857 857 |
Turkish.
| #define CP_OEM_862 862 |
Hebrew.
| #define CP_OEM_866 866 |
Russian.
| #define CP_OEM_874 874 |
Thai.
| #define CP_OEM_1258 1258 |
Vietnam.
| #define CP_ANSI_1250 1250 |
Central Europe.
| #define CP_ANSI_1251 1251 |
Cyrillic.
| #define CP_ANSI_1252 1252 |
Latin I.
| #define CP_ANSI_1253 1253 |
Greek.
| #define CP_ANSI_1254 1254 |
Turkish.
| #define CP_ANSI_1255 1255 |
Hebrew.
| #define CP_ANSI_1256 1256 |
Arabic.
| #define CP_ANSI_1257 1257 |
Baltic.
| #define CP_ANSI_1258 1258 |
Vietnam.
| #define CP_ANSI_874 874 |
Thai.
| #define LOCALE_SYSTEM_DEFAULT 0x800 |
Default Locales
| #define LOCALE_USER_DEFAULT 0x400 |
| #define MAX_LEADBYTES 12 |
5 ranges, 2 bytes each, 0 terminated
String Length Maximums
| #define MAX_DEFAULTCHAR 2 |
single or double byte
| #define MB_PRECOMPOSED 0x00000001 |
use precomposed chars
MBCS and Unicode Translation Flags
| #define MB_COMPOSITE 0x00000002 |
use composite chars
| #define MB_USEGLYPHCHARS 0x00000004 |
use glyph chars, not ctrl chars
| #define MB_ERR_INVALID_CHARS 0x00000008 |
error for invalid chars
| #define WC_COMPOSITECHECK 0x00000200 |
convert composite to precomposed
| #define WC_DISCARDNS 0x00000010 |
discard non-spacing chars
| #define WC_SEPCHARS 0x00000020 |
generate separate chars
| #define WC_DEFAULTCHAR 0x00000040 |
replace w/ default AnsiChar
| #define WC_NO_BEST_FIT_CHARS 0x00000400 |
do not use best fit chars
| #define CT_CTYPE1 0x00000001 |
ctype 1 information
Character Type Flags
| #define CT_CTYPE2 0x00000002 |
ctype 2 information
| #define CT_CTYPE3 0x00000004 |
ctype 3 information
| #define C1_UPPER 0x0001 |
upper case
CType 1 Flag Bits
| #define C1_LOWER 0x0002 |
lower case
| #define C1_DIGIT 0x0004 |
decimal digits
| #define C1_SPACE 0x0008 |
spacing characters
| #define C1_PUNCT 0x0010 |
punctuation characters
| #define C1_CNTRL 0x0020 |
control characters
| #define C1_BLANK 0x0040 |
blank characters
| #define C1_XDIGIT 0x0080 |
other digits
| #define C1_ALPHA 0x0100 |
any linguistic character
| #define C1_DEFINED 0x0200 |
defined character
| #define C2_LEFTTORIGHT 0x0001 |
left to right
CType 2 Flag Bits
| #define C2_RIGHTTOLEFT 0x0002 |
right to left
| #define C2_EUROPENUMBER 0x0003 |
European number, digit.
| #define C2_EUROPESEPARATOR 0x0004 |
European numeric separator.
| #define C2_EUROPETERMINATOR 0x0005 |
European numeric terminator.
| #define C2_ARABICNUMBER 0x0006 |
Arabic number.
| #define C2_COMMONSEPARATOR 0x0007 |
common numeric separator
| #define C2_BLOCKSEPARATOR 0x0008 |
block separator
| #define C2_SEGMENTSEPARATOR 0x0009 |
segment separator
| #define C2_WHITESPACE 0x000A |
white space
| #define C2_OTHERNEUTRAL 0x000B |
other neutrals
| #define C2_NOTAPPLICABLE 0x0000 |
no implicit directionality
| #define C3_NONSPACING 0x0001 |
nonspacing character
CType 3 Flag Bits
| #define C3_DIACRITIC 0x0002 |
diacritic mark
| #define C3_VOWELMARK 0x0004 |
vowel mark
| #define C3_SYMBOL 0x0008 |
symbols
| #define C3_KATAKANA 0x0010 |
katakana character
| #define C3_HIRAGANA 0x0020 |
hiragana character
| #define C3_HALFWIDTH 0x0040 |
half width character
| #define C3_FULLWIDTH 0x0080 |
full width character
| #define C3_IDEOGRAPH 0x0100 |
ideographic character
| #define C3_KASHIDA 0x0200 |
Arabic kashida character.
| #define C3_LEXICAL 0x0400 |
lexical character
| #define C3_ALPHA 0x8000 |
any linguistic AnsiChar (C1_ALPHA)
| #define C3_NOTAPPLICABLE 0x0000 |
ctype 3 is not applicable
| #define NORM_IGNORECASE 0x00000001 |
ignore case
String Flags
| #define NORM_IGNORENONSPACE 0x00000002 |
ignore nonspacing chars
| #define NORM_IGNORESYMBOLS 0x00000004 |
ignore symbols
| #define NORM_IGNOREKANATYPE 0x00010000 |
ignore kanatype
| #define NORM_IGNOREWIDTH 0x00020000 |
ignore width
| #define MAP_FOLDCZONE 0x00000010 |
fold compatibility zone chars
Locale Independent Mapping Flags
| #define MAP_PRECOMPOSED 0x00000020 |
convert to precomposed chars
| #define MAP_COMPOSITE 0x00000040 |
convert to composite chars
| #define MAP_FOLDDIGITS 0x00000080 |
all digits to ASCII 0-9
| #define MAP_EXPAND_LIGATURES 0x00002000 |
expand all ligatures
| #define LCMAP_LOWERCASE 0x00000100 |
lower case letters
Locale Dependent Mapping Flags
| #define LCMAP_UPPERCASE 0x00000200 |
upper case letters
| #define LCMAP_SORTKEY 0x00000400 |
WC sort key (normalize).
| #define LCMAP_BYTEREV 0x00000800 |
byte reversal
| #define LCMAP_HIRAGANA 0x00100000 |
map katakana to hiragana
| #define LCMAP_KATAKANA 0x00200000 |
map hiragana to katakana
| #define LCMAP_HALFWIDTH 0x00400000 |
map double byte to single byte
| #define LCMAP_FULLWIDTH 0x00800000 |
map single byte to double byte
| #define LCMAP_LINGUISTIC_CASING 0x01000000 |
use linguistic rules for casing
| #define LCMAP_SIMPLIFIED_CHINESE 0x02000000 |
map traditional chinese to simplified chinese
| #define LCMAP_TRADITIONAL_CHINESE 0x04000000 |
map simplified chinese to traditional chinese
| #define LGRPID_INSTALLED 0x00000001 |
installed language group ids
Language Group Enumeration Flags
| #define LGRPID_SUPPORTED 0x00000002 |
supported language group ids
| #define LCID_INSTALLED 0x00000001 |
installed locale ids
Locale Enumeration Flags
| #define LCID_SUPPORTED 0x00000002 |
supported locale ids
| #define LCID_ALTERNATE_SORTS 0x00000004 |
alternate sort locale ids
| #define CP_INSTALLED 0x00000001 |
installed code page ids
Code Page Enumeration Flags
| #define CP_SUPPORTED 0x00000002 |
supported code page ids
| #define SORT_STRINGSORT 0x00001000 |
STRING Sort: hyphen and apostrophe will sort with all other symbols.
Sorting Flags WORD Sort: culturally correct sort hyphen and apostrophe are special cased example: "coop" and "co-op" will sort together in a list co_op <----— underscore (symbol) coat comb coop co-op <----— hyphen (punctuation) cork went were we're <----— apostrophe (punctuation) co-op <----— hyphen (punctuation) co_op <----— underscore (symbol) coat comb coop cork we're <----— apostrophe (punctuation) went were use string sort method
| #define CSTR_LESS_THAN 1 |
string 1 less than string 2
Compare String Return Values
| #define CSTR_EQUAL 2 |
string 1 equal to string 2
| #define CSTR_GREATER_THAN 3 |
string 1 greater than string 2
| #define CTRY_DEFAULT 0 |
Country/Region Codes
| #define CTRY_ALBANIA 355 |
Albania.
| #define CTRY_ALGERIA 213 |
Algeria.
| #define CTRY_ARGENTINA 54 |
Argentina.
| #define CTRY_ARMENIA 374 |
Armenia.
| #define CTRY_AUSTRALIA 61 |
Australia.
| #define CTRY_AUSTRIA 43 |
Austria.
| #define CTRY_AZERBAIJAN 994 |
Azerbaijan.
| #define CTRY_BAHRAIN 973 |
Bahrain.
| #define CTRY_BELARUS 375 |
Belarus.
| #define CTRY_BELGIUM 32 |
Belgium.
| #define CTRY_BELIZE 501 |
Belize.
| #define CTRY_BOLIVIA 591 |
Bolivia.
| #define CTRY_BRAZIL 55 |
Brazil.
| #define CTRY_BRUNEI_DARUSSALAM 673 |
Brunei Darussalam.
| #define CTRY_BULGARIA 359 |
Bulgaria.
| #define CTRY_CANADA 2 |
Canada.
| #define CTRY_CARIBBEAN 1 |
Caribbean.
| #define CTRY_CHILE 56 |
Chile.
| #define CTRY_COLOMBIA 57 |
Colombia.
| #define CTRY_COSTA_RICA 506 |
Costa Rica.
| #define CTRY_CROATIA 385 |
Croatia.
| #define CTRY_CZECH 420 |
Czech Republic.
| #define CTRY_DENMARK 45 |
Denmark.
| #define CTRY_DOMINICAN_REPUBLIC 1 |
Dominican Republic.
| #define CTRY_ECUADOR 593 |
Ecuador.
| #define CTRY_EGYPT 20 |
Egypt.
| #define CTRY_EL_SALVADOR 503 |
El Salvador.
| #define CTRY_ESTONIA 372 |
Estonia.
| #define CTRY_FAEROE_ISLANDS 298 |
Faeroe Islands.
| #define CTRY_FINLAND 358 |
Finland.
| #define CTRY_FRANCE 33 |
France.
| #define CTRY_GEORGIA 995 |
Georgia.
| #define CTRY_GERMANY 49 |
Germany.
| #define CTRY_GREECE 30 |
Greece.
| #define CTRY_GUATEMALA 502 |
Guatemala.
| #define CTRY_HONDURAS 504 |
Honduras.
| #define CTRY_HONG_KONG 852 |
Hong Kong S.A.R., P.R.C.
| #define CTRY_HUNGARY 36 |
Hungary.
| #define CTRY_ICELAND 354 |
Iceland.
| #define CTRY_INDIA 91 |
India.
| #define CTRY_INDONESIA 62 |
Indonesia.
| #define CTRY_IRAN 981 |
Iran.
| #define CTRY_IRAQ 964 |
Iraq.
| #define CTRY_IRELAND 353 |
Ireland.
| #define CTRY_ISRAEL 972 |
Israel.
| #define CTRY_ITALY 39 |
Italy.
| #define CTRY_JAMAICA 1 |
Jamaica.
| #define CTRY_JAPAN 81 |
Japan.
| #define CTRY_JORDAN 962 |
Jordan.
| #define CTRY_KAZAKSTAN 7 |
Kazakstan.
| #define CTRY_KENYA 254 |
Kenya.
| #define CTRY_KUWAIT 965 |
Kuwait.
| #define CTRY_KYRGYZSTAN 996 |
Kyrgyzstan.
| #define CTRY_LATVIA 371 |
Latvia.
| #define CTRY_LEBANON 961 |
Lebanon.
| #define CTRY_LIBYA 218 |
Libya.
| #define CTRY_LIECHTENSTEIN 41 |
Liechtenstein.
| #define CTRY_LITHUANIA 370 |
Lithuania.
| #define CTRY_LUXEMBOURG 352 |
Luxembourg.
| #define CTRY_MACAU 853 |
Macau S.A.R., PRC.
| #define CTRY_MACEDONIA 389 |
Former Yugoslav Republic of Macedonia.
| #define CTRY_MALAYSIA 60 |
Malaysia.
| #define CTRY_MALDIVES 960 |
Maldives.
| #define CTRY_MEXICO 52 |
Mexico.
| #define CTRY_MONACO 33 |
Principality of Monaco.
| #define CTRY_MONGOLIA 976 |
Mongolia.
| #define CTRY_MOROCCO 212 |
Morocco.
| #define CTRY_NETHERLANDS 31 |
Netherlands.
| #define CTRY_NEW_ZEALAND 64 |
New Zealand.
| #define CTRY_NICARAGUA 505 |
Nicaragua.
| #define CTRY_NORWAY 47 |
Norway.
| #define CTRY_OMAN 968 |
Oman.
| #define CTRY_PAKISTAN 92 |
Islamic Republic of Pakistan.
| #define CTRY_PANAMA 507 |
Panama.
| #define CTRY_PARAGUAY 595 |
Paraguay.
| #define CTRY_PERU 51 |
Peru.
| #define CTRY_PHILIPPINES 63 |
Republic of the Philippines.
| #define CTRY_POLAND 48 |
Poland.
| #define CTRY_PORTUGAL 351 |
Portugal.
| #define CTRY_PRCHINA 86 |
People's Republic of China.
| #define CTRY_PUERTO_RICO 1 |
Puerto Rico.
| #define CTRY_QATAR 974 |
Qatar.
| #define CTRY_ROMANIA 40 |
Romania.
| #define CTRY_RUSSIA 7 |
Russia.
| #define CTRY_SAUDI_ARABIA 966 |
Saudi Arabia.
| #define CTRY_SERBIA 381 |
Serbia.
| #define CTRY_SINGAPORE 65 |
Singapore.
| #define CTRY_SLOVAK 421 |
Slovak Republic.
| #define CTRY_SLOVENIA 386 |
Slovenia.
| #define CTRY_SOUTH_AFRICA 27 |
South Africa.
| #define CTRY_SOUTH_KOREA 82 |
Korea.
| #define CTRY_SPAIN 34 |
Spain.
| #define CTRY_SWEDEN 46 |
Sweden.
| #define CTRY_SWITZERLAND 41 |
Switzerland.
| #define CTRY_SYRIA 963 |
Syria.
| #define CTRY_TAIWAN 886 |
Taiwan.
| #define CTRY_TATARSTAN 7 |
Tatarstan.
| #define CTRY_THAILAND 66 |
Thailand.
| #define CTRY_TRINIDAD_Y_TOBAGO 1 |
Trinidad y Tobago.
| #define CTRY_TUNISIA 216 |
Tunisia.
| #define CTRY_TURKEY 90 |
Turkey.
| #define CTRY_UAE 971 |
U.A.E.
| #define CTRY_UKRAINE 380 |
Ukraine.
| #define CTRY_UNITED_KINGDOM 44 |
United Kingdom.
| #define CTRY_UNITED_STATES 1 |
United States.
| #define CTRY_URUGUAY 598 |
Uruguay.
| #define CTRY_UZBEKISTAN 7 |
Uzbekistan.
| #define CTRY_VENEZUELA 58 |
Venezuela.
| #define CTRY_VIET_NAM 84 |
Viet Nam.
| #define CTRY_YEMEN 967 |
Yemen.
| #define CTRY_ZIMBABWE 263 |
Zimbabwe.
| #define LANG_NEUTRAL 0x00 |
To Do.
Locale Types Time Flags for GetTimeFormat To Do Date Flags for GetDateFormat To Do Calendar Types To Do Calendar Enumeration Value To Do Calendar ID Values To Do Language Group ID Values To Do Primary language ID Values
| #define LANG_ENGLISH 0x09 |
To Do.
| #define SUBLANG_NEUTRAL 0x00 |
To Do.
Sublanguage ID Values language neutral
| #define SUBLANG_DEFAULT 0x01 |
user default
| #define SUBLANG_SYS_DEFAULT 0x02 |
system default
| #define SUBLANG_ENGLISH_US 0x01 |
To Do.
English (USA)
| typedef uint32_t LCID |
To Do.
Locale specific types Locale and Language Ids
| typedef uint16_t LANGID |
| typedef uint32_t LGRPID |
Language Group ID
| typedef uint32_t LCTYPE |
Locale type constant
| typedef uint32_t CALTYPE |
Calendar type constant
| typedef uint32_t CALID |
Calendar ID
| typedef struct _CPINFOEXA CPINFOEXA |
| typedef CPINFOEXA _cpinfoexA |
| typedef struct _CPINFOEXW CPINFOEXW |
| typedef CPINFOEXW _cpinfoexW |
| typedef struct _CODE_TABLE CODE_TABLE |
Code Table - The OEM/ANSI to UNICODE Values of a Code Page
| typedef struct _TRANS_TABLE TRANS_TABLE |
Trans Table - The OEM/ANSI to ANSI/OEM Values of a Code Page
| typedef struct _LOWER_TABLE LOWER_TABLE |
Lower Table - Upper to Lower case values of a Code Page
| typedef struct _UPPER_TABLE UPPER_TABLE |
Upper Table - Lower to Upper case values of a Code Page
| typedef struct _UNICODE_TABLE UNICODE_TABLE |
Unicode Table - The UNICODE to OEM/ANSI Values of a Code Page
| typedef struct _LEAD_BYTES LEAD_BYTES |
Lead Bytes - The extended Page Tables for DBCS Pages
| typedef struct _CODE_PAGE CODE_PAGE |
Each Code Table provides the OEM to UNICODE Values To convert back use the main Unicode Table in the Code Page which was populated when the Code Page was loaded Code Page - The actual information for an OEM/ANSI Code Page
Determine if a specified code page is valid.
Locale Functions
| unsigned int STDCALL GetACP | ( | void | ) |
Retrieve the current ANSI code page identifier for the system.
| unsigned int STDCALL GetOEMCP | ( | void | ) |
Return the current original equipment manufacturer (OEM) code page identifier for the system.
Set the current ANSI code page identifier for the system.
Set the current original equipment manufacturer (OEM) code page identifier for the system.
| unsigned int STDCALL GetConsoleCP | ( | void | ) |
Retrieve the input code page used by the console for the system.
Set the input code page used by the console for the system.
| unsigned int STDCALL GetConsoleOutputCP | ( | void | ) |
Retrieve the output code page used by the console for the system.
Set the output code page used by the console for the system.
Retrieve information about any valid installed or available code page.
Retrieve information about any valid installed or available code page.
Retrieve information about any valid installed or available code page.
Retrieve information about any valid installed or available code page.
Determine if the specified locale is installed or supported on the system.
Return the locale identifier for the system locale.
Return the locale identifier for the user default locale.
Set the locale identifier for the system locale.
Get the System Default Language Identifier (Combined Primary and Sub language Identifiers).
Get the System Default Language Identifier (Combined Primary and Sub language Identifiers).
| uint16_t STDCALL map_page | ( | unsigned int | codepage | ) |
Map a default code page to the actual current page.
Locale Helper Functions
Check that the Page supplied is part of the Linked list.
Unlink Page from Prev,Next Siblings and Adjust First/Last.
| BOOL STDCALL load_page | ( | uint16_t | pageid, |
| CODE_TABLE * | table, | ||
| LOWER_TABLE * | lower, | ||
| UPPER_TABLE * | upper ) |
Load a code table and allocate memory to create a code page.
Unload a code page and release allocated memory.
| BOOL STDCALL install_trans | ( | uint16_t | pageid, |
| TRANS_TABLE * | table ) |