|
rapidyaml
0.13.0
parse and emit YAML, and do it fast
|
Functions | |
| template<class Sep , class Arg , class... Args> | |
| size_t | c4::catsep (substr buf, Sep const &sep, Arg const &a, Args const &...more) |
| serialize the arguments, concatenating them to the given fixed-size buffer, using a separator between each argument. More... | |
| template<class... Args> | |
| substr | c4::catsep_sub (substr buf, Args &&...args) |
| like c4::catsep() but return a substr instead of a size More... | |
| template<class CharOwningContainer , class Sep , class... Args> | |
| void | c4::catseprs (CharOwningContainer *cont, Sep const &sep, Args const &...args) |
| catsep+resize: like c4::catsep(), but receives a container, and resizes it as needed to contain the result. More... | |
| template<class CharOwningContainer , class Sep , class... Args> | |
| CharOwningContainer | c4::catseprs (Sep const &sep, Args const &...args) |
| catsep+resize: like c4::catsep(), but create a new container with the result. More... | |
| template<class CharOwningContainer , class Sep , class... Args> | |
| csubstr | c4::catseprs_append (CharOwningContainer *cont, Sep const &sep, Args const &...args) |
| catsep+resize+append: like c4::catsep(), but receives a container, and appends the arguments, resizing the container as needed to contain the result. More... | |
| size_t c4::catsep | ( | substr | buf, |
| Sep const & | sep, | ||
| Arg const & | a, | ||
| Args const &... | more | ||
| ) |
serialize the arguments, concatenating them to the given fixed-size buffer, using a separator between each argument.
The buffer size is strictly respected: no writes will occur beyond its end.
Definition at line 778 of file format.hpp.
| substr c4::catsep_sub | ( | substr | buf, |
| Args &&... | args | ||
| ) |
like c4::catsep() but return a substr instead of a size
Definition at line 790 of file format.hpp.
|
inline |
catsep+resize: like c4::catsep(), but receives a container, and resizes it as needed to contain the result.
The container is overwritten. To append to the container use c4::catseprs_append().
Definition at line 1156 of file format.hpp.
|
inline |
catsep+resize: like c4::catsep(), but create a new container with the result.
Definition at line 1191 of file format.hpp.
|
inline |
catsep+resize+append: like c4::catsep(), but receives a container, and appends the arguments, resizing the container as needed to contain the result.
The buffer is appended to.
Definition at line 1224 of file format.hpp.