1
1
# cpptoml
2
2
A header-only library for parsing [ TOML] [ toml ] configuration files.
3
3
4
- Targets: [ TOML v0.4 .0] [ currver ] as of February 2015 .
4
+ Targets: [ TOML v0.5 .0] [ currver ] as of August 2018 .
5
5
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 .
9
9
10
10
Alternatives:
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.
11
13
- [ ctoml] [ ctoml ] is a C++11 implementation of a TOML parser, but only
12
14
supports v0.2.0.
13
15
- [ libtoml] [ libtoml ] is a C implementation of a TOML parser, which can be
@@ -20,27 +22,20 @@ Alternatives:
20
22
[ ![ Build Status] ( https://travis-ci.org/skystrife/cpptoml.svg?branch=master )] ( https://travis-ci.org/skystrife/cpptoml )
21
23
22
24
## Test Results
23
- The following test is the only failing test from [ the toml-test
24
- suite] [ toml-test ] :
25
25
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 ] :
30
27
31
- 77 passed, 1 failed
32
28
```
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
+ ```
36
31
37
32
We also currently maintain (but hopefully not indefinitely!) a [ fork of the
38
33
toml-test suite] [ toml-test-fork ] that adds tests for features and
39
34
clarifications that have been added to the TOML spec more recently than
40
35
toml-test has been updated. We pass every test there.
41
36
42
37
```
43
- 109 passed, 0 failed
38
+ 137 passed, 0 failed
44
39
```
45
40
46
41
# Compilation
@@ -251,11 +246,11 @@ entire `cpptoml::table` for serialization.
251
246
`build_toml.cpp` shows how to construct a TOML representation in-memory and
252
247
then serialize it to a stream.
253
248
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
255
250
[toml]: https://github.com/toml-lang/toml
256
251
[toml-test]: https://github.com/BurntSushi/toml-test
257
252
[toml-test-fork]: https://github.com/skystrife/toml-test
258
253
[ctoml]: https://github.com/evilncrazy/ctoml
259
254
[libtoml]: https://github.com/ajwans/libtoml
260
255
[tinytoml]: https://github.com/mayah/tinytoml
261
- [biicode ]: https://www.biicode. com
256
+ [boost.toml ]: https://github. com/ToruNiina/Boost.toml
0 commit comments