include: Added IDN support functions and types.
This commit is contained in:
parent
4121ac1224
commit
148b38d923
|
@ -24,6 +24,12 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _NORMALIZE_
|
||||||
|
# define WINNORMALIZEAPI DECLSPEC_IMPORT
|
||||||
|
#else
|
||||||
|
# define WINNORMALIZEAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Country codes */
|
/* Country codes */
|
||||||
#define CTRY_DEFAULT (0)
|
#define CTRY_DEFAULT (0)
|
||||||
#define CTRY_ALBANIA (355)
|
#define CTRY_ALBANIA (355)
|
||||||
|
@ -532,9 +538,21 @@ extern "C" {
|
||||||
#define LGRPID_GEORGIAN 0x10
|
#define LGRPID_GEORGIAN 0x10
|
||||||
#define LGRPID_ARMENIAN 0x11
|
#define LGRPID_ARMENIAN 0x11
|
||||||
|
|
||||||
|
/* IDN defines. */
|
||||||
|
#define IDN_ALLOW_UNASSIGNED 0x1
|
||||||
|
#define IDN_USE_STD3_ASCII_RULES 0x2
|
||||||
|
|
||||||
/* Types
|
/* Types
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
typedef enum _NORM_FORM {
|
||||||
|
NormalizationOther = 0,
|
||||||
|
NormalizationC = 0x1,
|
||||||
|
NormalizationD = 0x2,
|
||||||
|
NormalizationKC = 0x5,
|
||||||
|
NormalizationKD = 0x6
|
||||||
|
} NORM_FORM;
|
||||||
|
|
||||||
typedef DWORD CALID;
|
typedef DWORD CALID;
|
||||||
typedef DWORD CALTYPE;
|
typedef DWORD CALTYPE;
|
||||||
typedef LONG GEOID;
|
typedef LONG GEOID;
|
||||||
|
@ -790,8 +808,12 @@ WINBASEAPI LCID WINAPI GetUserDefaultLCID(void);
|
||||||
WINBASEAPI INT WINAPI GetUserDefaultLocaleName(LPWSTR,int);
|
WINBASEAPI INT WINAPI GetUserDefaultLocaleName(LPWSTR,int);
|
||||||
WINBASEAPI LANGID WINAPI GetUserDefaultUILanguage(void);
|
WINBASEAPI LANGID WINAPI GetUserDefaultUILanguage(void);
|
||||||
WINBASEAPI GEOID WINAPI GetUserGeoID(GEOCLASS);
|
WINBASEAPI GEOID WINAPI GetUserGeoID(GEOCLASS);
|
||||||
|
WINNORMALIZEAPI INT WINAPI IdnToAscii(DWORD,LPCWSTR,INT,LPWSTR,INT);
|
||||||
|
WINNORMALIZEAPI INT WINAPI IdnToNameprepUnicode(DWORD,LPCWSTR,INT,LPWSTR,INT);
|
||||||
|
WINNORMALIZEAPI INT WINAPI IdnToUnicode(DWORD,LPCWSTR,INT,LPWSTR,INT);
|
||||||
WINBASEAPI BOOL WINAPI IsDBCSLeadByte(BYTE);
|
WINBASEAPI BOOL WINAPI IsDBCSLeadByte(BYTE);
|
||||||
WINBASEAPI BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
|
WINBASEAPI BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
|
||||||
|
WINNORMALIZEAPI BOOL WINAPI IsNormalizedString(NORM_FORM,LPCWSTR,INT);
|
||||||
WINBASEAPI BOOL WINAPI IsValidCodePage(UINT);
|
WINBASEAPI BOOL WINAPI IsValidCodePage(UINT);
|
||||||
WINBASEAPI BOOL WINAPI IsValidLocale(LCID,DWORD);
|
WINBASEAPI BOOL WINAPI IsValidLocale(LCID,DWORD);
|
||||||
WINBASEAPI BOOL WINAPI IsValidLanguageGroup(LGRPID,DWORD);
|
WINBASEAPI BOOL WINAPI IsValidLanguageGroup(LGRPID,DWORD);
|
||||||
|
@ -801,6 +823,7 @@ WINBASEAPI INT WINAPI LCMapStringW(LCID,DWORD,LPCWSTR,INT,LPWSTR,INT);
|
||||||
#define LCMapString WINELIB_NAME_AW(LCMapString)
|
#define LCMapString WINELIB_NAME_AW(LCMapString)
|
||||||
WINBASEAPI LCID WINAPI LocaleNameToLCID(LPCWSTR,DWORD);
|
WINBASEAPI LCID WINAPI LocaleNameToLCID(LPCWSTR,DWORD);
|
||||||
WINBASEAPI INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
|
WINBASEAPI INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
|
||||||
|
WINNORMALIZEAPI INT WINAPI NormalizeString(NORM_FORM,LPCWSTR,INT,LPWSTR,INT);
|
||||||
WINBASEAPI INT WINAPI SetCalendarInfoA(LCID,CALID,CALTYPE,LPCSTR);
|
WINBASEAPI INT WINAPI SetCalendarInfoA(LCID,CALID,CALTYPE,LPCSTR);
|
||||||
WINBASEAPI INT WINAPI SetCalendarInfoW(LCID,CALID,CALTYPE,LPCWSTR);
|
WINBASEAPI INT WINAPI SetCalendarInfoW(LCID,CALID,CALTYPE,LPCWSTR);
|
||||||
#define SetCalendarInfo WINELIB_NAME_AW(SetCalendarInfo)
|
#define SetCalendarInfo WINELIB_NAME_AW(SetCalendarInfo)
|
||||||
|
|
Loading…
Reference in New Issue