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

Unified Diff: include/core/SkString.h

Issue 646213002: Eliminate one copy of replace_char() function. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: bad... Created 6 years, 1 month 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
« no previous file with comments | « gyp/tools.gyp ('k') | src/core/SkString.cpp » ('j') | src/core/SkString.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkString.h
diff --git a/include/core/SkString.h b/include/core/SkString.h
index 7766c5711f7a5ba7e087282ead20bf647bc891fc..bd1afff8c22140c7289fa817c920463b9e31d0ad 100644
--- a/include/core/SkString.h
+++ b/include/core/SkString.h
@@ -215,6 +215,8 @@ public:
void remove(size_t offset, size_t length);
+ void replace(SkUnichar oldChar, SkUnichar newChar);
+
SkString& operator+=(const SkString& s) { this->append(s); return *this; }
SkString& operator+=(const char text[]) { this->append(text); return *this; }
SkString& operator+=(const char c) { this->append(&c, 1); return *this; }
« no previous file with comments | « gyp/tools.gyp ('k') | src/core/SkString.cpp » ('j') | src/core/SkString.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698