2010-10-07 Balazs Kelemen <kbalazs@webkit.org>
[WebKit-https.git] / WebKit2 / Shared / API / c / WKURL.cpp
index 0176223e30369e7290325dc62259c19111ab878f..dbce7d0bf2669c562b534cb2113132463cf2d0c5 100644 (file)
@@ -33,3 +33,13 @@ WKTypeID WKURLGetTypeID()
 {
     return toAPI(WebURL::APIType);
 }
 {
     return toAPI(WebURL::APIType);
 }
+
+WKURLRef WKURLCreateWithUTF8CString(const char* string)
+{
+    return toAPI(WebURL::create(String::fromUTF8(string)).leakRef());
+}
+
+bool WKURLIsEqual(WKURLRef a, WKURLRef b)
+{
+    return toImpl(a)->string() == toImpl(b)->string();
+}