Index: public/platform/WebString.h |
diff --git a/public/platform/WebString.h b/public/platform/WebString.h |
index bbddef5b8fb169229a84b04e6caec0a4e2b52d19..a1376030f6635d779b9375725e55db115ca1ab96 100644 |
--- a/public/platform/WebString.h |
+++ b/public/platform/WebString.h |
@@ -99,6 +99,15 @@ public: |
return fromUTF8(s.data(), s.length()); |
} |
+ BLINK_COMMON_EXPORT std::string latin1() const; |
+ |
+ BLINK_COMMON_EXPORT static WebString fromLatin1(const char* data, size_t length); |
abarth-chromium
2013/09/03 15:46:40
I wonder if we should use WebLChar here instead of
davidben
2013/09/03 17:58:25
Done. Though it doesn't actually end up doing much
|
+ |
+ static WebString fromLatin1(const std::string& s) |
+ { |
+ return fromLatin1(s.data(), s.length()); |
+ } |
+ |
template <int N> WebString(const char (&data)[N]) |
{ |
assign(fromUTF8(data, N - 1)); |