|
rapidyaml
0.7.2
parse and emit YAML, and do it fast
|
Functions | |
| template<class Arg , class... Args> | |
| size_t | c4::cat (substr buf, Arg const &a, Args const &...more) |
| serialize the arguments, concatenating them to the given fixed-size buffer. More... | |
| template<class... Args> | |
| substr | c4::cat_sub (substr buf, Args &&...args) |
| like c4::cat() but return a substr instead of a size More... | |
| template<class CharOwningContainer , class... Args> | |
| void | c4::catrs (CharOwningContainer *cont, Args const &...args) |
| cat+resize: like c4::cat(), but receives a container, and resizes it as needed to contain the result. More... | |
| template<class CharOwningContainer , class... Args> | |
| CharOwningContainer | c4::catrs (Args const &...args) |
| cat+resize: like c4::cat(), but creates and returns a new container sized as needed to contain the result. More... | |
| template<class CharOwningContainer , class... Args> | |
| csubstr | c4::catrs_append (CharOwningContainer *cont, Args const &...args) |
| cat+resize+append: like c4::cat(), but receives a container, and appends to it instead of overwriting it. More... | |
| size_t c4::cat | ( | substr | buf, |
| Arg const & | a, | ||
| Args const &... | more | ||
| ) |
serialize the arguments, concatenating them to the given fixed-size buffer.
The buffer size is strictly respected: no writes will occur beyond its end.
Definition at line 593 of file format.hpp.
References c4::to_chars().
Referenced by c4::cat_sub(), c4::catrs(), c4::catrs_append(), and sample::sample_formatting().
| substr c4::cat_sub | ( | substr | buf, |
| Args &&... | args | ||
| ) |
like c4::cat() but return a substr instead of a size
Definition at line 603 of file format.hpp.
References c4::cat().
Referenced by sample::sample_formatting().
|
inline |
cat+resize: like c4::cat(), but receives a container, and resizes it as needed to contain the result.
The container is overwritten. To append to it, use the append overload.
Definition at line 897 of file format.hpp.
References c4::cat(), and c4::to_substr().
Referenced by c4::catrs(), and sample::sample_formatting().
|
inline |
cat+resize: like c4::cat(), but creates and returns a new container sized as needed to contain the result.
Definition at line 912 of file format.hpp.
References c4::catrs().
|
inline |
cat+resize+append: like c4::cat(), but receives a container, and appends to it instead of overwriting it.
The container is resized as needed to contain the result.
Definition at line 928 of file format.hpp.
References c4::cat(), c4::to_csubstr(), and c4::to_substr().
Referenced by sample::sample_formatting().