|
rapidyaml 0.15.2
parse and emit YAML, and do it fast
|
Functions | |
| substr | c4::yml::emit_yaml (Tree const &t, id_type id, EmitOptions const &opts, substr buf, bool error_on_excess=true) |
| (1) emit YAML to the given buffer. | |
| substr | c4::yml::emit_yaml (Tree const &t, id_type id, substr buf, bool error_on_excess=true) |
| (2) like (1), but use default emit options | |
| substr | c4::yml::emit_json (Tree const &t, id_type id, EmitOptions const &opts, substr buf, bool error_on_excess=true) |
| (1) emit JSON to the given buffer. | |
| substr | c4::yml::emit_json (Tree const &t, id_type id, substr buf, bool error_on_excess=true) |
| (2) like (1), but use default emit options | |
| substr c4::yml::emit_yaml | ( | Tree const & | t, |
| id_type | id, | ||
| EmitOptions const & | opts, | ||
| substr | buf, | ||
| bool | error_on_excess = true ) |
(1) emit YAML to the given buffer.
Return a substr trimmed to the emitted YAML.
| t | the tree to emit. |
| id | the node where to start emitting. |
| opts | emit options. |
| buf | the output buffer. |
| error_on_excess | Raise an error if the space in the buffer is insufficient. |
Definition at line 59 of file emit_buf.cpp.
(2) like (1), but use default emit options
Definition at line 66 of file emit_buf.cpp.
| substr c4::yml::emit_json | ( | Tree const & | t, |
| id_type | id, | ||
| EmitOptions const & | opts, | ||
| substr | buf, | ||
| bool | error_on_excess = true ) |
(1) emit JSON to the given buffer.
Return a substr trimmed to the emitted JSON.
| t | the tree to emit. |
| id | the node where to start emitting. |
| opts | emit options. |
| buf | the output buffer. |
| error_on_excess | Raise an error if the space in the buffer is insufficient. |
Definition at line 73 of file emit_buf.cpp.
(2) like (1), but use default emit options
Definition at line 80 of file emit_buf.cpp.