Commit 7aa9b2c
Use updated fast_float::parse_options
Summary:
X-link: https://github.com/facebookincubator/zstrong/pull/1216
`str_to_floating_fast_float_from_chars` can be simplified using the new upstream option `allow_leading_plus`. It does mean that we also support parsing `+nan` and `+infinity` which we previously didn't.
Mapping to `Inf` is also handled by the parsing logic, so this custom branch can be removed.
Reviewed By: Gownta
Differential Revision: D70392258
fbshipit-source-id: 62972a6cadd1547d8ff0a3162510ae5e979d459f1 parent 7881d1e commit 7aa9b2c
File tree
3 files changed
+23
-30
lines changed- build/fbcode_builder/manifests
- folly
- test
3 files changed
+23
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | 362 | | |
371 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
372 | 367 | | |
373 | 368 | | |
374 | 369 | | |
| |||
377 | 372 | | |
378 | 373 | | |
379 | 374 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | 375 | | |
390 | 376 | | |
391 | 377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1703 | 1703 | | |
1704 | 1704 | | |
1705 | 1705 | | |
1706 | | - | |
| 1706 | + | |
1707 | 1707 | | |
1708 | 1708 | | |
1709 | 1709 | | |
1710 | 1710 | | |
1711 | 1711 | | |
1712 | 1712 | | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
1713 | 1716 | | |
1714 | 1717 | | |
1715 | 1718 | | |
1716 | 1719 | | |
1717 | 1720 | | |
1718 | 1721 | | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
| 1722 | + | |
1722 | 1723 | | |
1723 | 1724 | | |
1724 | 1725 | | |
1725 | 1726 | | |
1726 | 1727 | | |
1727 | 1728 | | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
1728 | 1735 | | |
1729 | 1736 | | |
1730 | 1737 | | |
1731 | 1738 | | |
1732 | | - | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1733 | 1744 | | |
1734 | 1745 | | |
1735 | 1746 | | |
| |||
1739 | 1750 | | |
1740 | 1751 | | |
1741 | 1752 | | |
1742 | | - | |
1743 | | - | |
1744 | | - | |
1745 | | - | |
1746 | 1753 | | |
1747 | 1754 | | |
1748 | 1755 | | |
| |||
0 commit comments