|
rapidyaml 0.15.2
parse and emit YAML, and do it fast
|
parse a read-only (immutable) YAML source buffer. More...
Macros | |
| #define | RYML_DONT_PARSE_SUBSTR_IN_ARENA |
Functions | |
| void | c4::yml::parse_in_arena (Parser *parser, csubstr filename, csubstr yaml, Tree *t, id_type node_id) |
| (1) parse YAML into an existing tree node. The filename will be used in any error messages arising during the parse. | |
| void | c4::yml::parse_in_arena (Parser *parser, csubstr yaml, Tree *t, id_type node_id) |
| (2) like (1) but no filename will be reported | |
| void | c4::yml::parse_in_arena (Parser *parser, csubstr filename, csubstr yaml, Tree *t) |
| (3) parse YAML into an existing tree, into its root node. | |
| void | c4::yml::parse_in_arena (Parser *parser, csubstr yaml, Tree *t) |
| (4) like (3) but no filename will be reported | |
| void | c4::yml::parse_in_arena (Parser *parser, csubstr filename, csubstr yaml, NodeRef node) |
| (5) like (1) but the node is given as a NodeRef | |
| void | c4::yml::parse_in_arena (Parser *parser, csubstr yaml, NodeRef node) |
| (6) like (5) but no filename will be reported | |
| Tree | c4::yml::parse_in_arena (Parser *parser, csubstr filename, csubstr yaml) |
| (7) create a new tree, and parse YAML into its root node. | |
| Tree | c4::yml::parse_in_arena (Parser *parser, csubstr yaml) |
| (8) like (7) but no filename will be reported | |
| void | c4::yml::parse_json_in_arena (Parser *parser, csubstr filename, csubstr json, Tree *t, id_type node_id) |
| (1) parse JSON into an existing tree node. The filename will be used in any error messages arising during the parse. | |
| void | c4::yml::parse_json_in_arena (Parser *parser, csubstr json, Tree *t, id_type node_id) |
| (2) like (1) but no filename will be reported | |
| void | c4::yml::parse_json_in_arena (Parser *parser, csubstr filename, csubstr json, Tree *t) |
| (3) parse JSON into an existing tree, into its root node. | |
| void | c4::yml::parse_json_in_arena (Parser *parser, csubstr json, Tree *t) |
| (4) like (3) but no filename will be reported | |
| void | c4::yml::parse_json_in_arena (Parser *parser, csubstr filename, csubstr json, NodeRef node) |
| (5) like (1) but the node is given as a NodeRef | |
| void | c4::yml::parse_json_in_arena (Parser *parser, csubstr json, NodeRef node) |
| (6) like (5) but no filename will be reported | |
| Tree | c4::yml::parse_json_in_arena (Parser *parser, csubstr filename, csubstr json) |
| (7) create a new tree, and parse JSON into its root node. | |
| Tree | c4::yml::parse_json_in_arena (Parser *parser, csubstr json) |
| (8) like (7) but no filename will be reported | |
parse a read-only (immutable) YAML source buffer.
This is achieved by first copying the contents of the buffer to the tree's arena, and then calling parse_in_arena() . All the resulting scalars will be filtered in the arena. These overloads accept an existing parser object, and provide the opportunity to use special parser options.
| #define RYML_DONT_PARSE_SUBSTR_IN_ARENA |
Definition at line 183 of file parse.hpp.
(3) parse YAML into an existing tree, into its root node.
Definition at line 211 of file parse.cpp.
(7) create a new tree, and parse YAML into its root node.
Definition at line 215 of file parse.cpp.