Author: jimtabor
Date: Sun Jan 22 00:44:51 2012
New Revision: 55059
URL:
http://svn.reactos.org/svn/reactos?rev=55059&view=rev
Log:
- Add surrogate pair macros.
Modified:
trunk/reactos/include/psdk/winnls.h
Modified: trunk/reactos/include/psdk/winnls.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winnls.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/winnls.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winnls.h [iso-8859-1] Sun Jan 22 00:44:51 2012
@@ -597,6 +597,15 @@
BYTE abBuffer[8];
} FILEMUIINFO, *PFILEMUIINFO;
+#define HIGH_SURROGATE_START 0xd800
+#define HIGH_SURROGATE_END 0xdbff
+#define LOW_SURROGATE_START 0xdc00
+#define LOW_SURROGATE_END 0xdfff
+
+#define IS_HIGH_SURROGATE(ch) ((ch) >= HIGH_SURROGATE_START && (ch) <=
HIGH_SURROGATE_END)
+#define IS_LOW_SURROGATE(ch) ((ch) >= LOW_SURROGATE_START && (ch) <=
LOW_SURROGATE_END)
+#define IS_SURROGATE_PAIR(high,low) (IS_HIGH_SURROGATE(high) &&
IS_LOW_SURROGATE(low))
+
int WINAPI CompareStringA(LCID,DWORD,LPCSTR,int,LPCSTR,int);
int WINAPI CompareStringW(LCID,DWORD,LPCWSTR,int,LPCWSTR,int);
LCID WINAPI ConvertDefaultLocale(LCID);