Commit Graph

526 Commits

Author SHA1 Message Date
Matt Borland
ed761823cd Add test values from issue 2023-05-15 13:48:36 +02:00
Matt Borland
8711c0a469 Merge pull request #38 from mborland/31
Change parsing of leading plus sign to return EINVAL
2023-05-15 13:48:04 +02:00
Matt Borland
60c16b7767 Fix 64-bit and MSVC long double handling 2023-05-15 12:38:57 +02:00
Matt Borland
4b91f2310a Return EINVAL instead of ignoring parsing leading + sign 2023-05-12 13:45:32 +02:00
Matt Borland
956369309d Add tests for invalid values from leading plus sign 2023-05-12 13:45:23 +02:00
Matt Borland
cdf0da31c6 Merge pull request #36 from mborland/29
Fix parsing of 0 or empty significand
2023-05-12 13:43:09 +02:00
Matt Borland
ea6b208b81 Merge pull request #35 from mborland/30
Remove unused pack/unpack functions
2023-05-12 13:13:06 +02:00
Matt Borland
dc7f2cd04b If value is EINVAL it should be returned unmodified 2023-05-12 13:00:03 +02:00
Matt Borland
e4ab9c5b57 Add value without significand handling and test 2023-05-12 12:56:29 +02:00
Matt Borland
49be94043b Fix handling of a significand equal to 0 2023-05-12 12:38:27 +02:00
Matt Borland
e776e41361 Add test values reported in issue 2023-05-12 12:18:55 +02:00
Matt Borland
f6eded71e6 Remove unused pack/unpack functions 2023-05-12 12:12:19 +02:00
Matt Borland
46df30e5a0 Merge pull request #28 from mborland/example
Fix to_chars usage example
2023-05-11 11:48:21 +02:00
Matt Borland
32c9b9f3b6 Fix to_chars usage example 2023-05-11 11:01:17 +02:00
Matt Borland
84450fea91 Merge pull request #24 from mborland/float_to_chars
Float to chars
2023-05-09 14:41:42 +02:00
Matt Borland
a611a63796 Replace uses of _MSC_VER with BOOST_MSVC 2023-05-09 13:10:23 +02:00
Matt Borland
8be90e476a Remove duplicate safebuffers macro 2023-05-09 13:05:11 +02:00
Matt Borland
63d96fc9cb Fix scientific format docs 2023-05-09 13:04:08 +02:00
Matt Borland
c7f56dea0d Add tests from Boost.JSON stream_parser 2023-05-08 15:46:15 +02:00
Matt Borland
b0d318ad6b Change handling of 0 depending on chars_format 2023-05-08 15:14:16 +02:00
Matt Borland
85cee5b63d Delete cmake.check_cache 2023-05-08 12:44:28 +02:00
Matt Borland
62c56f9dbb Disable warning C4127 2023-05-05 16:13:51 +02:00
Matt Borland
246d9e0d96 Enable long doubles on 64-bit platforms 2023-05-05 15:54:27 +02:00
Matt Borland
2dd43da0a3 Remove superflous check
See: ce0bc4b25f
2023-05-05 15:02:47 +02:00
Matt Borland
41432242e6 Merge pull request #27 from mborland/powers
Fix handling of exponent = 0 with scientific notation
2023-05-05 14:59:59 +02:00
Matt Borland
5ee466ca4b Fix scientific notation handling of 0 power 2023-05-05 13:29:17 +02:00
Matt Borland
1f0e692ea9 Test every power of double 2023-05-05 13:25:17 +02:00
Matt Borland
1376e9d2ce Test every power of double 2023-05-05 11:57:49 +02:00
Matt Borland
d1d8395bd9 Fix bounds on integer representation 2023-05-04 15:08:26 +02:00
Matt Borland
c203f1609f Add Boost.JSON grind_double tests 2023-05-04 14:51:44 +02:00
Matt Borland
8058863041 Re-enable boost.json values testing 2023-05-04 14:25:13 +02:00
Matt Borland
672dc6f684 Fix merge conflicts 2023-05-04 13:32:23 +02:00
Matt Borland
9f18444d7b Merge pull request #26 from mborland/parser
Fix parser for edge cases found with Boost.JSON tests
2023-05-04 13:26:42 +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
4bda4e78cc Add more boost.json values 2023-05-03 16:41:52 +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
8cd2f9c646 Add test for failing value from boost.json tests 2023-05-03 15:56:27 +02:00
Matt Borland
97ba04cca3 Disable boost.json test as from_chars is failing 2023-05-02 15:49:38 +02:00
Matt Borland
30edfaeb32 Fix scientific formatting when exponent is 0 2023-05-02 15:37:57 +02:00
Matt Borland
3a6821d6cd Add ryu regression tests 2023-05-02 15:19:26 +02:00