ToruNiina
fb6d51954a
turn test_parse_unicode on; no change required
2018-12-13 02:28:52 +09:00
ToruNiina
4d7cfc9d1d
turn test_parse_file on
...
the required change is;
- change Datetime -> offset_datetime and construct correctly.
2018-12-13 02:26:55 +09:00
ToruNiina
514f3c773f
set test_from_toml
2018-12-13 02:24:03 +09:00
ToruNiina
77b237c53a
update README
2018-12-13 02:00:42 +09:00
ToruNiina
27a80b1214
rename get(table, key) to find()
2018-12-13 02:00:13 +09:00
ToruNiina
f62bcb3077
update cmakelists
2018-12-13 01:30:25 +09:00
ToruNiina
be1a310ae5
move test for find to get_related
2018-12-13 01:30:06 +09:00
ToruNiina
affa159c82
add get_or(value, key, opt)
2018-12-13 01:29:23 +09:00
ToruNiina
901c299c40
add unwrap_or to result
2018-12-13 01:28:55 +09:00
ToruNiina
2080b30110
add test cases for test_to_toml
2018-12-13 00:38:36 +09:00
ToruNiina
c15cb15c4c
simplify to_toml implementation
2018-12-13 00:38:04 +09:00
ToruNiina
d370ae7d0d
set tm_isdst as negative value
2018-12-13 00:35:43 +09:00
ToruNiina
83b588a8c8
rename test code
2018-12-13 00:35:05 +09:00
ToruNiina
5bfbbe35a6
update README
2018-12-12 23:23:59 +09:00
ToruNiina
c69969733f
use carriage return depending on env
2018-12-12 23:22:31 +09:00
ToruNiina
47cd6f5a41
remove redundant error message
2018-12-12 23:17:28 +09:00
ToruNiina
a19c9b4a39
add test case for find & get
2018-12-12 21:55:11 +09:00
ToruNiina
f64430af92
remove old test; individual test cases are added
...
test_parse_* is now available, old test_parser is not needed now
2018-12-12 20:55:58 +09:00
ToruNiina
8e154cdd74
add test case for parsing datetime
2018-12-12 20:55:30 +09:00
ToruNiina
65cfa9d06b
remove unused file because its not stable
...
since toml::format is not stable now, remove once for the next release.
2018-12-12 20:35:21 +09:00
ToruNiina
cfd82c95f0
add test case for getting converted map
2018-12-12 20:32:26 +09:00
ToruNiina
18a22eb3c4
add test cases for datetime variants
2018-12-12 20:28:31 +09:00
ToruNiina
03be08a2e6
fix conversion from offset_datetime to system_clock::time_point
2018-12-12 20:28:11 +09:00
ToruNiina
27ad4e2d8f
cleanup headers
2018-12-12 19:39:04 +09:00
ToruNiina
0924164f51
add a note about the error message
2018-12-12 19:36:57 +09:00
ToruNiina
d4a4865217
fix some errors in README
2018-12-12 19:35:33 +09:00
ToruNiina
1bc66f6c28
Merge branch 'toml-v050' of github.com:ToruNiina/toml11 into toml-v050
2018-12-12 19:33:13 +09:00
ToruNiina
b015e1ac5b
update README for the next version
2018-12-12 19:33:01 +09:00
ToruNiina
5aae0b17c8
change error message; require unicode codepoint
...
before this, it recommends the range that can be represented by utf-8
but the range of valid unicode codepoint is narrower than that. for
error message, it is good to recommend valid unicode codepoint.
2018-12-12 19:14:27 +09:00
ToruNiina
0f83ee6039
change temporaly loc from token to copy of loc
...
location constructed from token string does not has correct line number
information. to show an informative error message about UTF-8 and escape
sequences, parse_(ml_)basic_string requires those information that can
only be given from root location<Container>.
2018-12-12 19:12:23 +09:00
ToruNiina
879b7d3bff
improve format of error message for utf-8
2018-12-12 19:01:22 +09:00
ToruNiina
c33ad31981
split lexer for escape sequence for unicode
2018-12-12 18:59:20 +09:00
ToruNiina
5d29509d98
remove duplicated default argument for SFINAE
2018-12-12 18:58:54 +09:00
ToruNiina
717e03cd4a
add find-get overload functions
2018-12-12 17:55:34 +09:00
ToruNiina
5a20d55dd0
add test for toml::get
2018-12-12 17:23:06 +09:00
ToruNiina
dc060ba840
add explicit std::move to toml::get(&&)
2018-12-12 17:22:41 +09:00
ToruNiina
fcbfbd3a26
supress warning about comparison between signed and unsigned
2018-12-12 16:12:10 +09:00
ToruNiina
0c9b785969
add missing include file
2018-12-12 16:11:37 +09:00
ToruNiina
bcaf5baf88
fix parse_array_of_table_key
...
allow whitespace before and after [[ and ]] (like, [[ a.b ]])
2018-12-12 12:14:11 +09:00
ToruNiina
5dea88001e
add test case for array-of-tables
2018-12-12 12:13:49 +09:00
ToruNiina
b63dc1f370
remove extra comma
2018-12-12 01:36:20 +09:00
ToruNiina
d3e88b3082
add test case for table key
2018-12-12 01:31:36 +09:00
ToruNiina
a1a81089c5
skip whitespace before/inside/after dotted-keys
2018-12-12 01:30:47 +09:00
ToruNiina
765ab97d8b
add whitespace between [] and key
...
[ a.b.c ] is allowed. also, [[ a . b ]] is allowed.
dotted key matches `a.b.c` only, so the explicit whitespace is needed.
2018-12-12 01:27:10 +09:00
ToruNiina
9f8e86524a
add a lot of dotted keys to test_lex
2018-12-12 01:26:56 +09:00
ToruNiina
4d64c0d8af
add tests for inline table
2018-12-11 23:38:57 +09:00
ToruNiina
e810c3d35e
add tests for equivalent operator
2018-12-11 23:33:32 +09:00
ToruNiina
fc3471434f
add test for array
2018-12-11 23:31:24 +09:00
ToruNiina
be8600abfa
add test for key and string
2018-12-11 23:25:44 +09:00
ToruNiina
e79e6150f2
update testing macro
2018-12-11 23:25:23 +09:00