Index: base/string_util.h |
diff --git a/base/string_util.h b/base/string_util.h |
index 601d1d87398e3317fe7a938951ff76666408e02b..6d7ff94affaf5634450d511233c94eef0a81d856 100644 |
--- a/base/string_util.h |
+++ b/base/string_util.h |
@@ -320,6 +320,17 @@ std::wstring FormatSpeed(int64 bytes, DataUnits units, bool show_units); |
// Ex: FormatNumber(1234567) => 1,234,567 |
std::wstring FormatNumber(int64 number); |
+// Starting at |start_offset| (usually 0), replace the first instance of |
+// |find_this| with |replace_with|. |
+void ReplaceFirstSubstringAfterOffset(std::wstring* str, |
+ std::wstring::size_type start_offset, |
+ const std::wstring& find_this, |
+ const std::wstring& replace_with); |
+void ReplaceFirstSubstringAfterOffset(std::string* str, |
+ std::string::size_type start_offset, |
+ const std::string& find_this, |
+ const std::string& replace_with); |
+ |
// Starting at |start_offset| (usually 0), look through |str| and replace all |
// instances of |find_this| with |replace_with|. |
// |