Embedded Template Library 1.0
|
#include <basic_format_spec.h>
Public Member Functions | |
ETL_CONSTEXPR | basic_format_spec () |
Default constructor. | |
ETL_CONSTEXPR | basic_format_spec (uint_least8_t base__, uint_least8_t width__, uint_least8_t precision__, bool upper_case__, bool left_justified__, bool boolalpha__, bool show_base__, typename TString::value_type fill__) |
Constructor. | |
ETL_CONSTEXPR14 void | clear () |
Clears the format spec back to default. | |
ETL_CONSTEXPR14 basic_format_spec & | base (uint32_t b) |
ETL_CONSTEXPR14 basic_format_spec & | binary () |
ETL_CONSTEXPR14 basic_format_spec & | octal () |
ETL_CONSTEXPR14 basic_format_spec & | decimal () |
ETL_CONSTEXPR14 basic_format_spec & | hex () |
ETL_CONSTEXPR uint32_t | get_base () const |
Gets the base. | |
ETL_CONSTEXPR14 basic_format_spec & | show_base (bool b) |
ETL_CONSTEXPR bool | is_show_base () const |
Gets the show base flag. | |
ETL_CONSTEXPR14 basic_format_spec & | width (uint32_t w) |
ETL_CONSTEXPR uint32_t | get_width () const |
Gets the width. | |
ETL_CONSTEXPR14 basic_format_spec & | precision (uint32_t p) |
ETL_CONSTEXPR uint32_t | get_precision () const |
Gets the precision. | |
ETL_CONSTEXPR14 basic_format_spec & | upper_case (bool u) |
ETL_CONSTEXPR bool | is_upper_case () const |
Gets the upper case flag. | |
ETL_CONSTEXPR14 basic_format_spec & | fill (typename TString::value_type c) |
ETL_CONSTEXPR TString::value_type | get_fill () const |
Gets the fill character. | |
ETL_CONSTEXPR14 basic_format_spec & | left () |
ETL_CONSTEXPR bool | is_left () const |
Gets the left justify flag. | |
ETL_CONSTEXPR14 basic_format_spec & | right () |
ETL_CONSTEXPR bool | is_right () const |
Gets the right justify flag. | |
ETL_CONSTEXPR14 basic_format_spec & | boolalpha (bool b) |
ETL_CONSTEXPR bool | is_boolalpha () const |
Gets the boolalpha flag. | |
Friends | |
ETL_CONSTEXPR friend bool | operator== (const basic_format_spec &lhs, const basic_format_spec &rhs) |
Equality operator. | |
ETL_CONSTEXPR friend bool | operator!= (const basic_format_spec &lhs, const basic_format_spec &rhs) |
Inequality operator. | |
|
inline |
Sets the base.
|
inline |
Sets the base to binary.
|
inline |
Sets the bool alpha flag.
|
inline |
Sets the base to decimal.
|
inline |
Sets the fill character.
|
inline |
Sets the base to hex.
|
inline |
Sets the left justify flag.
|
inline |
Sets the base to octal.
|
inline |
Sets the precision.
|
inline |
Sets the right justify flag.
|
inline |
Sets the show base flag.
|
inline |
Sets the upper case flag.
|
inline |
Sets the width.