diff options
Diffstat (limited to 'base/string_util.cc')
-rw-r--r-- | base/string_util.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/base/string_util.cc b/base/string_util.cc index 2488b0b..98f48c7 100644 --- a/base/string_util.cc +++ b/base/string_util.cc @@ -25,6 +25,7 @@ #include "base/singleton.h" #include "base/third_party/dmg_fp/dmg_fp.h" #include "base/utf_string_conversion_utils.h" +#include "base/utf_string_conversions.h" #include "base/third_party/icu/icu_utf.h" namespace { @@ -653,21 +654,11 @@ std::string WideToASCII(const std::wstring& wide) { return std::string(wide.begin(), wide.end()); } -std::wstring ASCIIToWide(const base::StringPiece& ascii) { - DCHECK(IsStringASCII(ascii)) << ascii; - return std::wstring(ascii.begin(), ascii.end()); -} - std::string UTF16ToASCII(const string16& utf16) { DCHECK(IsStringASCII(utf16)) << utf16; return std::string(utf16.begin(), utf16.end()); } -string16 ASCIIToUTF16(const base::StringPiece& ascii) { - DCHECK(IsStringASCII(ascii)) << ascii; - return string16(ascii.begin(), ascii.end()); -} - // 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; |