A std::string OutputType for runtime formatting into a std::string.
More...
#include <string_cfmt.hpp>
|
| | StringOutput (std::size_t maxLen, std::string &s) noexcept |
| |
| void | appendError (size_t argIdx, int line, const std::string_view tag) noexcept |
| |
template<typename T>
requires jau::req::string_literal<T> || jau::req::string_class<T> |
| void | appendFormatted (const FormatOpts &opts, const T &v) noexcept |
| |
template<typename T>
requires jau::req::char_pointer<T> |
| void | appendFormatted (const FormatOpts &opts, const T &v) noexcept |
| |
template<typename T>
requires jau::req::boolean<T> |
| void | appendFormatted (const FormatOpts &opts, const T &v) noexcept |
| |
template<typename T>
requires jau::req::pointer<T> && (!jau::req::string_alike<T>) |
| void | appendFormatted (const FormatOpts &opts, const T &v) noexcept |
| |
template<typename T>
requires std::is_floating_point_v<T> |
| void | appendFormattedFloat (const FormatOpts &opts, const T &v, nsize_t floatSize) noexcept |
| |
template<typename T>
requires jau::req::unsigned_integral<T> && (!jau::req::boolean<T>) |
| void | appendFormattedInt (const FormatOpts &opts, const T &v, bool negative) noexcept |
| |
| void | appendText (const std::string_view v) noexcept |
| |
| constexpr bool | fits (size_t n) const noexcept |
| |
| std::string_view | get () const noexcept |
| |
| constexpr size_t | maxLen () const noexcept |
| |
A std::string OutputType for runtime formatting into a std::string.
Definition at line 629 of file string_cfmt.hpp.
◆ StringOutput()
| jau::cfmt::impl::StringOutput::StringOutput |
( |
std::size_t | maxLen, |
|
|
std::string & | s ) |
|
inlinenoexcept |
◆ maxLen()
| size_t jau::cfmt::impl::StringOutput::maxLen |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ fits()
| bool jau::cfmt::impl::StringOutput::fits |
( |
size_t | n | ) |
const |
|
inlineconstexprnoexcept |
◆ get()
| std::string_view jau::cfmt::impl::StringOutput::get |
( |
| ) |
const |
|
inlinenoexcept |
◆ appendFormatted() [1/4]
| void jau::cfmt::impl::StringOutput::appendFormatted |
( |
const FormatOpts & | opts, |
|
|
const T & | v ) |
|
inlinenoexcept |
◆ appendFormatted() [2/4]
| void jau::cfmt::impl::StringOutput::appendFormatted |
( |
const FormatOpts & | opts, |
|
|
const T & | v ) |
|
inlinenoexcept |
◆ appendFormatted() [3/4]
| void jau::cfmt::impl::StringOutput::appendFormatted |
( |
const FormatOpts & | opts, |
|
|
const T & | v ) |
|
inlinenoexcept |
◆ appendFormatted() [4/4]
| void jau::cfmt::impl::StringOutput::appendFormatted |
( |
const FormatOpts & | opts, |
|
|
const T & | v ) |
|
inlinenoexcept |
◆ appendFormattedInt()
| void jau::cfmt::impl::StringOutput::appendFormattedInt |
( |
const FormatOpts & | opts, |
|
|
const T & | v, |
|
|
bool | negative ) |
|
inlinenoexcept |
◆ appendFormattedFloat()
template<typename T>
requires std::is_floating_point_v<T>
| void jau::cfmt::impl::StringOutput::appendFormattedFloat |
( |
const FormatOpts & | opts, |
|
|
const T & | v, |
|
|
nsize_t | floatSize ) |
|
inlinenoexcept |
◆ appendText()
| void jau::cfmt::impl::StringOutput::appendText |
( |
const std::string_view | v | ) |
|
|
inlinenoexcept |
◆ appendError()
| void jau::cfmt::impl::StringOutput::appendError |
( |
size_t | argIdx, |
|
|
int | line, |
|
|
const std::string_view | tag ) |
|
inlinenoexcept |
The documentation for this class was generated from the following file: