Commit Graph

335 Commits

Author SHA1 Message Date
Matt Borland
8be90e476a Remove duplicate safebuffers macro 2023-05-09 13:05:11 +02:00
Matt Borland
b0d318ad6b Change handling of 0 depending on chars_format 2023-05-08 15:14:16 +02:00
Matt Borland
246d9e0d96 Enable long doubles on 64-bit platforms 2023-05-05 15:54:27 +02:00
Matt Borland
d1d8395bd9 Fix bounds on integer representation 2023-05-04 15:08:26 +02:00
Matt Borland
672dc6f684 Fix merge conflicts 2023-05-04 13:32:23 +02:00
Matt Borland
21133c6940 Suppress GCC 4.X -Wmissing-fied-initalizers 2023-05-04 12:52:23 +02:00
Matt Borland
d3fdefff4b Suppress conversion warnings for C++11 and 14 2023-05-04 09:46:39 +02:00
Matt Borland
1a893dcf47 Fix case where the power is equal to the number of leading zeros 2023-05-04 09:36:27 +02:00
Matt Borland
9a450e6d97 Don't use strlen when we already know the length of the buffer 2023-05-04 09:16:44 +02:00
Matt Borland
4fb8d92e76 Fix parsing large significand with fractional component 2023-05-04 09:06:12 +02:00
Matt Borland
adea138d23 Add strtod fallback routine 2023-05-04 08:45:42 +02:00
Matt Borland
d96646ec92 Refactor to reduce code duplication 2023-05-04 08:31:27 +02:00
Matt Borland
73ea28328f Fix case of number to 0th power 2023-05-03 17:19:23 +02:00
Matt Borland
6e0b501dd4 Add all remaining boost.json tests 2023-05-03 17:10:41 +02:00
Matt Borland
b54f9dfc6c Fix case with leading zeros in integer and fraction e.g. 0.0001 2023-05-03 16:56:22 +02:00
Matt Borland
894b1d72e4 Fix case of leading zeros in significand and fraction 2023-05-03 16:21:49 +02:00
Matt Borland
77493c0489 Fix linter warnings 2023-05-03 16:15:53 +02:00
Matt Borland
30edfaeb32 Fix scientific formatting when exponent is 0 2023-05-02 15:37:57 +02:00
Matt Borland
dbdc8d2e3c Replace _MSC_VER with BOOST_MSVC 2023-05-01 14:39:38 +02:00
Matt Borland
be0f290b0f Fix silent failure of MSVC 14.0 2023-04-28 16:29:12 +02:00
Matt Borland
a6c5f05ad1 Fix from_chars float handling of signed zeros 2023-04-26 14:14:57 +02:00
Matt Borland
09abb002b7 Add bounds checking to hex exp 2023-04-26 13:05:33 +02:00
Matt Borland
bf955e9312 Improve floff non-finite value handling 2023-04-25 15:00:38 +02:00
Matt Borland
9ed0637dab Pre-compile more of dragonbox 2023-04-25 13:49:01 +02:00
Matt Borland
bdb8325c7b Fix missing negative sign on hex 2023-04-24 16:50:34 +02:00
Matt Borland
40d64d2ee3 Fix chars_format::hex non-finite values handling 2023-04-24 16:20:18 +02:00
Matt Borland
ba433e9fe9 Use template structs to fix ODR violations 2023-04-21 16:16:35 +02:00
Matt Borland
d562d85351 Increase range of fixed formatting 2023-04-21 15:57:47 +02:00
Matt Borland
4ddf923d7c Refactor cpp file and add testing for float type 2023-04-21 15:28:47 +02:00
Matt Borland
f32fa5e5be Fix known compiler support for comparison tests 2023-04-20 17:30:31 +02:00
Matt Borland
9c4499f9e2 Handle signed nans and allow for sNaN and qNaN differentiation 2023-04-20 16:27:06 +02:00
Matt Borland
c03bacdcd0 Change printing of non-finite values to match STL 2023-04-20 15:37:35 +02:00
Matt Borland
f19bae821a Workaround for MSVC 14.0 lack of BOOST_ATTRIBUTE_UNUSED 2023-04-20 15:03:12 +02:00
Matt Borland
0e01dc7aaf Fix MSVC warning C4244 2023-04-20 14:50:00 +02:00
Matt Borland
82a0e317f9 Fix MSVC warning C4100 2023-04-20 14:48:41 +02:00
Matt Borland
cb5311810a Fix -Wmaybe-unintialized and GCC 4.X -Wmissing-field-initalizers 2023-04-20 14:13:38 +02:00
Matt Borland
2c8d787dd4 Remove static assert that only works with C++17 or greater 2023-04-20 13:38:54 +02:00
Matt Borland
cf02c6ccd3 Change capitalization of exponent character 2023-04-20 13:15:27 +02:00
Matt Borland
2822297879 Fix alias for cache_format 2023-04-19 17:57:13 +02:00
Matt Borland
98605e7a56 Fix MSVC 14.0 warning C4244 2023-04-19 17:36:06 +02:00
Matt Borland
9bf6ea8038 Workaround for MSVC 14.0 broken return type deduction 2023-04-19 17:13:46 +02:00
Matt Borland
a1494c7dd9 Fix MSVC 14.0 cache redefinition from inline variable 2023-04-19 16:53:23 +02:00
Matt Borland
cec750702b Define two cache holders rather than specialize a template struct 2023-04-19 16:12:44 +02:00
Matt Borland
08e7b2f06c Fix from_chars float handling of signed zeros 2023-04-19 15:52:20 +02:00
Matt Borland
7b5e4cf773 Ignore GCC 4.X -Wmissing-field-initializers 2023-04-19 15:47:28 +02:00
Matt Borland
e0d3549c1a Ignore MSVC 14.1 C4307 2023-04-19 15:45:45 +02:00
Matt Borland
9ad4f5d0d2 Add default initializer for GCC 4.X and UBSAN 2023-04-18 15:44:21 +02:00
Matt Borland
6cf438f6ea Workaround for Clang < 4 return type deduction under C++14 2023-04-18 14:54:03 +02:00
Matt Borland
6c0f8e8e3e Disable warnings C4100 and C4189 2023-04-18 14:45:32 +02:00
Matt Borland
5bcad94877 Fix warning C4244 2023-04-18 14:38:23 +02:00