|
fiber
|
Formats an unsigned integer (of any size) for use with OStream. More...
#include <OStream.hpp>
Public Types | |
| using | value_type = typename fiber::make_fast<Int>::type |
Public Member Functions | |
| constexpr | FormatInt ()=default |
| constexpr | FormatInt (const FormatInt &)=default |
| constexpr FormatInt & | operator= (const FormatInt &)=default |
| constexpr | FormatInt (Int value) |
| constexpr FormatInt & | use_thousands (bool b=true) |
| enables thousand characters | |
| constexpr FormatInt & | thousands (char c=',') |
| enables thousand characters | |
| constexpr FormatInt & | fsign (bool b=true) |
| force the printing of the sign, even if it is positive. | |
| constexpr FormatInt & | mwidth (int mw) |
| constexpr FormatInt & | fill (char c) |
| constexpr FormatInt & | pad_sign (bool b=true) |
| constexpr FormatInt & | left () |
| constexpr FormatInt & | right () |
| constexpr FormatInt & | center () |
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 FormatInt | like (value_type value, const FormatIntParams ¶ms) |
| template<std::integral Int1> | |
| static constexpr FormatInt | like (Int1 value, const FormatStrParams ¶ms) |
Public Attributes | |
| value_type | _value = 0 |
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 |
Formats an unsigned integer (of any size) for use with OStream.
| using fiber::FormatInt< 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 |
|
inlineconstexpr |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
enables thousand characters
Example:
|
inlineconstexpr |
| value_type fiber::FormatInt< Int >::_value = 0 |