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

Unified Diff: include/core/SkString.h

Issue 322253005: add replace_char() method to SkString API (skbug.com/2651) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | 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 bc06cb0aba63743e90f6869f6f042c98011b1267..437c2ccd14e69fcc16175232f18a413d11495fc2 100644
--- a/include/core/SkString.h
+++ b/include/core/SkString.h
@@ -191,6 +191,9 @@ public:
void prependHex(uint32_t value, int minDigits = 0) { this->insertHex(0, value, minDigits); }
void prependScalar(SkScalar value) { this->insertScalar((size_t)-1, value); }
epoger 2014/06/11 11:01:33 Please add unittests in https://skia.googlesource.
rs.prinja 2014/06/11 12:08:03 Done.
+ /* Replace all occurrences of oldChar with newChar */
+ void replace_char(const char oldChar, const char newChar);
epoger 2014/06/11 11:01:33 For consistency, please call this either replace()
rs.prinja 2014/06/11 12:08:03 I'm calling it replaceChar for the time being. Wil
+
void printf(const char format[], ...) SK_PRINTF_LIKE(2, 3);
void appendf(const char format[], ...) SK_PRINTF_LIKE(2, 3);
void appendVAList(const char format[], va_list);
« no previous file with comments | « no previous file | src/core/SkString.cpp » ('j') | src/core/SkString.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698