11# cpptoml
22A header-only library for parsing [ TOML] [ toml ] configuration files.
33
4- Targets: [ TOML v0.4 .0] [ currver ] as of February 2015 .
4+ Targets: [ TOML v0.5 .0] [ currver ] as of August 2018 .
55
6- It is reasonably conforming, with the exception of unicode escape
7- characters in strings. This includes support for the new DateTime format ,
8- inline tables, multi-line basic and raw strings , and digit separators .
6+ This includes support for the new DateTime format, inline tables,
7+ multi-line basic and raw strings, digit separators, hexadecimal integers ,
8+ octal integers, binary integers , and float special values .
99
1010Alternatives:
11+ - [ Boost.toml] [ boost.toml ] is a C++ implementation of a TOML parser using
12+ the Boost library. As of writing, it supports v0.5.0 as well.
1113- [ ctoml] [ ctoml ] is a C++11 implementation of a TOML parser, but only
1214 supports v0.2.0.
1315- [ libtoml] [ libtoml ] is a C implementation of a TOML parser, which can be
@@ -20,27 +22,20 @@ Alternatives:
2022[ ![ Build Status] ( https://travis-ci.org/skystrife/cpptoml.svg?branch=master )] ( https://travis-ci.org/skystrife/cpptoml )
2123
2224## Test Results
23- The following test is the only failing test from [ the toml-test
24- suite] [ toml-test ] :
2525
26- ```
27- Test: datetime-malformed-no-z (invalid)
28-
29- Expected an error, but no error was reported.
26+ From [ the toml-test suite] [ toml-test ] :
3027
31- 77 passed, 1 failed
3228```
33-
34- This is due to cpptoml's support for extended Date-times (from the TOML
35- master branch) and can safely be ignored.
29+ 117 passed, 0 failed
30+ ```
3631
3732We also currently maintain (but hopefully not indefinitely!) a [ fork of the
3833toml-test suite] [ toml-test-fork ] that adds tests for features and
3934clarifications that have been added to the TOML spec more recently than
4035toml-test has been updated. We pass every test there.
4136
4237```
43- 109 passed, 0 failed
38+ 137 passed, 0 failed
4439```
4540
4641# Compilation
@@ -251,11 +246,11 @@ entire `cpptoml::table` for serialization.
251246`build_toml.cpp` shows how to construct a TOML representation in-memory and
252247then serialize it to a stream.
253248
254- [currver]: https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4 .0.md
249+ [currver]: https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.5 .0.md
255250[toml]: https://github.com/toml-lang/toml
256251[toml-test]: https://github.com/BurntSushi/toml-test
257252[toml-test-fork]: https://github.com/skystrife/toml-test
258253[ctoml]: https://github.com/evilncrazy/ctoml
259254[libtoml]: https://github.com/ajwans/libtoml
260255[tinytoml]: https://github.com/mayah/tinytoml
261- [biicode ]: https://www.biicode. com
256+ [boost.toml ]: https://github. com/ToruNiina/Boost.toml
0 commit comments