Commit Graph

48 Commits

Author SHA1 Message Date
Matt Borland
d63f1efde2 Establish common file for dragonbox and floff 2023-04-11 14:41:29 +02:00
Matt Borland
1a903ad119 Use dragonbox::to_decimal for values that diverge from printf
[ci skip]
2023-04-11 14:06:14 +02:00
Matt Borland
34c3d2b4a6 Add dragonbox shortest formatting
[ci skip]
2023-04-10 17:35:56 +02:00
Matt Borland
cbaf8a3d4b Refactor namespaces 2023-04-06 15:17:43 +02:00
Matt Borland
acbc912c83 Don't print trailing zeros with unspecified precision 2023-04-05 15:15:43 +02:00
Matt Borland
3a1286330c Implement to_chars for floats 2023-03-31 17:48:27 +02:00
Matt Borland
64a2359461 Fix clang implicit conversion warning 2023-03-31 17:11:29 +02:00
Matt Borland
17d778078a Add fixed formatting 2023-03-31 16:11:38 +02:00
Matt Borland
5667df7f07 Add testing with string stream 2023-03-30 18:37:33 +02:00
Matt Borland
b36dc17e40 Use integer to_chars if in integer range with general formatting 2023-03-27 16:34:44 +02:00
Matt Borland
5563d760ef Implement general notation for non-integer results 2023-03-27 16:16:54 +02:00
Matt Borland
3b186a9c6b Fix CI failures from macros and unreachable code with non-c++17 builds 2023-03-27 15:04:09 +02:00
Matt Borland
f0be262fdc Add multiple formatting options
[ci skip]
2023-03-22 11:27:50 -07:00
Matt Borland
d7ebadb2fc Work floff into to_chars 2023-03-22 10:20:33 -07:00
Matt Borland
cfdeea52ae Add printing functions
[ci skip]
2023-03-15 20:20:17 -07:00
Matt Borland
a69acf078e Fix compiler errors under C++17 2023-03-15 18:07:40 -07:00
Matt Borland
5ad82255b3 Activate only 64-bit long double impls 2023-03-01 11:08:37 -08:00
Matt Borland
a33df00ebe Revert from_chars long double impl 2023-03-01 10:38:29 -08:00
Matt Borland
1ed6b6749f Add 64 and 80 bit long double impls
[ci skip]
2023-02-28 12:20:20 -08:00
Matt Borland
6b4bc78fa6 Fix compute_float32 for edge cases 2023-02-28 10:36:23 -08:00
Matt Borland
5fc998665e Remove duplicate overflow check from the parser 2023-02-28 09:12:23 -08:00
Matt Borland
7e011784a7 Replace float and double stub impls with real ones
[ci skip]
2023-02-27 11:44:04 -08:00
Peter Dimov
bb1bca8a5c Disable -Wmissing-field-initializers under GCC 4.x 2023-02-17 19:58:34 +02:00
Peter Dimov
43f8d1b777 Add long double to limits test 2023-02-09 19:16:45 +02:00
Peter Dimov
8a29575a8d Add stub implementations for long double 2023-02-09 18:40:47 +02:00
Peter Dimov
ecbf043f82 Add floating point from_chars check to test/limits.cpp 2023-02-09 01:29:58 +02:00
Peter Dimov
da25d61248 Activate float/double tests in roundtrip.cpp; add stub implementations of from_chars and to_chars to make them pass 2023-02-08 21:21:28 +02:00
Matt Borland
e55057214a Move buffer and add float stub to keep MSVC happy 2023-01-19 10:24:10 -08:00
Matt Borland
e699167d48 to_chars integer parser 2023-01-17 09:13:43 -08:00
Matt Borland
1a2a1ad66a Make integer from_chars constexpr 2023-01-12 11:36:53 -08:00
Matt Borland
b5baf88e35 Add overload for signed char
http://eel.is/c++draft/basic#fundamental
2023-01-12 10:18:52 -08:00
Matt Borland
47689f9ebb Fixes and testing for hexadecimal 2023-01-12 10:02:23 -08:00
Matt Borland
99d45ca941 Add test for invalid arguments 2023-01-11 13:30:18 -08:00
Matt Borland
672bd3b872 Refactor detail namespace 2023-01-11 11:26:30 -08:00
Matt Borland
cad83d2ae8 Fix -Woverflow on old GCC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80745
2023-01-11 11:04:00 -08:00
Matt Borland
2fc5c89899 Fixes for MSVC warnings 2023-01-11 08:45:02 -08:00
Matt Borland
462cf533c2 Add unused attribute in case of early return 2023-01-11 07:52:04 -08:00
Matt Borland
a0132d7dc2 Fix spelling of Unsigned_Integer
[ci skip]
2023-01-10 12:04:51 -08:00
Matt Borland
aae6dd4f4c Implement integer parser
[ci skip]
2023-01-10 12:01:25 -08:00
Matt Borland
884b06641a Change exception specification
[ci skip]
2023-01-10 11:12:17 -08:00
Matt Borland
ab20292a93 Add character lookup table
[ci skip]
2023-01-10 10:25:02 -08:00
Matt Borland
9ae5f9e02a Define assert with message and check pre-conditions
[ci skip]
2023-01-10 09:55:36 -08:00
Matt Borland
9e3c7948dd Add integer framework
[ci skip]
2023-01-10 09:47:53 -08:00
Matt Borland
26c188efe9 Remove use of <string> header 2023-01-09 13:30:36 -08:00
Matt Borland
08e8f3c318 Revert ec to int and add tests for operator== and operator!= 2023-01-09 12:15:41 -08:00
Matt Borland
3c430119be Refactor to_chars_result to reflect 22.13.2 2023-01-09 11:40:26 -08:00
Peter Dimov
6f25ba2a48 Add stub implementations of from_chars and to_chars 2022-12-29 19:47:34 +02:00
Peter Dimov
3f1ad6d6f4 Initial commit 2022-12-29 19:41:33 +02:00