|
Gamp v0.0.7-54-gccdc599
Gamp: Graphics, Audio, Multimedia and Processing
|
Functions | |
| template<typename... Args> | |
| constexpr std::string | format_string (const std::string_view format, const Args &...args) |
Returns a (non-truncated) string according to snprintf() formatting rules using an initially string length of 1023 w/o EOS and variable number of arguments following the format argument. | |
| template<typename... Args> | |
| constexpr std::string | format_string_h (const std::size_t strLenHint, const std::string_view format, const Args &...args) |
Returns a (non-truncated) string according to snprintf() formatting rules and variable number of arguments following the format argument. | |
| template<typename... Args> | |
| constexpr std::string | format_string_n (const std::size_t maxStrLen, const std::string_view &format, const Args &...args) |
Returns a (potentially truncated) string according to snprintf() formatting rules and variable number of arguments following the format argument. | |
|
constexpr |
Returns a (potentially truncated) string according to snprintf() formatting rules and variable number of arguments following the format argument.
This variant doesn't validate format against given arguments, see jau::format_string_n.
Resulting string is truncated to min(maxStrLen, formatLen), with formatLen being the given formatted string length of output w/o limitation.
| maxStrLen | maximum resulting string length |
| format | printf() compliant format string |
| args | optional arguments matching the format string |
Definition at line 537 of file string_util.hpp.
|
constexpr |
Returns a (non-truncated) string according to snprintf() formatting rules and variable number of arguments following the format argument.
This variant doesn't validate format against given arguments, see jau::format_string_h.
Resulting string size matches formated output w/o limitation.
| strLenHint | initially used string length w/o EOS |
| format | printf() compliant format string |
| args | optional arguments matching the format string |
Definition at line 569 of file string_util.hpp.
|
constexpr |
Returns a (non-truncated) string according to snprintf() formatting rules using an initially string length of 1023 w/o EOS and variable number of arguments following the format argument.
This variant doesn't validate format against given arguments, see jau::format_string_h.
Resulting string size matches formated output w/o limitation.
| format | printf() compliant format string |
| args | optional arguments matching the format string |
Definition at line 621 of file string_util.hpp.