[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

rjw rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:10:36 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 0131366ddd249ee6fa4b7ea40375ffc810d22280
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Nov 10 18:00:35 2003 +0000

    	Use ICU for upper/lower conversion.  Fixed 3477157, 3478455, 3478456, 3478457, 3478486.
    	Remaining issues with surrogates (3477159) and Turkish I (3478482).
    
            Reviewed by Ken.
    
            * Misc.subproj/WebUnicode.m:
            (_unicodeLower):
            (_unicodeUpper):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5437 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 0e8c6e7..f3934af 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,14 @@
+2003-11-10  Richard Williamson   <rjw at apple.com>
+
+	Use ICU for upper/lower conversion.  Fixed 3477157, 3478455, 3478456, 3478457, 3478486.
+	Remaining issues with surrogates (3477159) and Turkish I (3478482).
+
+        Reviewed by Ken.
+
+        * Misc.subproj/WebUnicode.m:
+        (_unicodeLower):
+        (_unicodeUpper):
+
 2003-11-07  Chris Blumenberg  <cblu at apple.com>
 
 	Fixed: <rdar://problem/3240778>: add "save" menu item to contextual menu for text pages
diff --git a/WebKit/Misc.subproj/WebUnicode.m b/WebKit/Misc.subproj/WebUnicode.m
index bc27522..8ed92d5 100644
--- a/WebKit/Misc.subproj/WebUnicode.m
+++ b/WebKit/Misc.subproj/WebUnicode.m
@@ -5,6 +5,11 @@
 #import <WebKit/WebUnicode.h>
 #import <WebCore/WebCoreUnicode.h>
 
+#define HAVE_ICU_LIBRARY 1
+
+#if HAVE_ICU_LIBRARY
+#import <unicode/uchar.h>
+#endif
 
 static int _unicodeDigitValue(UniChar c)
 {
@@ -80,22 +85,30 @@ static WebCoreUnicodeCombiningClass _unicodeCombiningClass (UniChar c)
 
 static UniChar _unicodeLower(UniChar c)
 {
+#if HAVE_ICU_LIBRARY
+    return u_tolower(c);
+#else
     if ( _unicodeCategory(c) != Letter_Uppercase )
 	return c;
     unsigned short lower = *( case_info[WK_ROW(c)] + WK_CELL(c) );
     if ( lower == 0 )
 	return c;
     return lower;
+#endif
 }
 
 static UniChar _unicodeUpper(UniChar c)
 {
+#if HAVE_ICU_LIBRARY
+    return u_toupper(c);
+#else
     if ( _unicodeCategory(c) != Letter_Lowercase )
 	return c;
     unsigned short upper = *(case_info[WK_ROW(c)]+WK_CELL(c));
     if ( upper == 0 )
 	return c;
     return upper;
+#endif
 }
 
 static bool _unicodeIsMark(UniChar c)

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list