|
rapidyaml
0.11.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, ParserOptions const &opts={}) |
| (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, ParserOptions const &opts={}) |
| (2) like (1) but no filename will be reported More... | |
| void | c4::yml::parse_in_arena (csubstr filename, csubstr yaml, Tree *t, ParserOptions const &opts={}) |
| (3) parse YAML into an existing tree, into its root node. More... | |
| void | c4::yml::parse_in_arena (csubstr yaml, Tree *t, ParserOptions const &opts={}) |
| (4) like (3) but no filename will be reported More... | |
| void | c4::yml::parse_in_arena (csubstr filename, csubstr yaml, NodeRef node, ParserOptions const &opts={}) |
| (5) like (1) but the node is given as a NodeRef More... | |
| void | c4::yml::parse_in_arena (csubstr yaml, NodeRef node, ParserOptions const &opts={}) |
| (6) like (5) but no filename will be reported More... | |
| Tree | c4::yml::parse_in_arena (csubstr filename, csubstr yaml, ParserOptions const &opts={}) |
| (7) create a new tree, and parse YAML into its root node. More... | |
| Tree | c4::yml::parse_in_arena (csubstr yaml, ParserOptions const &opts={}) |
| (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, ParserOptions const &opts={}) |
| (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, ParserOptions const &opts={}) |
| (2) like (1) but no filename will be reported More... | |
| void | c4::yml::parse_json_in_arena (csubstr filename, csubstr json, Tree *t, ParserOptions const &opts={}) |
| (3) parse JSON into an existing tree, into its root node. More... | |
| void | c4::yml::parse_json_in_arena (csubstr json, Tree *t, ParserOptions const &opts={}) |
| (4) like (3) but no filename will be reported More... | |
| void | c4::yml::parse_json_in_arena (csubstr filename, csubstr json, NodeRef node, ParserOptions const &opts={}) |
| (5) like (1) but the node is given as a NodeRef More... | |
| void | c4::yml::parse_json_in_arena (csubstr json, NodeRef node, ParserOptions const &opts={}) |
| (6) like (5) but no filename will be reported More... | |
| Tree | c4::yml::parse_json_in_arena (csubstr filename, csubstr json, ParserOptions const &opts={}) |
| (7) create a new tree, and parse JSON into its root node. More... | |
| Tree | c4::yml::parse_json_in_arena (csubstr json, ParserOptions const &opts={}) |
| (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() .
| void c4::yml::parse_in_arena | ( | csubstr | filename, |
| csubstr | yaml, | ||
| Tree * | t, | ||
| id_type | node_id, | ||
| ParserOptions const & | opts | ||
| ) |
(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().
| void c4::yml::parse_in_arena | ( | csubstr | yaml, |
| Tree * | t, | ||
| id_type | node_id, | ||
| ParserOptions const & | opts | ||
| ) |
(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, | ||
| ParserOptions const & | opts | ||
| ) |
(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::Tree::empty(), c4::yml::parse_in_place(), c4::yml::Tree::reserve(), and c4::yml::Tree::root_id().
| void c4::yml::parse_in_arena | ( | csubstr | yaml, |
| Tree * | t, | ||
| ParserOptions const & | opts | ||
| ) |
(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::Tree::empty(), c4::yml::parse_in_place(), c4::yml::Tree::reserve(), and c4::yml::Tree::root_id().
| void c4::yml::parse_in_arena | ( | csubstr | filename, |
| csubstr | yaml, | ||
| NodeRef | node, | ||
| ParserOptions const & | opts | ||
| ) |
(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, | ||
| ParserOptions const & | opts | ||
| ) |
(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, | ||
| ParserOptions const & | opts | ||
| ) |
(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, |
| ParserOptions const & | opts | ||
| ) |
(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().
| void c4::yml::parse_json_in_arena | ( | csubstr | filename, |
| csubstr | json, | ||
| Tree * | t, | ||
| id_type | node_id, | ||
| ParserOptions const & | opts | ||
| ) |
(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().
| void c4::yml::parse_json_in_arena | ( | csubstr | json, |
| Tree * | t, | ||
| id_type | node_id, | ||
| ParserOptions const & | opts | ||
| ) |
(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, | ||
| ParserOptions const & | opts | ||
| ) |
(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::Tree::empty(), c4::yml::parse_json_in_place(), c4::yml::Tree::reserve(), and c4::yml::Tree::root_id().
| void c4::yml::parse_json_in_arena | ( | csubstr | json, |
| Tree * | t, | ||
| ParserOptions const & | opts | ||
| ) |
(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::Tree::empty(), c4::yml::parse_json_in_place(), c4::yml::Tree::reserve(), and c4::yml::Tree::root_id().
| void c4::yml::parse_json_in_arena | ( | csubstr | filename, |
| csubstr | json, | ||
| NodeRef | node, | ||
| ParserOptions const & | opts | ||
| ) |
(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, | ||
| ParserOptions const & | opts | ||
| ) |
(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, | ||
| ParserOptions const & | opts | ||
| ) |
(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, |
| ParserOptions const & | opts | ||
| ) |
(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().