diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-07 22:36:01 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-07 22:36:01 +0000 |
commit | a31e79ede77e871153e74aac437c75f9c95603cb (patch) | |
tree | 6b940362ccafe24225bf990867c447bc8f25423f /base | |
parent | 05b5d79a30242f87e42ab83f73d8eaa6031ec1ab (diff) | |
download | chromium_src-a31e79ede77e871153e74aac437c75f9c95603cb.zip chromium_src-a31e79ede77e871153e74aac437c75f9c95603cb.tar.gz chromium_src-a31e79ede77e871153e74aac437c75f9c95603cb.tar.bz2 |
Complete brett's string conversion goodness for utf32 platforms.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/string_util_icu.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/string_util_icu.cc b/base/string_util_icu.cc index 895a03e..2ab933a0 100644 --- a/base/string_util_icu.cc +++ b/base/string_util_icu.cc @@ -87,7 +87,7 @@ bool ReadUnicodeCharacter(const char16* src, int32 src_len, #if defined(WCHAR_T_IS_UTF32) // Reads UTF-32 character. The usage is the same as the 8-bit version above. -bool ReadUTF32Character(const wchar_t* src, int32 src_len, +bool ReadUnicodeCharacter(const wchar_t* src, int32 src_len, int32* char_index, uint32* code_point) { // Conversion is easy since the source is 32-bit. *code_point = src[*char_index]; @@ -254,7 +254,7 @@ std::string16 WideToUTF16(const std::wstring& wide) { if (wide.empty()) return ret; - UTF8ToWide(wide.data(), wide.length(), &ret); + WideToUTF16(wide.data(), wide.length(), &ret); return ret; } @@ -275,7 +275,7 @@ std::wstring UTF16ToWide(const std::string16& utf16) { if (utf16.empty()) return ret; - UTF8ToWide(utf16.data(), utf16.length(), &ret); + UTF16ToWide(utf16.data(), utf16.length(), &ret); return ret; } |