|
fiber
|
#include <OStream.hpp>
Public Types | |
| using | value_type = typename fiber::make_fast<Int>::type |
Public Member Functions | |
| constexpr | FormatIntSuffix ()=default |
| constexpr | FormatIntSuffix (const FormatIntSuffix &)=default |
| constexpr FormatIntSuffix & | operator= (const FormatIntSuffix &)=default |
| constexpr | FormatIntSuffix (Int value, std::string_view suffix) |
| constexpr FormatIntSuffix & | pad_suffix (bool b=true) |
| adds padding between the number and the suffix | |
| constexpr FormatIntSuffix & | use_thousands (bool b=true) |
| enables thousand characters | |
| constexpr FormatIntSuffix & | thousands (char c=',') |
| enables thousand characters | |
| constexpr FormatIntSuffix & | fsign (bool b=true) |
| force the printing of the sign, even if it is positive. | |
| constexpr FormatIntSuffix & | mwidth (int mw) |
| constexpr FormatIntSuffix & | fill (char c) |
| constexpr FormatIntSuffix & | pad_sign (bool b=true) |
| constexpr FormatIntSuffix & | left () |
| constexpr FormatIntSuffix & | right () |
| constexpr FormatIntSuffix & | center () |
Public Member Functions inherited from fiber::FormatIntSuffixParams | |
| constexpr | FormatIntSuffixParams ()=default |
| constexpr | FormatIntSuffixParams (const FormatIntSuffixParams &)=default |
| constexpr FormatIntSuffixParams & | operator= (const FormatIntSuffixParams &)=default |
| constexpr | FormatIntSuffixParams (const FormatStrParams ¶ms) |
| constexpr FormatIntSuffixParams & | operator= (const FormatStrParams ¶ms) |
| constexpr | FormatIntSuffixParams (const FormatIntParams ¶ms) |
| constexpr FormatIntSuffixParams & | operator= (const FormatIntParams ¶ms) |
Public Member Functions inherited from fiber::FormatIntParams | |
| constexpr | FormatIntParams ()=default |
| constexpr | FormatIntParams (const FormatIntParams &)=default |
| constexpr FormatIntParams & | operator= (const FormatIntParams &)=default |
| constexpr | FormatIntParams (const FormatStrParams ¶ms) |
| constexpr FormatIntParams & | operator= (const FormatStrParams ¶ms) |
Static Public Member Functions | |
| static constexpr FormatIntSuffix | like (Int value, std::string_view suffix, const FormatIntParams ¶ms) |
| static constexpr FormatIntSuffix | like (Int value, std::string_view suffix, const FormatStrParams ¶ms) |
| static constexpr FormatIntSuffix | like (Int value, std::string_view suffix, const FormatIntSuffixParams ¶ms) |
Public Attributes | |
| value_type | _value = 0 |
| std::string_view | _suffix = "" |
Public Attributes inherited from fiber::FormatIntSuffixParams | |
| bool | _pad_suffix = false |
Public Attributes inherited from fiber::FormatIntParams | |
| bool | _force_sign = false |
| bool | _pad_sign = false |
Public Attributes inherited from fiber::FormatStrParams | |
| AlignmentLRC | _alignment = AlignmentLRC::Right |
| int | _mwidth = 0 |
| char | _fill = ' ' |
Public Attributes inherited from fiber::_FormatUIntParams | |
| char | _thousands_char = ',' |
| bool | _use_thousands = false |
| using fiber::FormatIntSuffix< Int >::value_type = typename fiber::make_fast<Int>::type |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
force the printing of the sign, even if it is positive.
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
adds padding between the number and the suffix
|
inlineconstexpr |
|
inlineconstexpr |
enables thousand characters
Example:
|
inlineconstexpr |
enables thousand characters
Example:
| std::string_view fiber::FormatIntSuffix< Int >::_suffix = "" |
| value_type fiber::FormatIntSuffix< Int >::_value = 0 |