2
0
mirror of https://github.com/boostorg/json.git synced 2026-01-19 16:22:20 +00:00

81 Commits

Author SHA1 Message Date
Dmitry Arkhipov
427baa6e47 remove dependency on StaticAssert 2025-10-24 19:33:52 +03:00
Vaishnav Katiyar
dc9521601c allow_invalid_utf16 2024-04-10 16:45:06 +05:30
Dmitry Arkhipov
bacc644f93 deprecate type aliases 2024-02-09 13:19:49 +03:00
Dmitry Arkhipov
2acdb29a32 fix reading beyond input buffer
This fixes a rare case when the parser first suspends inside a comment,
then is given input exactly up to the newline character. Before the fix
it proceeded to read past the end of the buffer or hit an assert.
2023-08-25 19:50:20 +03:00
Dmitry Arkhipov
dd5494b202 accept numbers with large exponent 2023-06-26 21:38:25 +03:00
Dmitry Arkhipov
51d86cdd12 option to allow Infinity and NaN literals 2023-06-02 11:53:40 +03:00
Dmitry Arkhipov
36552f0c94 remove namespace macros 2023-01-02 18:41:01 +03:00
Dmitry Arkhipov
cc019f753b make basic_parser tests informative in CI 2022-06-10 20:08:05 +03:00
Dmitry Arkhipov
56eaebf1cb add source_location to error_codes 2022-02-18 14:31:47 +03:00
Dmitry Arkhipov
6fc14477bb Switch to core::string_view 2022-02-06 17:35:09 +03:00
Dmitry Arkhipov
1523954c98 Add std::error_code overloads 2022-02-06 17:35:09 +03:00
Dmitry Arkhipov
445efad9a9 Remove trailing whitespace 2021-06-26 16:17:57 +03:00
Vinnie Falco
6f895a79cc Refactor basic_parser includes
fix #424
2020-10-04 18:30:22 -07:00
Vinnie Falco
9b86962fbc Add metadata and update repo links 2020-10-04 11:06:25 -07:00
Vinnie Falco
47fdfb0840 basic_parser has no undefined behavior 2020-09-27 18:37:15 -07:00
Vinnie Falco
7cb4ad1884 Rename to basic_parser::write_some (API Change)
fix #394

basic_parser::write is now called write_some
2020-09-24 10:39:25 -07:00
Vinnie Falco
e0b7b2b4f9 Tidy up dtor exception specs and docs
fix #309
2020-09-15 17:43:10 -07:00
Vinnie Falco
a39a6113f5 basic_parser errors are sticky 2020-09-13 12:04:41 -07:00
Krystian Stasiowski
f3d0710e37 Handler specifies structure and string limits 2020-09-09 12:12:50 -07:00
Vinnie Falco
a9f72dd9bc Rename to done, add parser write overload 2020-09-08 09:02:30 -07:00
Vinnie Falco
d1f26dcea4 Tune local buffers for embedded
fix #302
2020-09-08 07:59:11 -07:00
Krystian Stasiowski
3fae437722 Pass total string size to handlers
fix #266
2020-09-05 16:42:52 -07:00
Krystian Stasiowski
b9ec513f7a Flush when parsing UTF-8
fix #240
2020-09-01 16:38:01 -07:00
Vinnie Falco
94e26abb66 standalone is an inline namespace
fix #181, close #244
2020-09-01 15:44:47 -07:00
Krystian Stasiowski
b94d3c14bd Structure size is passed to handlers 2020-08-27 18:44:44 -07:00
Vinnie Falco
832d1fb517 Refactor parsing interfaces (API change) 2020-08-27 13:48:26 -07:00
Krystian Stasiowski
bdb5e7688b Add parse_options::max_depth
fix #205, close #209
2020-08-26 15:33:28 -07:00
Krystian Stasiowski
2aca47241f Fix links
close #200
2020-08-24 14:03:51 -07:00
Krystian Stasiowski
ecd8aafe3b Fix UTF-8 validation
fixes #162
2020-08-22 06:52:47 -07:00
Vinnie Falco
3e4eb3055f Doc work 2020-08-20 15:21:09 -07:00
Krystian Stasiowski
f7c60debe1 Fix max depth
fix #176, close #177
2020-08-20 09:23:24 -07:00
Vinnie Falco
36c4a1a787 basic_parser is a class template 2020-08-18 15:10:22 -07:00
Vinnie Falco
c6b4fcfbe0 basic_parser is a data member 2020-08-18 13:51:53 -07:00
Krystian Stasiowski
fa67c5f896 Number literal handler tests
fix #149, close #153
2020-08-12 11:08:49 -07:00
Krystian Stasiowski
64bfb2e703 Pass raw number literals to handlers
close #142
2020-08-11 16:04:32 -07:00
Krystian Stasiowski
e876282d3e Remove constructor from parse_options 2020-08-11 16:01:54 -07:00
Krystian Stasiowski
eea4758df8 Improve basic_parser coverage 2020-08-09 15:24:24 -07:00
Krystian Stasiowski
c56d0f55d0 Refactor tests 2020-07-28 14:27:52 -04:00
Krystian Stasiowski
d98b565887 UTF-8 validation 2020-07-28 14:27:50 -04:00
Krystian Stasiowski
3ac73ec531 Comment and trailing comma support
close #116
2020-07-22 15:40:46 -07:00
Krystian Stasiowski
904252de0b Fix repo links
close #123
2020-07-03 11:51:58 -07:00
Krystian Stasiowski
86addf23a4 Remove size parameter from object and array handlers 2020-06-30 23:07:22 -04:00
Krystian Stasiowski
ed8f95e161 Flush buffer after parsing escapes
close #113, close #114
2020-06-29 18:15:46 -07:00
Vinnie Falco
8e0356ef7a Refactor parser write 2020-04-04 13:15:40 -07:00
Vinnie Falco
2545475bdd basic_parser is a base 2020-04-04 06:58:55 -07:00
Vinnie Falco
7784fdd45b StackEmpty is a compile time constant 2020-03-29 10:32:43 -07:00
Vinnie Falco
8822a141c8 Tidy up parsers 2020-03-29 08:59:08 -07:00
Vinnie Falco
6387fb8671 basic_parser handler is a template 2020-03-28 20:29:46 -07:00
Vinnie Falco
79ba1a8198 Use return channel in parser 2020-03-28 15:37:30 -07:00
Vinnie Falco
a7ef611630 Remove old number code 2020-03-26 08:24:00 -07:00