ToruNiina
0a66be3257
test: add test for parsing heterogeneous array
...
this test case is activated only if TOML11_USE_UNRELEASED_TOML_FEATURES
is defined.
2019-11-08 15:52:31 +09:00
ToruNiina
160537360c
test: deactivate error check for hetero array
...
if TOML11_USE_UNRELEASED_TOML_FEATURES is activated.
2019-11-08 15:39:14 +09:00
ToruNiina
9af2d65417
feat: allow heterogenous array
...
if TOML11_USE_UNRELEASED_TOML_FEATURES is activated.
In TOML v0.5.0, heterogenous arrays are not allowed. But after some
discussions in toml-lang/toml, it is decided to allow it in the next
release (toml-lang/toml/pull/676).
To support it, disable type check in parse_array function.
2019-11-08 15:36:58 +09:00
ToruNiina
429763377f
Merge branch 'add-src-loc-to-exception' #87
2019-11-02 13:42:14 +09:00
ToruNiina
c774beb79a
doc: write about source_location in exceptions
2019-11-02 13:03:50 +09:00
ToruNiina
8240fffeca
Merge branch 'master' into add-src-loc-to-exception
2019-11-02 12:53:16 +09:00
ToruNiina
047611764c
fix: silly typo
2019-11-01 21:15:20 +09:00
ToruNiina
bc3eb9d967
feat: add src_loc to all the exceptions
...
including internal_error.
2019-11-01 21:14:33 +09:00
ToruNiina
6862264bde
feat: use the first char as the top-level region
...
A bit related to #89
2019-11-01 20:47:25 +09:00
ToruNiina
2ee69fc420
fix: improve error messages about strings a bit
2019-11-01 13:34:15 +09:00
ToruNiina
6a15e8360f
refactor: remove redundant namespace specifier
2019-10-31 23:13:49 +09:00
ToruNiina
b4c6d26842
Merge origin/add-src-loc-to-exception #87
2019-10-31 23:11:53 +09:00
ToruNiina
41eb1d6887
feat: pass source_location to exception
2019-10-31 22:23:31 +09:00
ToruNiina
3ca712a8da
feat: check line_num before converting it to int
2019-10-31 22:21:24 +09:00
ToruNiina
8e589ff4d7
feat: add source_location to (syntax_|type_)error
2019-10-31 22:04:16 +09:00
ToruNiina
56812114c3
refactor: simplify inclusion dependencies
2019-10-31 21:58:28 +09:00
ToruNiina
f98615d0df
fix: check file content is empty or not
2019-10-30 16:49:49 +09:00
ToruNiina
37769e28f0
fix #88 : check if input is null-terminated or not
2019-10-30 16:33:22 +09:00
ToruNiina
2acdec00aa
Merge branch 'refactor-ci'
2019-10-15 23:13:44 +09:00
ToruNiina
354cfc979a
ci: cache brew directory
2019-10-15 23:13:11 +09:00
ToruNiina
3dc3b001ff
ci: update clang 3.x from 3.7 to 3.9
2019-10-15 23:13:06 +09:00
ToruNiina
ea24a91f4c
ci: use sourceline
2019-10-15 20:32:09 +09:00
ToruNiina
5bba73a8ca
ci: use addons in OS X on Travis.CI
2019-10-15 20:27:27 +09:00
ToruNiina
54eced6c82
test: add test for toml::string::operator+=
2019-10-09 21:51:33 +09:00
ToruNiina
258e62f8f3
feat: add operator+= to toml::string
2019-10-09 21:51:14 +09:00
ToruNiina
06086a9ff7
doc: add note about value::at
2019-10-09 21:09:38 +09:00
ToruNiina
b4b35ea33e
feat: allow 0-prefix exponent if the flag is on
...
If unreleased feature is activated, zero-prefixes in an exponent part of
a floating point is allowed. If the flag TOML11_UNRELEASED_TOML_FEATURES
is turned on, we don't need to check whether there is a zero prefix in
the exponent part that is formatted by a standard library.
2019-10-08 23:23:53 +09:00
ToruNiina
d7b4d104d3
refactor: reduce checking; just check once
2019-10-08 23:15:03 +09:00
ToruNiina
e12fd4d944
doc: add contributors
2019-10-04 14:28:43 +09:00
ToruNiina
36af02cb3a
test: add test cases for one-way conversion
2019-10-04 13:01:15 +09:00
ToruNiina
488015df49
fix: toml -> T is required; related to #83
2019-10-04 13:00:34 +09:00
Toru Niina
1f951e49b1
Merge pull request #84 from jcmoyer/master
...
Update documentation for toml::from and toml::into
2019-10-04 12:58:13 +09:00
J.C. Moyer
6a7dbb7875
Update documentation for toml::from and toml::into
2019-10-03 21:28:06 -04:00
ToruNiina
ad7eb56634
fix: avoid potential memory bugs related to move
2019-10-03 14:42:52 +09:00
ToruNiina
b01c5534ed
test: add test cases for const-ref version
2019-10-03 13:52:12 +09:00
ToruNiina
22dac3c9f2
Merge branch 'value-at'
2019-09-28 19:40:51 +09:00
ToruNiina
d5adfe8c7d
refactor: use as_xxx instead of cast<enum>
...
because cast<enum>() requires `template` specifier inside a template
function. it makes code long.
2019-09-28 17:01:45 +09:00
ToruNiina
4bb8045c84
doc: add basic_value::at
.
2019-09-28 16:31:45 +09:00
ToruNiina
babb6ab3fe
test: add test case for basic_value::at
2019-09-28 16:22:01 +09:00
ToruNiina
d73bc6076c
feat: add basic_value::at(key) and at(idx)
2019-09-28 16:21:51 +09:00
ToruNiina
8d1da6e8b5
test: add test cases for find_or(&&) + conversion
2019-09-28 14:01:33 +09:00
ToruNiina
8276e12f06
test: add test cases for toml::find_or(value&&)
2019-09-28 13:38:59 +09:00
ToruNiina
f3d3f63ff9
fix: return values from find_or(value&&)
2019-09-28 13:38:26 +09:00
ToruNiina
d9689c878d
test: add test cases for toml::find(value&&, key)
2019-09-28 13:05:13 +09:00
ToruNiina
df097cb09a
test: add test cases of get_or(value&&, U)
2019-09-28 12:13:59 +09:00
ToruNiina
a425e3b7c6
test: add test cases of toml::get_or(value&&, T&&)
2019-09-28 12:08:14 +09:00
ToruNiina
e4b4503b81
style: add comment to test::operator<<
2019-09-28 12:07:53 +09:00
ToruNiina
b44fbad925
fix: remove needless ::type
2019-09-28 11:14:14 +09:00
ToruNiina
826c9444ac
refactor: use remove_cvref
2019-09-28 11:03:46 +09:00
ToruNiina
a1095f3e4c
refactor: use std::map::at instead of []
2019-09-28 11:03:14 +09:00