From e4dad5bd72ddd563b84eede80cf2b414ea688b2c Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Tue, 29 Sep 2009 21:32:01 +0000 Subject: Add a version of ReplaceStringPlaceholders that operates on std::string instead of string16. BUG=none TEST=base unit tests Original patch by avd@google.com at: http://codereview.chromium.org/245046 Review URL: http://codereview.chromium.org/242061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27532 0039d316-1c4b-4281-b951-d872f2087c98 --- base/string_util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/string_util.h') diff --git a/base/string_util.h b/base/string_util.h index 9143346..64c1f60 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -607,6 +607,10 @@ string16 ReplaceStringPlaceholders(const string16& format_string, const std::vector& subst, std::vector* offsets); +std::string ReplaceStringPlaceholders(const std::string& format_string, + const std::vector& subst, + std::vector* offsets); + // Single-string shortcut for ReplaceStringHolders. string16 ReplaceStringPlaceholders(const string16& format_string, const string16& a, -- cgit v1.1