31#ifndef ETL_BASIC_STRING_STREAM_INCLUDED
32#define ETL_BASIC_STRING_STREAM_INCLUDED
41 template <
typename TFormat,
typename TIString,
typename TStringView>
46 typedef TFormat format_spec_type;
47 typedef TIString istring_type;
48 typedef typename TIString::value_type value_type;
49 typedef typename TIString::pointer pointer;
50 typedef typename TIString::const_pointer const_pointer;
96 const TIString&
str()
const
104 void str(
const value_type* p)
112 void str(
const TIString& is)
135 ss.format.base(fmt.base);
144 ss.format.width(fmt.width);
151 template <
typename TChar>
154 ss.format.fill(fmt.fill);
163 ss.format.precision(fmt.precision);
172 ss.format.boolalpha(fmt.boolalpha);
181 ss.format.upper_case(fmt.upper_case);
190 ss.format.show_base(fmt.show_base);
253 template <
template <
size_t>
class TString,
size_t SIZE>
256 const TIString& itext = t;
264 template <
typename T>
Definition basic_string_stream.h:43
void str(const value_type *p)
Resets the stream to the supplied string.
Definition basic_string_stream.h:104
basic_string_stream(TIString &text_)
Construct from text.
Definition basic_string_stream.h:55
void str(const TIString &is)
Resets the stream to the supplied string.
Definition basic_string_stream.h:112
friend basic_string_stream & operator<<(basic_string_stream &ss, const TFormat &fmt)
Stream operators.
Definition basic_string_stream.h:124
TIString & str()
Get a reference to the current string.
Definition basic_string_stream.h:88
void set_format(const TFormat &spec_)
Set the format fmt.
Definition basic_string_stream.h:72
const TIString & str() const
Get a const reference to the current string.
Definition basic_string_stream.h:96
const TFormat & get_format() const
Get a const reference to the format fmt.
Definition basic_string_stream.h:80
basic_string_stream(TIString &text_, const TFormat &spec_)
Construct from text and format fmt.
Definition basic_string_stream.h:63
bitset_ext
Definition absolute.h:39
etl::enable_if<!etl::is_same< T, etl::istring >::value &&!etl::is_same< T, etl::string_view >::value, constetl::istring & >::type to_string(const T value, etl::istring &str, bool append=false)
Definition to_string.h:50