Thomas Mullaly : include: Added IDN support functions and types.
Alexandre Julliard
julliard at winehq.org
Mon Jan 3 10:58:04 CST 2011
Module: wine
Branch: master
Commit: 148b38d9237c61029f7ca022aeb9269a00012a50
URL: http://source.winehq.org/git/wine.git/?a=commit;h=148b38d9237c61029f7ca022aeb9269a00012a50
Author: Thomas Mullaly <thomas.mullaly at gmail.com>
Date: Sun Jan 2 16:20:20 2011 -0500
include: Added IDN support functions and types.
---
include/winnls.h | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/include/winnls.h b/include/winnls.h
index adefcee..6ce50e1 100644
--- a/include/winnls.h
+++ b/include/winnls.h
@@ -24,6 +24,12 @@
extern "C" {
#endif
+#ifndef _NORMALIZE_
+# define WINNORMALIZEAPI DECLSPEC_IMPORT
+#else
+# define WINNORMALIZEAPI
+#endif
+
/* Country codes */
#define CTRY_DEFAULT (0)
#define CTRY_ALBANIA (355)
@@ -532,9 +538,21 @@ extern "C" {
#define LGRPID_GEORGIAN 0x10
#define LGRPID_ARMENIAN 0x11
+/* IDN defines. */
+#define IDN_ALLOW_UNASSIGNED 0x1
+#define IDN_USE_STD3_ASCII_RULES 0x2
+
/* Types
*/
+typedef enum _NORM_FORM {
+ NormalizationOther = 0,
+ NormalizationC = 0x1,
+ NormalizationD = 0x2,
+ NormalizationKC = 0x5,
+ NormalizationKD = 0x6
+} NORM_FORM;
+
typedef DWORD CALID;
typedef DWORD CALTYPE;
typedef LONG GEOID;
@@ -790,8 +808,12 @@ WINBASEAPI LCID WINAPI GetUserDefaultLCID(void);
WINBASEAPI INT WINAPI GetUserDefaultLocaleName(LPWSTR,int);
WINBASEAPI LANGID WINAPI GetUserDefaultUILanguage(void);
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 IsDBCSLeadByteEx(UINT,BYTE);
+WINNORMALIZEAPI BOOL WINAPI IsNormalizedString(NORM_FORM,LPCWSTR,INT);
WINBASEAPI BOOL WINAPI IsValidCodePage(UINT);
WINBASEAPI BOOL WINAPI IsValidLocale(LCID,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)
WINBASEAPI LCID WINAPI LocaleNameToLCID(LPCWSTR,DWORD);
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 SetCalendarInfoW(LCID,CALID,CALTYPE,LPCWSTR);
#define SetCalendarInfo WINELIB_NAME_AW(SetCalendarInfo)
More information about the wine-cvs
mailing list