1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-05 22:53:52 +00:00
Philip Top 91101604d5
Support all capabilities for toml integers and floating point numbers (#968)
This PR add support for all TOML integer types.
This includes 
```
{"+99", 99},
    { "99",99 },
    { "0xDEADBEEF",0xDEADBEEF },
    { "0xdeadbeef",0xDEADBEEF },
    { "0xdead_beef",0xDEADBEEF },
    { "0xdead'beef",0xDEADBEEF },
    { "0o01234567",001234567 },
    { "0o755",0755 },
    { "0755",0755 },
    { "995862_262",995862262 },
    { "995862262",995862262 },
    { "+995862275",+995862275 },
    { "995'862'275",995862275 },
    {"0b11010110",0xD6},
    {"0b1101'0110",0xD6},
    {"1_2_3_4_5",12345},
```

So support for separators (Toml and C++ standards), binary(new),
hex(worked previously), and octal(new)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-02 06:56:46 -08:00
..
2023-09-20 13:20:53 -04:00
2023-09-20 13:20:53 -04:00
2023-01-12 15:03:20 -05:00
2023-01-12 15:03:20 -05:00
2023-01-12 15:03:20 -05:00
2023-01-12 15:03:20 -05:00
2023-01-03 19:12:23 -05:00