|
rapidyaml
0.13.0
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. More... | |
| 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 More... | |
| 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. More... | |
| void | c4::yml::parse_in_arena (Parser *parser, csubstr yaml, Tree *t) |
| (4) like (3) but no filename will be reported More... | |
| 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 More... | |
| void | c4::yml::parse_in_arena (Parser *parser, csubstr yaml, NodeRef node) |
| (6) like (5) but no filename will be reported More... | |
| Tree | c4::yml::parse_in_arena (Parser *parser, csubstr filename, csubstr yaml) |
| (7) create a new tree, and parse YAML into its root node. More... | |
| Tree | c4::yml::parse_in_arena (Parser *parser, csubstr yaml) |
| (8) like (7) but no filename will be reported More... | |
| 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. More... | |
| 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 More... | |
| 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. More... | |
| void | c4::yml::parse_json_in_arena (Parser *parser, csubstr json, Tree *t) |
| (4) like (3) but no filename will be reported More... | |
| 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 More... | |
| void | c4::yml::parse_json_in_arena (Parser *parser, csubstr json, NodeRef node) |
| (6) like (5) but no filename will be reported More... | |
| 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. More... | |
| Tree | c4::yml::parse_json_in_arena (Parser *parser, csubstr json) |
| (8) like (7) but no filename will be reported More... | |
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 |
| 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.
Definition at line 92 of file parse.cpp.
(2) like (1) but no filename will be reported
Definition at line 93 of file parse.cpp.
(3) parse YAML into an existing tree, into its root node.
Definition at line 94 of file parse.cpp.
(4) like (3) but no filename will be reported
Definition at line 95 of file parse.cpp.
(5) like (1) but the node is given as a NodeRef
Definition at line 96 of file parse.cpp.
(6) like (5) but no filename will be reported
Definition at line 97 of file parse.cpp.
(7) create a new tree, and parse YAML into its root node.
Definition at line 98 of file parse.cpp.
(8) like (7) but no filename will be reported
Definition at line 99 of file parse.cpp.
| 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.
Definition at line 113 of file parse.cpp.
(2) like (1) but no filename will be reported
Definition at line 114 of file parse.cpp.
(3) parse JSON into an existing tree, into its root node.
Definition at line 115 of file parse.cpp.
(4) like (3) but no filename will be reported
Definition at line 116 of file parse.cpp.
(5) like (1) but the node is given as a NodeRef
Definition at line 117 of file parse.cpp.
(6) like (5) but no filename will be reported
Definition at line 118 of file parse.cpp.
(7) create a new tree, and parse JSON into its root node.
Definition at line 119 of file parse.cpp.
(8) like (7) but no filename will be reported
Definition at line 120 of file parse.cpp.