|
rapidyaml
0.9.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 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 727 of file format.hpp.
References c4::to_chars().
Referenced by c4::catsep_sub(), c4::catseprs(), c4::catseprs_append(), and sample::sample_formatting().
| substr c4::catsep_sub | ( | substr | buf, |
| Args &&... | args | ||
| ) |
like c4::catsep() but return a substr instead of a size
Definition at line 738 of file format.hpp.
References c4::catsep().
Referenced by sample::sample_formatting().
|
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 the append overload.
Definition at line 951 of file format.hpp.
References c4::catsep(), and c4::to_substr().
Referenced by c4::catseprs(), and sample::sample_formatting().
|
inline |
catsep+resize: like c4::catsep(), but create a new container with the result.
Definition at line 967 of file format.hpp.
References c4::catseprs().
|
inline |
catsep+resize+append: like 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 982 of file format.hpp.
References c4::catsep(), c4::to_csubstr(), and c4::to_substr().
Referenced by sample::sample_formatting().