|
rapidyaml
0.16.0
parseandemitYAML,anddoitfast
|
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. More... | |
| 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 More... | |
| 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. More... | |
| void | c4::yml::parse_in_place (Parser *parser, substr yaml, Tree *t) |
| (4) like (3) but no filename will be reported More... | |
| 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 More... | |
| void | c4::yml::parse_in_place (Parser *parser, substr yaml, NodeRef node) |
| (6) like (5) but no filename will be reported More... | |
| Tree | c4::yml::parse_in_place (Parser *parser, csubstr filename, substr yaml) |
| (7) create a new tree, and parse YAML into its root node. More... | |
| Tree | c4::yml::parse_in_place (Parser *parser, substr yaml) |
| (8) like (7) but no filename will be reported More... | |
| 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. More... | |
| 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 More... | |
| 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. More... | |
| void | c4::yml::parse_json_in_place (Parser *parser, substr json, Tree *t) |
| (4) like (3) but no filename will be reported More... | |
| 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 More... | |
| void | c4::yml::parse_json_in_place (Parser *parser, substr json, NodeRef node) |
| (6) like (5) but no filename will be reported More... | |
| 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. More... | |
| Tree | c4::yml::parse_json_in_place (Parser *parser, substr json) |
| (8) like (7) but no filename will be reported More... | |
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.
Referenced by IntsParser::parse_or_resize_and_then_parse(), sample_lightning_overview(), sample_parse_file(), sample_parse_in_place(), sample_quick_overview(), sample_std_types(), and sample_tree_arena().
(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.