[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kjs
From:       Maks Orlovich <maksim () kde ! org>
Date:       2009-04-26 21:36:31
Message-ID: 1240781791.875893.10677.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 959718 by orlovich:

automatically merged revision 959713:
Need to commit this too... 

 M  +18 -0     ustring.cpp  


--- trunk/KDE/kdelibs/kjs/ustring.cpp #959717:959718
@@ -1317,6 +1317,24 @@
   return (l1 < l2);
 }
 
+bool UString::equal(const UString::Rep *r, const UString::Rep *b)
+{
+    if (r == b)
+        return true;
+
+    int length = r->len;
+    if (length != b->len)
+        return false;
+
+    const UChar *d = r->data();
+    const UChar *s = b->data();
+    for (int i = 0; i != length; ++i)
+        if (d[i].uc != s[i].uc)
+            return false;
+    return true;
+}
+
+
 int compare(const UString& s1, const UString& s2)
 {
   const int l1 = s1.size();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic