From 856080bd99e86a1eb6f1eb034f65657d03d1f095 Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Fri, 1 Aug 2008 00:49:29 +0000 Subject: Revert my UTF change until we can figure out what to do with the sandbox. BUG=1201008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215 0039d316-1c4b-4281-b951-d872f2087c98 --- base/string_util.cc | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'base/string_util.cc') diff --git a/base/string_util.cc b/base/string_util.cc index faf5ef9..2122b9f 100644 --- a/base/string_util.cc +++ b/base/string_util.cc @@ -250,27 +250,6 @@ std::wstring ASCIIToWide(const std::string& ascii) { return std::wstring(ascii.begin(), ascii.end()); } -std::string WideToUTF8(const std::wstring& wide) { - std::string ret; - if (wide.empty()) - return ret; - - // Ignore the success flag of this call, it will do the best it can for - // invalid input, which is what we want here. - WideToUTF8(wide.data(), wide.length(), &ret); - return ret; -} - -// Similar to the Wide->UTF8 version above. -std::wstring UTF8ToWide(const std::string& utf8) { - std::wstring ret; - if (utf8.empty()) - return ret; - - UTF8ToWide(utf8.data(), utf8.length(), &ret); - return ret; -} - // Latin1 is just the low range of Unicode, so we can copy directly to convert. bool WideToLatin1(const std::wstring& wide, std::string* latin1) { std::string output; -- cgit v1.1