|
rapidyaml
0.12.0
parse and emit YAML, and do it fast
|
parse a mutable YAML source buffer. More...
Functions | |
| void | c4::yml::parse_in_place (csubstr filename, substr 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_place (substr 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_place (csubstr filename, substr yaml, Tree *t, ParserOptions const &opts={}) |
| (3) parse YAML into an existing tree, into its root node. More... | |
| void | c4::yml::parse_in_place (substr yaml, Tree *t, ParserOptions const &opts={}) |
| (4) like (3) but no filename will be reported More... | |
| void | c4::yml::parse_in_place (csubstr filename, substr yaml, NodeRef node, ParserOptions const &opts={}) |
| (5) like (1) but the node is given as a NodeRef More... | |
| void | c4::yml::parse_in_place (substr yaml, NodeRef node, ParserOptions const &opts={}) |
| (6) like (5) but no filename will be reported More... | |
| Tree | c4::yml::parse_in_place (csubstr filename, substr yaml, ParserOptions const &opts={}) |
| (7) create a new tree, and parse YAML into its root node. More... | |
| Tree | c4::yml::parse_in_place (substr yaml, ParserOptions const &opts={}) |
| (8) like (7) but no filename will be reported More... | |
| void | c4::yml::parse_json_in_place (csubstr filename, substr 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_place (substr 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_place (csubstr filename, substr json, Tree *t, ParserOptions const &opts={}) |
| (3) parse JSON into an existing tree, into its root node. More... | |
| void | c4::yml::parse_json_in_place (substr json, Tree *t, ParserOptions const &opts={}) |
| (4) like (3) but no filename will be reported More... | |
| void | c4::yml::parse_json_in_place (csubstr filename, substr json, NodeRef node, ParserOptions const &opts={}) |
| (5) like (1) but the node is given as a NodeRef More... | |
| void | c4::yml::parse_json_in_place (substr json, NodeRef node, ParserOptions const &opts={}) |
| (6) like (5) but no filename will be reported More... | |
| Tree | c4::yml::parse_json_in_place (csubstr filename, substr json, ParserOptions const &opts={}) |
| (7) create a new tree, and parse JSON into its root node. More... | |
| Tree | c4::yml::parse_json_in_place (substr json, ParserOptions const &opts={}) |
| (8) like (7) but no filename will be reported More... | |
parse a mutable YAML source buffer.
Scalars requiring filtering are mutated in place (except in the rare cases where the filtered scalar is longer than the original scalar).
| void c4::yml::parse_in_place | ( | csubstr | filename, |
| substr | 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 60 of file parse.cpp.
References c4::yml::Tree::callbacks(), and c4::yml::parse_in_place().
| void c4::yml::parse_in_place | ( | substr | yaml, |
| Tree * | t, | ||
| id_type | node_id, | ||
| ParserOptions const & | opts | ||
| ) |
(2) like (1) but no filename will be reported
Definition at line 61 of file parse.cpp.
References c4::yml::Tree::callbacks(), and c4::yml::parse_in_place().
| void c4::yml::parse_in_place | ( | csubstr | filename, |
| substr | yaml, | ||
| Tree * | t, | ||
| ParserOptions const & | opts | ||
| ) |
(3) parse YAML into an existing tree, into its root node.
Definition at line 62 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::empty(), c4::yml::parse_in_place(), c4::yml::Tree::reserve(), and c4::yml::Tree::root_id().
| void c4::yml::parse_in_place | ( | substr | yaml, |
| Tree * | t, | ||
| ParserOptions const & | opts | ||
| ) |
(4) like (3) but no filename will be reported
Definition at line 63 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::Tree::empty(), c4::yml::parse_in_place(), c4::yml::Tree::reserve(), and c4::yml::Tree::root_id().
| void c4::yml::parse_in_place | ( | csubstr | filename, |
| substr | yaml, | ||
| NodeRef | node, | ||
| ParserOptions const & | opts | ||
| ) |
(5) like (1) but the node is given as a NodeRef
Definition at line 64 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::NodeRef::id(), c4::yml::NodeRef::invalid(), c4::yml::parse_in_place(), and c4::yml::NodeRef::tree().
| void c4::yml::parse_in_place | ( | substr | yaml, |
| NodeRef | node, | ||
| ParserOptions const & | opts | ||
| ) |
(6) like (5) but no filename will be reported
Definition at line 65 of file parse.cpp.
References c4::yml::Tree::callbacks(), c4::yml::NodeRef::id(), c4::yml::NodeRef::invalid(), c4::yml::parse_in_place(), and c4::yml::NodeRef::tree().
| Tree c4::yml::parse_in_place | ( | csubstr | filename, |
| substr | yaml, | ||
| ParserOptions const & | opts | ||
| ) |
(7) create a new tree, and parse YAML into its root node.
Definition at line 66 of file parse.cpp.
References c4::yml::ParseEngine< EventHandler >::callbacks(), c4::yml::parse_in_place(), and c4::yml::Tree::root_id().
| Tree c4::yml::parse_in_place | ( | substr | yaml, |
| ParserOptions const & | opts | ||
| ) |
(8) like (7) but no filename will be reported
Definition at line 67 of file parse.cpp.
References c4::yml::ParseEngine< EventHandler >::callbacks(), c4::yml::parse_in_place(), and c4::yml::Tree::root_id().
| void c4::yml::parse_json_in_place | ( | csubstr | filename, |
| substr | 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 80 of file parse.cpp.
References c4::yml::Tree::callbacks(), and c4::yml::parse_json_in_place().
| void c4::yml::parse_json_in_place | ( | substr | json, |
| Tree * | t, | ||
| id_type | node_id, | ||
| ParserOptions const & | opts | ||
| ) |
(2) like (1) but no filename will be reported
Definition at line 81 of file parse.cpp.
References c4::yml::Tree::callbacks(), and c4::yml::parse_json_in_place().
| void c4::yml::parse_json_in_place | ( | csubstr | filename, |
| substr | json, | ||
| Tree * | t, | ||
| ParserOptions const & | opts | ||
| ) |
(3) parse JSON into an existing tree, into its root node.
Definition at line 82 of file parse.cpp.
References c4::yml::Tree::callbacks(), 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_place | ( | substr | json, |
| Tree * | t, | ||
| ParserOptions const & | opts | ||
| ) |
(4) like (3) but no filename will be reported
Definition at line 83 of file parse.cpp.
References c4::yml::Tree::callbacks(), 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_place | ( | csubstr | filename, |
| substr | json, | ||
| NodeRef | node, | ||
| ParserOptions const & | opts | ||
| ) |
(5) like (1) but the node is given as a NodeRef
Definition at line 84 of file parse.cpp.
References c4::yml::Tree::callbacks(), 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_place | ( | substr | json, |
| NodeRef | node, | ||
| ParserOptions const & | opts | ||
| ) |
(6) like (5) but no filename will be reported
Definition at line 85 of file parse.cpp.
References c4::yml::Tree::callbacks(), 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_place | ( | csubstr | filename, |
| substr | json, | ||
| ParserOptions const & | opts | ||
| ) |
(7) create a new tree, and parse JSON into its root node.
Definition at line 86 of file parse.cpp.
References c4::yml::ParseEngine< EventHandler >::callbacks(), c4::yml::parse_json_in_place(), and c4::yml::Tree::root_id().
| Tree c4::yml::parse_json_in_place | ( | substr | json, |
| ParserOptions const & | opts | ||
| ) |
(8) like (7) but no filename will be reported
Definition at line 87 of file parse.cpp.
References c4::yml::ParseEngine< EventHandler >::callbacks(), c4::yml::parse_json_in_place(), and c4::yml::Tree::root_id().