Index: third_party/WebKit/Source/wtf/text/WTFString.h |
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h |
index f82c71f42f944e65d20e90d357898ef3a42b44db..8d01437df9b2314a390c9d56513ad6af83386194 100644 |
--- a/third_party/WebKit/Source/wtf/text/WTFString.h |
+++ b/third_party/WebKit/Source/wtf/text/WTFString.h |
@@ -30,6 +30,7 @@ |
#include "wtf/WTFExport.h" |
#include "wtf/text/ASCIIFastPath.h" |
#include "wtf/text/StringImpl.h" |
+#include "wtf/text/StringView.h" |
#include <algorithm> |
#include <iosfwd> |
@@ -341,6 +342,9 @@ |
String substring(unsigned pos, unsigned len = UINT_MAX) const; |
String left(unsigned len) const { return substring(0, len); } |
String right(unsigned len) const { return substring(length() - len, len); } |
+ |
+ StringView createView() const { return StringView(impl()); } |
+ StringView createView(unsigned offset, unsigned length) const { return StringView(impl(), offset, length); } |
// Returns a lowercase/uppercase version of the string |
String lower() const; |