summaryrefslogtreecommitdiffstats
path: root/base/string_util.h
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-13 11:09:33 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-13 11:09:33 +0000
commit21d610fb26b275f489dacbd6c372ddf55323ea55 (patch)
tree473fb04cecdcefdfae175768d6e921210054275b /base/string_util.h
parentacd50f6a9719bd5dae5710ac24243c2898f5f853 (diff)
downloadchromium_src-21d610fb26b275f489dacbd6c372ddf55323ea55.zip
chromium_src-21d610fb26b275f489dacbd6c372ddf55323ea55.tar.gz
chromium_src-21d610fb26b275f489dacbd6c372ddf55323ea55.tar.bz2
Implement IntToString-type methods without using a format string. I'm not sure if this will actually be more efficient. Also will make Int64ToString work on other platforms, since the old code used msvc-only %I64. Added a bunch of methods to have the whole Int/Int64 String/WString suite.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@784 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r--base/string_util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/base/string_util.h b/base/string_util.h
index 2f0f3d6..17c1793 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -326,11 +326,14 @@ void ReplaceSubstringsAfterOffset(std::string* str,
const std::string& replace_with);
// Specialized string-conversion functions.
-std::string Uint64ToString(uint64 value);
std::string IntToString(int value);
+std::wstring IntToWString(int value);
+std::string UintToString(unsigned int value);
+std::wstring UintToWString(unsigned int value);
std::string Int64ToString(int64 value);
std::wstring Int64ToWString(int64 value);
-std::wstring IntToWString(int value);
+std::string Uint64ToString(uint64 value);
+std::wstring Uint64ToWString(uint64 value);
// Perform a best-effort conversion of the input string to a numeric type,
// setting |*output| to the result of the conversion. Returns true for