aboutsummaryrefslogtreecommitdiff
path: root/src/strconv.c
AgeCommit message (Collapse)AuthorFilesLines
2024-03-25Use dtoa for double to string conversionPetri Lehtinen1-15/+122
2024-03-08Use sprintf() to determine locale's decimal pointPetri Lehtinen1-19/+17
This should fix thread safety of encoding and decoding, since localeconv() is not tread safe after all.
2019-10-21Tweak clang-format configuration a bitPetri Lehtinen1-2/+2
Set ColumnLimit to 90, remove AllowShortCaseLabelsOnASingleLine.
2019-10-21Run clang-format on *.c, *.hPetri Lehtinen1-24/+18
2019-10-21remove undef __NO_ISOCEXT for strtod compatiblitywillson-chen1-3/+0
2019-10-08fix issue #441AllenX20181-4/+0
It already has "strtod" function in stdlib.h and because __USE_MINGW_ANSI_STDIO is desperated
2016-05-17Fix subnormal number parsing on mingw32Petri Lehtinen1-0/+7
Patch by Blanca Elio Rosario.
2014-08-27Parse subnormal numbers correctlyPetri Lehtinen1-1/+2
Fixes #202.
2014-04-30Add JSON_REAL_PRECISIONPetri Lehtinen1-2/+5
Fixes #178.
2014-01-27Renamed config.h -> jansson_private_config.hJoakim Soderberg1-2/+2
This is because it's really easy to get a name collission if compiling Jansson as a subproject in a larger CMake project. If one project includes several subprojects each having their own config.h, this will cause the wrong file to be loaded.
2013-03-07Add CMake build system.Paul Harris1-0/+5
Added multiple CMake-related files to project. Supports building the library and the tests. See CMakeLists.txt for notes on how it works. I had to adjust 3 existing files in order to disable some configuration that should be taken care of by cmake/automake anyway. I also added jansson.def from a future jansson version, to test cmake's support for .def files (which works fine).
2011-11-01Remove '+' and leading zeros from exponents in the encoderPetri Lehtinen1-1/+22
Fixes GH-39.
2011-10-03Use strchr() when searching for a single characterPetri Lehtinen1-2/+2
2011-10-02Make real number encoding and decoding work under all localesPetri Lehtinen1-0/+108
The decimal point '.' is changed to locale's decimal point before/after JSON conversion to make C standard library's locale-specific string conversion functions work correctly. All the tests now call setlocale(LC_ALL, "") on startup to use the locale set in the environment. Fixes GH-32.