From 6dce8adece39efbb9ae73aa12ca82d88d98da577 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Tue, 18 Nov 2008 00:14:28 +0000 Subject: 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 --- base/third_party/dmg_fp/dmg_fp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'base/third_party') 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 -- cgit v1.1