From d92224288027cefbbd197bd9eed9080110aa9222 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Tue, 14 Apr 2009 16:51:21 +0000 Subject: Convert the internal GetStringF to use string16. This saves a conversion from string16 to wstring on the linux side when calling GetStringFUTF8 methods. It actually adds extra conversions when calling GetStringF, but we're going to get rid of all those, right? BUG=9911 Review URL: http://codereview.chromium.org/67112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13666 0039d316-1c4b-4281-b951-d872f2087c98 --- base/string_util.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'base/string_util.h') diff --git a/base/string_util.h b/base/string_util.h index ca1fc05..c32bef3 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -556,27 +556,27 @@ void SplitStringAlongWhitespace(const std::wstring& str, // Replace $1-$2-$3 in the format string with |a| and |b| respectively. // Additionally, $$ is replaced by $. The offset/offsets parameter here can be // NULL. -std::wstring ReplaceStringPlaceholders(const std::wstring& format_string, - const std::wstring& a, - size_t* offset); - -std::wstring ReplaceStringPlaceholders(const std::wstring& format_string, - const std::wstring& a, - const std::wstring& b, - std::vector* offsets); - -std::wstring ReplaceStringPlaceholders(const std::wstring& format_string, - const std::wstring& a, - const std::wstring& b, - const std::wstring& c, - std::vector* offsets); - -std::wstring ReplaceStringPlaceholders(const std::wstring& format_string, - const std::wstring& a, - const std::wstring& b, - const std::wstring& c, - const std::wstring& d, - std::vector* offsets); +string16 ReplaceStringPlaceholders(const string16& format_string, + const string16& a, + size_t* offset); + +string16 ReplaceStringPlaceholders(const string16& format_string, + const string16& a, + const string16& b, + std::vector* offsets); + +string16 ReplaceStringPlaceholders(const string16& format_string, + const string16& a, + const string16& b, + const string16& c, + std::vector* offsets); + +string16 ReplaceStringPlaceholders(const string16& format_string, + const string16& a, + const string16& b, + const string16& c, + const string16& d, + std::vector* offsets); // If the size of |input| is more than |max_len|, this function returns true and // |input| is shortened into |output| by removing chars in the middle (they are -- cgit v1.1