Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3780)

Unified Diff: base/string_util.h

Issue 31014: Port DictionaryValue to use string16 instead of wstring. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/json_writer_unittest.cc ('k') | base/string_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_util.h
===================================================================
--- base/string_util.h (revision 10828)
+++ base/string_util.h (working copy)
@@ -189,7 +189,7 @@
// really should just be passing a string16 around, but we haven't finished
// porting whatever module uses wstring and the conversion is being used as a
// stopcock. This makes it easy to grep for the ones that should be removed.
-#if defined(OS_WIN)
+#if defined(WCHAR_T_IS_UTF16)
# define WideToUTF16Hack
# define UTF16ToWideHack
#else
@@ -385,16 +385,21 @@
// Specialized string-conversion functions.
std::string IntToString(int value);
+string16 IntToString16(int value);
std::wstring IntToWString(int value);
std::string UintToString(unsigned int value);
+string16 UintToString16(unsigned int value);
std::wstring UintToWString(unsigned int value);
std::string Int64ToString(int64 value);
+string16 Int64ToString16(int64 value);
std::wstring Int64ToWString(int64 value);
std::string Uint64ToString(uint64 value);
+string16 Uint64ToString16(uint64 value);
std::wstring Uint64ToWString(uint64 value);
// The DoubleToString methods convert the double to a string format that
// ignores the locale. If you want to use locale specific formatting, use ICU.
std::string DoubleToString(double value);
+string16 DoubleToString16(double value);
std::wstring DoubleToWString(double value);
// Perform a best-effort conversion of the input string to a numeric type,
« no previous file with comments | « base/json_writer_unittest.cc ('k') | base/string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698