688 Commits

Author SHA1 Message Date
Leszek Swirski
b6ce2c4de6 Record parse failure reason and location
In parse_number_string, if there is a parse error, report the specific
error as one of the values in a new parse_error enum, and update
lastmatch to match the error location. This allows users of the library
to print more helpful error messages for invalid inputs.
2024-07-23 18:11:10 +02:00
Daniel Lemire
d7417618f9 patch release v6.1.3 2024-07-23 10:29:14 -04:00
Daniel Lemire
97036e362c
Merge pull request #256 from fastfloat/json-accept-empty-exponent
Allow JSON empty exponent as trailing junk
2024-07-23 10:28:36 -04:00
Leszek Swirski
e6777f2eef Allow JSON empty exponent as trailing junk
Revert #251, and instead allow an invalid trailing empty exponent to be
treated as junk data in JSON parsing. Expand the test suite to test this
case, including testing the trailing junk.
2024-07-23 14:56:42 +02:00
Daniel Lemire
129f0e807e
Merge pull request #255 from fastfloat/version612
preparing patch release
v6.1.2
2024-07-22 11:42:50 -04:00
Daniel Lemire
0460ab8bd6 preparing patch release 2024-07-22 09:56:25 -04:00
Daniel Lemire
28e7560c23
Merge pull request #253 from fastfloat/update_ci_to_ubuntu24
update CI to ubuntu 24 + safe a shift value to a variable (for elegance)
2024-07-22 09:41:38 -04:00
Daniel Lemire
d65638bf0f [no-ci] renaming CI 2024-07-22 09:39:57 -04:00
Daniel Lemire
ef9a60d516 update CI to ubuntu 24 + safe a shift value to a variable (for elegance) 2024-07-22 09:36:14 -04:00
Daniel Lemire
9468d50c89
Merge pull request #251 from LeszekSwirski/json-empty-exponent
Disallow empty exponent in JSON parsing
2024-07-22 09:07:08 -04:00
Leszek Swirski
b57207c811 Disallow empty exponent in JSON parsing
The JSON spec requires at least one digit in the exponential part, if
specified.
2024-07-22 12:34:58 +02:00
Daniel Lemire
92c79d078b
Merge pull request #249 from zejal/main
from_chars_advanced overload function taking parsed_number_string_t
2024-07-16 10:17:08 -04:00
Daniel Lemire
c8b3ca0d12
Merge pull request #167 from deadalnix/smallest_power_of_ten
Change smallest_power_of_ten to -64 for floats.
2024-06-27 19:03:59 -04:00
zejal
85911abb59 added couple of comments 2024-05-13 19:55:46 +02:00
zejal
1f9b1a6706 from_chars_advanced overload function taking parsed_number_string_t 2024-05-13 14:24:48 +02:00
Daniel Lemire
1fc3ac3932
Merge pull request #245 from fastfloat/removing_dead_function
removing unused function
2024-03-20 16:27:44 -04:00
Daniel Lemire
56a0092895 removing unused function 2024-03-20 14:24:16 -04:00
Daniel Lemire
7c19cafa93
Update README.md 2024-03-19 17:07:43 -04:00
Daniel Lemire
f476bc713f patch v6.1.1 2024-03-17 09:41:36 -04:00
Daniel Lemire
3b54a78805
Merge pull request #243 from matthew-wozniczka/patch-1
Add a missing check that __uint128_t exists before using it.
2024-03-17 09:40:39 -04:00
Matthew Wozniczka
9ab4ac837b
Add a missing check that __uint128_t exists before using it.
I noticed a compilation error when building a 64-bit binary with this library while using xlclang on AIX, and this change seems to fix it.
2024-03-16 12:18:20 -07:00
Daniel Lemire
bafd9d9c5f adding release script. 2024-03-08 18:15:20 -05:00
Daniel Lemire
9befad4626 adding release script 2024-03-08 18:10:15 -05:00
Daniel Lemire
2f3ed44e06
Merge pull request #241 from carlosal1015/fix/version-numbering
Use version 6.1.0 instead 6.0.0
v6.1.0
2024-03-08 11:28:25 -05:00
Carlos Aznarán
131b1f9768
Use version 6.1.0 instead 6.0.0 2024-03-08 08:46:50 -05:00
Daniel Lemire
ff7cb44263
Create SECURITY.md 2024-02-09 17:18:36 -05:00
Daniel Lemire
4b035185e7
Merge pull request #239 from wojdyr/main
check C++ standard version before including <stdfloat>
2024-02-03 11:30:06 -05:00
Marcin Wojdyr
55a5b3c8e1 check C++ standard version before including <stdfloat>
fixes #238
2024-02-03 15:05:30 +01:00
Daniel Lemire
8378916ed8
Merge pull request #237 from fastfloat/release610_candidate
preparing version 6.1.0
2024-01-28 16:17:51 -05:00
Daniel Lemire
797e3e0bc2 more fixes 2024-01-28 16:01:46 -05:00
Daniel Lemire
12ece3c84f removing leftover print 2024-01-28 15:20:41 -05:00
Daniel Lemire
a0ea962bf5 more fixes 2024-01-28 15:18:40 -05:00
Daniel Lemire
4dcbd30d3f More robust tests for C++23 2024-01-28 15:00:27 -05:00
Daniel Lemire
eb584f748e explicit cast 2024-01-28 13:29:55 -05:00
Daniel Lemire
9da74ca5fb minor fixes 2024-01-28 12:49:00 -05:00
Daniel Lemire
3ab68b69d1 preparing version 6.1.0 2024-01-28 11:51:28 -05:00
Daniel Lemire
fade2357ba fix missing typename 2024-01-28 11:46:27 -05:00
Daniel Lemire
c7e45fea9f
Merge pull request #229 from MTahaK/main
Support for float32_t and float64_t
2024-01-28 11:43:54 -05:00
Daniel Lemire
a642af5235
Merge pull request #236 from fastfloat/issue235
Verify and fix issue 235
2024-01-28 11:43:35 -05:00
Daniel Lemire
7977ec6054 fix 2024-01-28 11:11:19 -05:00
Daniel Lemire
9be7de5998 adding sanitized tests 2024-01-28 10:56:20 -05:00
Daniel Lemire
5334e2ba94 fix 2024-01-28 10:55:02 -05:00
Daniel Lemire
1d97749791 Verify and fix issue 235 2024-01-28 10:47:21 -05:00
Daniel Lemire
620376ad39
Merge branch 'main' into main 2024-01-28 10:09:56 -05:00
Daniel Lemire
f320619216
Merge pull request #227 from fastfloat/extra_test
adding a single test
2024-01-28 10:08:49 -05:00
Daniel Lemire
7cbbcee6ed
Merge pull request #233 from StefanBruens/optional_supplemental_tests
Make tests depending on supplemental_test_files optional
2024-01-28 10:08:33 -05:00
Daniel Lemire
68b9475585
Merge pull request #234 from beached/patch-1
Update float_common.h
2023-12-28 08:16:38 -05:00
Darrell Wright
b43f808190
Update float_common.h
The construct !! is a no-op for a bool, op< for uint64_t's.  Removed it and made it an explicit cast to match the operations being performed
2023-12-27 19:43:56 -05:00
Daniel Lemire
b90ba259ef
Update README.md 2023-12-26 16:10:05 -05:00
Daniel Lemire
5c2a4a026a
Update README.md 2023-12-26 16:09:07 -05:00