summaryrefslogtreecommitdiffstats
path: root/base/string_util_win.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 00:13:10 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 00:13:10 +0000
commit656e3b3857e315a4a6386944fb140ef202580f77 (patch)
tree37fc49db14f3b43a03da33ef58dddfff9b58be2f /base/string_util_win.cc
parent660efb2db208d7a64e04eebad1e0e1dd7b54f3b0 (diff)
downloadchromium_src-656e3b3857e315a4a6386944fb140ef202580f77.zip
chromium_src-656e3b3857e315a4a6386944fb140ef202580f77.tar.gz
chromium_src-656e3b3857e315a4a6386944fb140ef202580f77.tar.bz2
Write our own utf8<->wide conversion functions. This gives us more control over error handling instead of getting a blank string for invalid encodings. It also allows us to decrease the amount of platform-specific code.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util_win.cc')
-rw-r--r--base/string_util_win.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/base/string_util_win.cc b/base/string_util_win.cc
index 6cad854..53044cc 100644
--- a/base/string_util_win.cc
+++ b/base/string_util_win.cc
@@ -76,16 +76,6 @@ static std::wstring MultiByteToWide(const std::string& mb, UINT code_page) {
return wide;
}
-// Wide <--> UTF-8
-std::string WideToUTF8(const std::wstring& wide) {
-
- return WideToMultiByte(wide, CP_UTF8);
-}
-
-std::wstring UTF8ToWide(const std::string& utf8) {
- return MultiByteToWide(utf8, CP_UTF8);
-}
-
// Wide <--> native multibyte
std::string WideToNativeMB(const std::wstring& wide) {
return WideToMultiByte(wide, CP_ACP);