diff options
author | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-05 22:46:15 +0000 |
---|---|---|
committer | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-05 22:46:15 +0000 |
commit | a218f15b205006e999a0dcabd7ebbe631def4e3b (patch) | |
tree | 6a6a5bec8ae5a81ddab077b7c0ee1c14f991bae0 /base/string_util_win.cc | |
parent | 96d570e43c3f4cd1c8a5244b5fbf3712fba74db1 (diff) | |
download | chromium_src-a218f15b205006e999a0dcabd7ebbe631def4e3b.zip chromium_src-a218f15b205006e999a0dcabd7ebbe631def4e3b.tar.gz chromium_src-a218f15b205006e999a0dcabd7ebbe631def4e3b.tar.bz2 |
Allow string-to-int conversions to provide a return value indicating success. Implement them consistently on all platforms. Fill in a couple of necessary missing pieces. Eliminate the need for many uses of sscanf. Add tests.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@405 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util_win.cc')
-rw-r--r-- | base/string_util_win.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/base/string_util_win.cc b/base/string_util_win.cc index 6cad854..fac24a7 100644 --- a/base/string_util_win.cc +++ b/base/string_util_win.cc @@ -114,11 +114,3 @@ NumberFormat* NumberFormatSingleton() { } return number_format; } - -int64 StringToInt64(const std::string& value) { - return _atoi64(value.c_str()); -} - -int64 StringToInt64(const std::wstring& value) { - return _wtoi64(value.c_str()); -} |