* wtf/unicode/qt4/UnicodeQt4.h: Try to fix Qt build by adding U16_IS_SINGLE.
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2007 19:54:15 +0000 (19:54 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2007 19:54:15 +0000 (19:54 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28622 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h

index 9238f0b45e54a958e776a3dfaf4f9e76a18c4b7b..12c578237a25726569866aba2002ac906d324057 100644 (file)
@@ -1,3 +1,7 @@
+2007-12-11  Darin Adler  <darin@apple.com>
+
+        * wtf/unicode/qt4/UnicodeQt4.h: Try to fix Qt build by adding U16_IS_SINGLE.
+
 2007-12-10  Darin Adler  <darin@apple.com>
 
         Reviewed by Sam Weinig.
index a552bd957a15aac21a468af94fe034415681cdb7..171d5c65b9008b1a82931f190a00ae7747940618 100644 (file)
@@ -63,7 +63,7 @@ typedef uint16_t UChar;
 #endif
 typedef uint32_t UChar32;
 
-// some defines from ICU needed one or two places
+// some defines from ICU
 
 #define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
 #define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
@@ -75,6 +75,7 @@ typedef uint32_t UChar32;
 #define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
 
 #define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
+#define U16_IS_SINGLE(c) !U_IS_SURROGATE(c)
 #define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
 #define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)