|
rapidyaml
0.8.0
parse and emit YAML, and do it fast
|
parse a read-only (immutable) YAML source buffer. More...
Functions | |
| void | c4::yml::parse_in_arena (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 (csubstr yaml, Tree *t, id_type node_id) |
| (2) like (1) but no filename will be reported More... | |
| void | c4::yml::parse_in_arena (csubstr filename, csubstr yaml, Tree *t) |
| (3) parse YAML into an existing tree, into its root node. More... | |
| void | c4::yml::parse_in_arena (csubstr yaml, Tree *t) |
| (4) like (3) but no filename will be reported More... | |
| void | c4::yml::parse_in_arena (csubstr filename, csubstr yaml, NodeRef node) |
| (5) like (1) but the node is given as a NodeRef More... | |
| void | c4::yml::parse_in_arena (csubstr yaml, NodeRef node) |
| (6) like (5) but no filename will be reported More... | |
| Tree | c4::yml::parse_in_arena (csubstr filename, csubstr yaml) |
| (7) create a new tree, and parse YAML into its root node. More... | |
| Tree | c4::yml::parse_in_arena (csubstr yaml) |
| (8) like (7) but no filename will be reported More... | |
| void | c4::yml::parse_json_in_arena (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 (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 (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 (csubstr json, Tree *t) |
| (4) like (3) but no filename will be reported More... | |
| void | c4::yml::parse_json_in_arena (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 (csubstr json, NodeRef node) |
| (6) like (5) but no filename will be reported More... | |
| Tree | c4::yml::parse_json_in_arena (csubstr filename, csubstr json) |
| (7) create a new tree, and parse JSON into its root node. More... | |
| Tree | c4::yml::parse_json_in_arena (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() .
(1) parse YAML into an existing tree node. The filename will be used in any error messages arising during the parse.
Definition at line 101 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), and c4::yml::parse_in_place().
(2) like (1) but no filename will be reported
Definition at line 102 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), and c4::yml::parse_in_place().
| void c4::yml::parse_in_arena | ( | csubstr | filename, |
| csubstr | yaml, | ||
| Tree * | t | ||
| ) |
(3) parse YAML into an existing tree, into its root node.
Definition at line 103 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::parse_in_place(), and c4::yml::Tree::root_id().
| void c4::yml::parse_in_arena | ( | csubstr | yaml, |
| Tree * | t | ||
| ) |
(4) like (3) but no filename will be reported
Definition at line 104 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::parse_in_place(), and c4::yml::Tree::root_id().
| void c4::yml::parse_in_arena | ( | csubstr | filename, |
| csubstr | yaml, | ||
| NodeRef | node | ||
| ) |
(5) like (1) but the node is given as a NodeRef
Definition at line 105 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::NodeRef::id(), c4::yml::NodeRef::invalid(), c4::yml::parse_in_place(), and c4::yml::NodeRef::tree().
| void c4::yml::parse_in_arena | ( | csubstr | yaml, |
| NodeRef | node | ||
| ) |
(6) like (5) but no filename will be reported
Definition at line 106 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::NodeRef::id(), c4::yml::NodeRef::invalid(), c4::yml::parse_in_place(), and c4::yml::NodeRef::tree().
| Tree c4::yml::parse_in_arena | ( | csubstr | filename, |
| csubstr | yaml | ||
| ) |
(7) create a new tree, and parse YAML into its root node.
Definition at line 107 of file parse.cpp.
References c4::yml::ParseEngine< EventHandler >::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::parse_in_place(), and c4::yml::Tree::root_id().
| Tree c4::yml::parse_in_arena | ( | csubstr | yaml | ) |
(8) like (7) but no filename will be reported
Definition at line 108 of file parse.cpp.
References c4::yml::ParseEngine< EventHandler >::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::parse_in_place(), and c4::yml::Tree::root_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 122 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), and c4::yml::parse_json_in_place().
(2) like (1) but no filename will be reported
Definition at line 123 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), and c4::yml::parse_json_in_place().
| void c4::yml::parse_json_in_arena | ( | csubstr | filename, |
| csubstr | json, | ||
| Tree * | t | ||
| ) |
(3) parse JSON into an existing tree, into its root node.
Definition at line 124 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::parse_json_in_place(), and c4::yml::Tree::root_id().
| void c4::yml::parse_json_in_arena | ( | csubstr | json, |
| Tree * | t | ||
| ) |
(4) like (3) but no filename will be reported
Definition at line 125 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::parse_json_in_place(), and c4::yml::Tree::root_id().
| void c4::yml::parse_json_in_arena | ( | csubstr | filename, |
| csubstr | json, | ||
| NodeRef | node | ||
| ) |
(5) like (1) but the node is given as a NodeRef
Definition at line 126 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::NodeRef::id(), c4::yml::NodeRef::invalid(), c4::yml::parse_json_in_place(), and c4::yml::NodeRef::tree().
| void c4::yml::parse_json_in_arena | ( | csubstr | json, |
| NodeRef | node | ||
| ) |
(6) like (5) but no filename will be reported
Definition at line 127 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::NodeRef::id(), c4::yml::NodeRef::invalid(), c4::yml::parse_json_in_place(), and c4::yml::NodeRef::tree().
| Tree c4::yml::parse_json_in_arena | ( | csubstr | filename, |
| csubstr | json | ||
| ) |
(7) create a new tree, and parse JSON into its root node.
Definition at line 128 of file parse.cpp.
References c4::yml::ParseEngine< EventHandler >::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::parse_json_in_place(), and c4::yml::Tree::root_id().
| Tree c4::yml::parse_json_in_arena | ( | csubstr | json | ) |
(8) like (7) but no filename will be reported
Definition at line 129 of file parse.cpp.
References c4::yml::ParseEngine< EventHandler >::callbacks(), c4::yml::Tree::copy_to_arena(), c4::yml::parse_json_in_place(), and c4::yml::Tree::root_id().