Commit 0842bd42 authored by darin@apple.com's avatar darin@apple.com

Fix Qt build.

* wtf/unicode/glib/UnicodeMacrosFromICU.h: Added U_IS_BMP.
* wtf/unicode/qt4/UnicodeQt4.h: Ditto.
* wtf/unicode/wince/UnicodeWince.h: Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3cbd5cb5
2010-08-29 Darin Adler <darin@apple.com>
Fix Qt build.
* wtf/unicode/glib/UnicodeMacrosFromICU.h: Added U_IS_BMP.
* wtf/unicode/qt4/UnicodeQt4.h: Ditto.
* wtf/unicode/wince/UnicodeWince.h: Ditto.
2010-08-29 Kwang Yul Seo <skyul@company100.net>
Reviewed by Kent Tamura.
......
......@@ -27,6 +27,7 @@
// some defines from ICU
#define U_IS_BMP(c) ((UChar32)(c)<=0xffff)
#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
......
......@@ -64,7 +64,9 @@ typedef uint16_t UChar;
typedef uint32_t UChar32;
// some defines from ICU
// FIXME: This should use UnicodeMacrosFromICU.h instead!
#define U_IS_BMP(c) ((UChar32)(c)<=0xffff)
#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
......
......@@ -29,7 +29,9 @@
#define TO_MASK(x) (1 << (x))
// some defines from ICU needed one or two places
// FIXME: This should use UnicodeMacrosFromICU.h instead!
#define U_IS_BMP(c) ((UChar32)(c)<=0xffff)
#define U16_IS_LEAD(c) (((c) & 0xfffffc00) == 0xd800)
#define U16_IS_TRAIL(c) (((c) & 0xfffffc00) == 0xdc00)
#define U16_SURROGATE_OFFSET ((0xd800 << 10UL) + 0xdc00 - 0x10000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment