|
rapidyaml 0.15.2
parse and emit YAML, and do it fast
|
parse a mutable YAML source buffer (re)using an existing parser. More...
Functions | |
| void | c4::yml::parse_in_place (Parser *parser, csubstr filename, substr yaml, Tree *t, id_type node_id) |
| (1) parse YAML into an existing tree node. | |
| void | c4::yml::parse_in_place (Parser *parser, substr yaml, Tree *t, id_type node_id) |
| (2) like (1) but no filename will be reported | |
| void | c4::yml::parse_in_place (Parser *parser, csubstr filename, substr yaml, Tree *t) |
| (3) parse YAML into the root node of an existing tree. | |
| void | c4::yml::parse_in_place (Parser *parser, substr yaml, Tree *t) |
| (4) like (3) but no filename will be reported | |
| void | c4::yml::parse_in_place (Parser *parser, csubstr filename, substr yaml, NodeRef node) |
| (5) like (1) but the node is given as a NodeRef | |
| void | c4::yml::parse_in_place (Parser *parser, substr yaml, NodeRef node) |
| (6) like (5) but no filename will be reported | |
| Tree | c4::yml::parse_in_place (Parser *parser, csubstr filename, substr yaml) |
| (7) create a new tree, and parse YAML into its root node. | |
| Tree | c4::yml::parse_in_place (Parser *parser, substr yaml) |
| (8) like (7) but no filename will be reported | |
| void | c4::yml::parse_json_in_place (Parser *parser, csubstr filename, substr 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_place (Parser *parser, substr json, Tree *t, id_type node_id) |
| (2) like (1) but no filename will be reported | |
| void | c4::yml::parse_json_in_place (Parser *parser, csubstr filename, substr json, Tree *t) |
| (3) parse JSON into an existing tree, into its root node. | |
| void | c4::yml::parse_json_in_place (Parser *parser, substr json, Tree *t) |
| (4) like (3) but no filename will be reported | |
| void | c4::yml::parse_json_in_place (Parser *parser, csubstr filename, substr json, NodeRef node) |
| (5) like (1) but the node is given as a NodeRef | |
| void | c4::yml::parse_json_in_place (Parser *parser, substr json, NodeRef node) |
| (6) like (5) but no filename will be reported | |
| Tree | c4::yml::parse_json_in_place (Parser *parser, csubstr filename, substr json) |
| (7) create a new tree, and parse JSON into its root node. | |
| Tree | c4::yml::parse_json_in_place (Parser *parser, substr json) |
| (8) like (7) but no filename will be reported | |
parse a mutable YAML source buffer (re)using an existing parser.
Scalars requiring filtering are mutated in place (except in the rare cases where the filtered scalar is longer than the original scalar, or where filtering was disabled before the call). These overloads accept an existing parser object, and provide the opportunity to use special parser options.
| void c4::yml::parse_in_place | ( | Parser * | parser, |
| csubstr | filename, | ||
| substr | 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. The callbacks in the
tree are kept, and used to allocate
the tree members, if any allocation is required.
Definition at line 165 of file parse.cpp.
(3) parse YAML into the root node of an existing tree.
The filename will be used in any error messages
arising during the parse. The callbacks in the
tree are kept, and used to allocate
the tree members, if any allocation is required.
Definition at line 167 of file parse.cpp.
(4) like (3) but no filename will be reported
Definition at line 168 of file parse.cpp.
(7) create a new tree, and parse YAML into its root node.
The filename will be used in any error messages
arising during the parse. The tree is created with
the callbacks currently in the parser.
Definition at line 171 of file parse.cpp.