Replaced the complex implementation of valueToString(double).

The previous one was confusing and prone to buffer overflows, and didn't
work correctly with 16-decimal-digit numbers. The new one simply uses
snprintf with a standard format string.

The major change is that we don't always print a decimal point now.
Fortunately, JSON doesn't distinguish between integers and reals.

git-svn-id: http://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk@272 1f120ed1-78a5-a849-adca-83f0a9e25bb6
2 files changed
tree: 539c771a24e2eccca8628a090e8be93068c1bc65
  1. jsoncpp/