|
rapidyaml 0.16.0
parse and emit YAML, and do it fast
|
Functions | |
| void | sample_parse_file () |
| ready-to-go example of parsing a file from disk | |
| void | sample_parse_in_place () |
| parse a mutable YAML source buffer | |
| void | sample_parse_in_arena () |
| parse a read-only YAML source buffer | |
| void | sample_parse_reuse_tree () |
| parse into an existing tree, maybe into a node | |
| void | sample_parse_reuse_parser () |
| reuse an existing parser | |
| void | sample_parse_reuse_tree_and_parser () |
| how to reuse existing trees and parsers | |
| void | sample_parse_style () |
| shows how rapidyaml retains the style of parsed YAML | |
| void sample_parse_file | ( | ) |
ready-to-go example of parsing a file from disk
demonstrate how to load a YAML file from disk to parse with ryml.
ryml offers no overload to directly parse files from disk; it only parses source buffers (which may be mutable or immutable). It is up to the caller to first load the file contents into a buffer before parsing with ryml. To help with this you can use the (efficient) helper [file_get_contents](c4::yml::file_get_contents()). See also the analogous file_put_contents
Definition at line 1951 of file quickstart.cpp.
Referenced by main().
| void sample_parse_in_place | ( | ) |
parse a mutable YAML source buffer
demonstrate in-place parsing of a mutable YAML source buffer.
Definition at line 1996 of file quickstart.cpp.
Referenced by main().
| void sample_parse_in_arena | ( | ) |
parse a read-only YAML source buffer
demonstrate parsing of a read-only YAML source buffer
Definition at line 2050 of file quickstart.cpp.
Referenced by main().
| void sample_parse_reuse_tree | ( | ) |
parse into an existing tree, maybe into a node
demonstrate reuse/modification of tree when parsing
Definition at line 2096 of file quickstart.cpp.
Referenced by main().
| void sample_parse_reuse_parser | ( | ) |
reuse an existing parser
Demonstrates reuse of an existing parser.
Doing this is recommended when multiple files are parsed.
Definition at line 2256 of file quickstart.cpp.
Referenced by main().
| void sample_parse_reuse_tree_and_parser | ( | ) |
how to reuse existing trees and parsers
for ultimate speed when parsing multiple times, reuse both the tree and parser
Definition at line 2285 of file quickstart.cpp.
Referenced by main().
| void sample_parse_style | ( | ) |
shows how rapidyaml retains the style of parsed YAML
shows how rapidyaml marks the tree nodes with their original style in the parsed YAML.
Definition at line 2357 of file quickstart.cpp.
Referenced by main().