summaryrefslogtreecommitdiffstats
path: root/base/third_party
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 00:14:28 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 00:14:28 +0000
commit6dce8adece39efbb9ae73aa12ca82d88d98da577 (patch)
treebe636abf2c134ecba3ce7d89f8d90192f5e8987b /base/third_party
parentb2e01376481b16129cb33f31e931cde9a9cdbb88 (diff)
downloadchromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.zip
chromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.tar.gz
chromium_src-6dce8adece39efbb9ae73aa12ca82d88d98da577.tar.bz2
Remove the locale parameter from the StringToDouble and
DoubleToString methods and only leave the locale independent methods. It turns out this code is only used in the json code and if people want locale formatting, they should use ICU. Review URL: http://codereview.chromium.org/11423 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/third_party')
-rw-r--r--base/third_party/dmg_fp/dmg_fp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/third_party/dmg_fp/dmg_fp.h b/base/third_party/dmg_fp/dmg_fp.h
index 21c7c97..4795397 100644
--- a/base/third_party/dmg_fp/dmg_fp.h
+++ b/base/third_party/dmg_fp/dmg_fp.h
@@ -21,7 +21,8 @@ char* dtoa(double d, int mode, int ndigits,
// Must be used to free values returned by dtoa.
void freedtoa(char* s);
-// Store the closest decimal approximation to x in b.
+// Store the closest decimal approximation to x in b (null terminated).
+// Returns a pointer to b. It is sufficient for |b| to be 32 characters.
char* g_fmt(char* b, double x);
} // namespace dmg_fp