Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.h

Issue 2235113002: Use StringView for String::append and ::insert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix appendHex stuff. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 b5aa5a9e77976542ac08e096b0bf066d3a7e9499..6fe2cea67587ef63787983edea480313c0045e30 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.h
+++ b/third_party/WebKit/Source/wtf/text/WTFString.h
@@ -220,16 +220,11 @@ public:
bool endsWith(UChar character) const
{ return m_impl ? m_impl->endsWith(character) : false; }
- void append(const String&);
+ void append(const StringView&);
void append(LChar);
void append(char c) { append(static_cast<LChar>(c)); }
void append(UChar);
- void append(const LChar*, unsigned length);
- void append(const char* charactersToAppend, unsigned length) { append(reinterpret_cast<const LChar*>(charactersToAppend), length); }
- void append(const UChar*, unsigned length);
- void insert(const String&, unsigned pos);
- void insert(const LChar*, unsigned length, unsigned pos);
- void insert(const UChar*, unsigned length, unsigned pos);
+ void insert(const StringView&, unsigned pos);
String& replace(UChar a, UChar b)
{
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/LoggingCanvas.cpp ('k') | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698