Module: wine Branch: master Commit: e13c9cd6a1a0a8a814c1cab2d23f6265c495a724 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e13c9cd6a1a0a8a814c1cab2d2...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Mar 14 15:56:10 2007 +0100
winnls.h: Added some defines for Unicode surrogates.
---
include/winnls.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/include/winnls.h b/include/winnls.h index 8888171..6388eed 100644 --- a/include/winnls.h +++ b/include/winnls.h @@ -309,9 +309,19 @@ extern "C" { #define CP_INSTALLED 0x1 #define CP_SUPPORTED 0x2
+#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)) + #define WC_DISCARDNS 0x0010 #define WC_SEPCHARS 0x0020 #define WC_DEFAULTCHAR 0x0040 +#define WC_ERR_INVALID_CHARS 0x0080 #define WC_COMPOSITECHECK 0x0200 #define WC_NO_BEST_FIT_CHARS 0x0400