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.spec.base(spec.base);
144 ss.spec.width(spec.width);
151 template <
typename TChar>
154 ss.spec.fill(spec.fill);
163 ss.spec.precision(spec.precision);
172 ss.spec.boolalpha(spec.boolalpha);
181 ss.spec.upper_case(spec.upper_case);
190 ss.spec.show_base(spec.show_base);
253 template <
template <
size_t>
class TString,
size_t SIZE>
256 const TIString& itext = text;
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
TIString & str()
Get a reference to the current string.
Definition: basic_string_stream.h:88
void set_format(const TFormat &spec_)
Set the format spec.
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 spec.
Definition: basic_string_stream.h:80
friend basic_string_stream & operator<<(basic_string_stream &ss, const TFormat &spec)
Stream operators.
Definition: basic_string_stream.h:124
basic_string_stream(TIString &text_, const TFormat &spec_)
Construct from text and format spec.
Definition: basic_string_stream.h:63
bitset_ext
Definition: absolute.h:38
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