![]() |
MOS Source Code
|
#include <formatter.hpp>
Public Types | |
enum class | FormatAlignment { _DEFAULT , LEFT , RIGHT , CENTER } |
enum class | FormatSign { _DEFAULT , BOTH , NEGATIVE , LEADING_SPACE } |
enum class | WidthPrecisionOrder { _NOT_SPECIFIED , WIDTH , PRECISION } |
Public Member Functions | |
consteval size_t | n_dynamic_args () const |
number of runtime arguments required to print this item. | |
Public Attributes | |
FormatAlignment | alignment = FormatAlignment::_DEFAULT |
size_t | width = 0 |
size_t | precision = 0 |
WidthPrecisionOrder | order = WidthPrecisionOrder::_NOT_SPECIFIED |
FormatSign | sign = FormatSign::_DEFAULT |
char | filler = '\0' |
bool | debug = false |
bool | alternative = false |
Static Public Attributes | |
static constexpr auto | DYNAMIC = std::numeric_limits<size_t>::max() |
Definition at line 13 of file formatter.hpp.
|
strong |
Enumerator | |
---|---|
_DEFAULT | default, left |
LEFT | left |
RIGHT | right |
CENTER | center |
Definition at line 15 of file formatter.hpp.
|
strong |
Definition at line 23 of file formatter.hpp.
|
strong |
Enumerator | |
---|---|
_NOT_SPECIFIED | |
WIDTH | |
PRECISION |
Definition at line 31 of file formatter.hpp.
|
inlineconsteval |
number of runtime arguments required to print this item.
Definition at line 60 of file formatter.hpp.
|
staticconstexpr |
Definition at line 38 of file formatter.hpp.
Referenced by FormatImpl::do_parse_specifier(), n_dynamic_args(), FormatImpl::SetPrecision(), and FormatImpl::SetWidth().
FormatAlignment alignment = FormatAlignment::_DEFAULT |
Definition at line 40 of file formatter.hpp.
Referenced by FormatImpl::SetAlignment().
size_t width = 0 |
Definition at line 42 of file formatter.hpp.
Referenced by n_dynamic_args(), and FormatImpl::SetWidth().
size_t precision = 0 |
Definition at line 43 of file formatter.hpp.
Referenced by n_dynamic_args(), and FormatImpl::SetPrecision().
Definition at line 47 of file formatter.hpp.
Referenced by FormatImpl::SetPrecision(), and FormatImpl::SetWidth().
FormatSign sign = FormatSign::_DEFAULT |
Definition at line 49 of file formatter.hpp.
Referenced by FormatImpl::SetSign().
char filler = '\0' |
Definition at line 50 of file formatter.hpp.
Referenced by FormatImpl::SetFiller().
Definition at line 51 of file formatter.hpp.
Referenced by FormatImpl::SetDebugFormat().
Definition at line 55 of file formatter.hpp.
Referenced by FormatImpl::SetAlternativeForm().