Niels Dekker
2ca7ac6c2c
let toml::get_line return an _optional_ string_view ( #258 )
2025-02-27 15:56:02 +02:00
Niels Dekker
8b86a2490c
declare toml::get_line(std::string_view, source_index) constexpr ( #256 )
2025-02-26 11:47:47 +02:00
Niels Dekker
f3f625819a
add get_line(doc, line_num) utility ( #255 )
2025-02-23 18:20:03 +02:00
Niels Dekker
5cda06475f
add unit test for pull request #244 (print end of source region) ( #248 )
...
Tested commit 1fdd67ce5a , "let `print_to_stream` also print the end of a source region (#244 )"
2025-02-10 13:00:27 +02:00
Mark Gillard
cc1962eac7
fixed keys with \n round-tripping incorrectly
2023-10-10 17:21:03 +03:00
Mark Gillard
be30d11245
fixed keys containing \t formatting incorrectly
2023-10-09 19:41:18 +03:00
Mark Gillard
941341fce6
improved support for using enums with value_or()
2023-09-25 18:50:34 +03:00
Mark Gillard
d46cac705a
fixed #197
...
also:
- fixed `noexcept(...)` sometimes being incorrectly derived on `for_each()
- refactors
2023-09-05 13:53:23 +03:00
Mark Gillard
882d9d1c34
fixed gnu symbol visibility for static lib builds ( fixes #201 )
...
also:
- renamed header files to .hpp
- updated conformance tests
- minor documentation fixes
2023-08-26 17:41:29 +03:00
Mark Gillard
2414d904a8
fixed value_flags not preserved during insertion ( #108 )
...
also:
- fixed `toml::value::flags()` not being cleared when `std::move`-ing a value
- fixed #195
2023-04-03 19:34:39 +03:00
Mark Gillard
8f31ec8aed
fixed #187
...
also:
- fixed #188
- fixed #189
- updated conformance tests
- version bump
2023-01-29 17:49:41 +02:00
Mark Gillard
0e21bbd6da
added additional floating-point tests
2022-11-26 22:40:04 +02:00
Mark Gillard
7876c96aae
fixed parser null deref when exceptions are disabled
...
closes #169
2022-08-31 14:49:23 +03:00
Mark Gillard
6126437d6c
relaxed cvref requirements of some functions
...
also:
- added additional conformance test (toml/issues/908)
- added gitter badge image to docs/images
2022-05-31 14:02:01 +03:00
Mark Gillard
39b80f6c56
fixed table source columns being off by one
...
closes #152
also other minor refactors
2022-05-14 15:22:21 +03:00
Mark Gillard
e37e6d2bce
fixed treating non-ASCII horizontal whitespace as valid ( closes #135 )
...
also:
- added `parse_result::at_path()`
2022-01-09 13:01:56 +02:00
Mark Gillard
f6ce95907e
fixed integer overflow issues introduced in 3f4a540
...
closes #134
2022-01-08 15:17:12 +02:00
Mark Gillard
3f4a540ca6
fixed inconsistent error messages for overlong ints/floats ( closes #133 )
...
also:
- added `at_path()` (closes #118 )
- added `node_view::operator==`
- updated conformance tests
2022-01-08 00:08:31 +02:00
Mark Gillard
47241d003e
fixed permissive acceptance of incomplete CRLF at EOF ( closes #132 ))
2022-01-05 18:10:50 +02:00
Mark Gillard
7d3770df92
fixed inline tables being mutable through table headers ( closes #131 )
2022-01-05 16:56:08 +02:00
Mark Gillard
de2413e0ef
fixed date parsing when the year has a leading zero ( closes #130 )
...
also:
- fixed omitting value part from hex/bin/oct being accepted without error (closes #129 )
- added spec bug github template
2022-01-05 12:45:59 +02:00
Mark Gillard
b41e12f736
fixed incorrect unicode scalar sequence transformations ( #125 )
...
also:
- fixed extended-precision fractional times causing parse error instead of truncating per the spec (closes #127 )
- fixed some non-spec vertical whitespace being accepted as line breaks (closes #128 )
- added `format_flags::allow_unicode_strings`
2022-01-04 23:58:22 +02:00
Mark Gillard
bd9944a31a
removed double-bracket requirement for toml::table constructor
...
also:
- fixed incorrect `noexcept` specifications on many functions
- fixed missing `#include <initializer_list>`
- removed unnecessary uses of `final`
2021-10-26 23:53:27 +03:00
Mark Gillard
dbc078202d
removed internal operator""_sz (ADL is a cruel mistress)
...
also:
- applied clang-format to tests
- added some missing `TOML_API`
2021-10-26 16:49:23 +03:00
Mark Gillard
f3896b7474
fixed an illegal table redefinition edge case ( closes #112 )
...
also:
- fixed incorrect source position in redefinition error messages
- updated conformance tests
2021-09-04 14:52:28 +03:00
Mark Gillard
a29ecda102
fix crash with pathologically-nested inputs ( closes #100 )
...
also:
- fixed parse_result natvis
- added parse_result default constructor
- added nested value limit example to error printer
2021-05-18 01:39:01 +03:00
Mark Gillard
9be51e440a
fixed missing blank lines between consecutive empty tables/A-o-T
...
also:
- added additional value() testsfor inf/nan
- added additional formatting tests
2021-01-07 12:06:26 +02:00
Mark Gillard
1ef6c0c6c8
update copyright year [skip ci]
2021-01-02 17:48:47 +02:00
Mark Gillard
44c7da27d6
fixed toml::literals namespace ambiguity ( closes #69 )
2020-10-22 16:25:26 +03:00
Mark Gillard
5f3e01f71c
fixed array iterator conversion error ( closes #67 )
...
also removed superfluous newline when print ing a table (closes #68 )
2020-10-22 14:34:01 +03:00
Mark Gillard
30b756f993
fixed parser not handling overlong float literals correctly
...
also a few other edge cases (see #65 )
2020-10-10 11:45:53 +03:00
Mark Gillard
33f7d732a1
fixed issue handling malformed utf-8
2020-10-10 00:30:12 +03:00
Mark Gillard
6255dd765c
fixed issue handling malformed utf-8 at EOF ( closes #65 )
2020-10-09 23:49:06 +03:00
Mark Gillard
f6450f6ff9
moved is_homogenous to toml::node
...
also:
- added is_homogenous overload for identifying failure-causing element (to assist with implementing #45 )
- added table::is_homogenous
- added value::is_homogenous (just for generic code's sake)
2020-08-02 17:02:10 +03:00
Mark Gillard
b024ee6dc2
added tests for copying and insertion ( closes #49 )
...
also:
- added tests to catch any regressions of pull/50
- moved UTF-8 decoder copyright notice
- cleaned up static assert messages
2020-08-02 12:20:41 +03:00
Mark Gillard
2efb15bf9e
added insert, emplace, push_back etc. compatibility with node_views
...
In service of satisfying #49 .
2020-07-28 01:21:41 +03:00