|
rapidyaml
0.13.0
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. 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.
(2) like (1) but no filename will be reported
Definition at line 52 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 53 of file parse.cpp.
(4) like (3) but no filename will be reported
Definition at line 54 of file parse.cpp.
(5) like (1) but the node is given as a NodeRef
Definition at line 55 of file parse.cpp.
(6) like (5) but no filename will be reported
Definition at line 56 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 57 of file parse.cpp.
(8) like (7) but no filename will be reported
Definition at line 58 of file parse.cpp.
(2) like (1) but no filename will be reported
Definition at line 72 of file parse.cpp.
(3) parse JSON into an existing tree, into its root node.
Definition at line 73 of file parse.cpp.
(4) like (3) but no filename will be reported
Definition at line 74 of file parse.cpp.
(5) like (1) but the node is given as a NodeRef
Definition at line 75 of file parse.cpp.
(6) like (5) but no filename will be reported
Definition at line 76 of file parse.cpp.
(7) create a new tree, and parse JSON into its root node.
Definition at line 77 of file parse.cpp.
(8) like (7) but no filename will be reported
Definition at line 78 of file parse.cpp.