[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
beidson at apple.com
beidson at apple.com
Wed Dec 22 13:59:22 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit e998bd858b30d42356c7c3ffaad5e176a76c507f
Author: beidson at apple.com <beidson at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Sep 30 22:41:05 2010 +0000
https://bugs.webkit.org/show_bug.cgi?id=46774 - Add WKStringIsEqual API
Reviewed by Sam Weinig.
* Shared/API/c/WKString.cpp:
(WKStringIsEqual):
* Shared/API/c/WKString.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index 08fcb96..1a98ef8 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -1,3 +1,13 @@
+2010-09-30 Brady Eidson <beidson at apple.com>
+
+ Reviewed by Sam Weinig.
+
+ https://bugs.webkit.org/show_bug.cgi?id=46774 - Add WKStringIsEqual API
+
+ * Shared/API/c/WKString.cpp:
+ (WKStringIsEqual):
+ * Shared/API/c/WKString.h:
+
2010-09-30 Anders Carlsson <andersca at apple.com>
Reviewed by Adam Roben.
diff --git a/WebKit2/Shared/API/c/WKString.cpp b/WebKit2/Shared/API/c/WKString.cpp
index 88cd0ce..3ec9c8a 100644
--- a/WebKit2/Shared/API/c/WKString.cpp
+++ b/WebKit2/Shared/API/c/WKString.cpp
@@ -38,3 +38,13 @@ bool WKStringIsEmpty(WKStringRef stringRef)
{
return toWK(stringRef)->isEmpty();
}
+
+bool WKStringIsEqual(WKStringRef firstString, WKStringRef secondString)
+{
+ if (firstString == secondString)
+ return true;
+ if (!firstString || !secondString)
+ return false;
+
+ return toWK(firstString)->string() == toWK(secondString)->string();
+}
diff --git a/WebKit2/Shared/API/c/WKString.h b/WebKit2/Shared/API/c/WKString.h
index 6cdc9f1..1945045 100644
--- a/WebKit2/Shared/API/c/WKString.h
+++ b/WebKit2/Shared/API/c/WKString.h
@@ -39,6 +39,7 @@ extern "C" {
WK_EXPORT WKTypeID WKStringGetTypeID();
WK_EXPORT bool WKStringIsEmpty(WKStringRef string);
+WK_EXPORT bool WKStringIsEqual(WKStringRef firstString, WKStringRef secondString);
#ifdef __cplusplus
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list