28 unsigned long long ull;
124 const char a_left_fill,
125 const char a_right_fill
133 const unsigned int base(
const unsigned int a_base);
134 const unsigned int base(
void)
const;
156 estring(
const unsigned int a_int);
159 operator unsigned int()
const;
165 operator int()
const;
168 estring(
const unsigned short a_short);
171 operator unsigned short()
const;
177 operator short()
const;
180 estring(
const unsigned long a_long);
183 operator unsigned long()
const;
189 operator long()
const;
192 estring(
const unsigned long long a_long);
195 operator unsigned long long()
const;
198 estring(
const long long a_long);
201 operator long long()
const;
207 operator char const *()
const;
213 operator void*()
const;
219 estring(
const float a_float,
unsigned a_precision,
220 unsigned int a_base = 10);
222 unsigned int a_base = 10);
223 operator float()
const;
226 estring(
const double a_double);
229 estring(
const double a_double,
unsigned a_precision,
230 unsigned int a_base = 10);
232 unsigned int a_base = 10);
233 operator double()
const;
static const size_t m_alphabet_len
The length of the alphabet.
set_from_type m_type
The current value type.
void clear(void)
Erase the string value.
Basic types definitions and templates.
An extended string class.
void reset(void)
Erase and reinitialize.
void T_string_to_integral(const value_type &a_str, T &a_t) const
Helper member template function to convert a string to an integral type.
const set_from_type & get_from_type(void) const
Retrieve the type of value being held by this estring.
estring & assign(const estring &a_estr)
Assignment for estring objects.
estring_value & operator=(const estring_value &a_estring_value)
char m_left_fillchar
The current left-hand fill character.
char m_right_fillchar
The current right-hand fill character.
void T_integral_to_string(const T &a_t, value_type &a_str)
Helper member template function to convert an integral type to an estring.
alignment align(void) const
Retrieve the set alignment for formatted strings.
static const char * m_alphabet
The alphabet used for any base from 2 to 36.
alignment m_alignment
The current formatting alignment.
size_type width(void) const
Retrieve the set width for formatted strings.
void init(void)
Initialize the estring object.
size_type m_precision
The current fractional number precision.
value_type fmt_str(void)
Generate a formatted string.
char left_fillchar(void) const
Retrieve the fill character used to padd the left side of a formatted string.
estring & operator=(const estring &a_estr)
Assignment operator for estring objects.
void fillchar(const char a_char)
Set the fill character used for padding both the left and right side of a formatted string...
void T_string_to_fractional(const value_type &a_str, T &a_t) const
Helper member template function to convert a string to a fractional.
const estring_value & get_from_value(void) const
Retrieve the typeless_value being held by this estring.
alignment
Alignment values for formatted strings.
set_from_type
The type last assigned.
estring & lower(void)
Convert all characters to lowercase.
void T_fraction_to_strings(const T &a_t, value_type &a_ws, value_type &a_fs)
Helper member template function to convert a fractional type to an estring.
std::string value_type
The type from which estring inherits, std::string.
size_type precision(void) const
Retrieve the set precision used in fractional conversions.
value_type::size_type size_type
The size type.
estring()
Default constructor.
void T_string_to_signed_integral(const value_type &a_str, T &a_t) const
Helper member template function to convert a string to a signed integral.
estring & upper(void)
Convert all characters to uppercase.
estring_value m_value
The current value.
size_type m_width
The current formatting width.
char right_fillchar(void) const
Retrieve the fill character used to padd the right side of a formatted string.
const unsigned int base(void) const
Retrieve the base used in numeric conversions.
unsigned int m_base
The current numerical base.