| Index: webkit/api/src/WebString.cpp
|
| ===================================================================
|
| --- webkit/api/src/WebString.cpp (revision 22886)
|
| +++ webkit/api/src/WebString.cpp (working copy)
|
| @@ -31,6 +31,9 @@
|
| #include "config.h"
|
| #include "WebString.h"
|
|
|
| +#include "WebCString.h"
|
| +
|
| +#include "CString.h"
|
| #include "PlatformString.h"
|
| #include "AtomicString.h"
|
|
|
| @@ -68,6 +71,11 @@
|
| return m_private ? const_cast<WebStringPrivate*>(m_private)->characters() : 0;
|
| }
|
|
|
| +WebCString WebString::utf8() const
|
| +{
|
| + return WebCore::String(m_private).utf8();
|
| +}
|
| +
|
| WebString WebString::fromUTF8(const char* data, size_t length)
|
| {
|
| return WebCore::String::fromUTF8(data, length);
|
|
|