31 #ifndef ETL_BASIC_STRING_STREAM_INCLUDED
32 #define ETL_BASIC_STRING_STREAM_INCLUDED
40 template <
typename TFormat,
typename TIString,
typename TStringView>
45 typedef TFormat format_spec_type;
46 typedef TIString istring_type;
47 typedef typename TIString::value_type value_type;
48 typedef typename TIString::const_pointer const_pointer;
94 const TIString&
str()
const
102 void str(
const value_type* p)
110 void str(
const TIString& is)
133 ss.spec.base(spec.base);
142 ss.spec.width(spec.width);
149 template <
typename TChar>
152 ss.spec.fill(spec.fill);
161 ss.spec.precision(spec.precision);
170 ss.spec.boolalpha(spec.boolalpha);
179 ss.spec.upper_case(spec.upper_case);
188 ss.spec.show_base(spec.show_base);
241 template <
template <
size_t>
class TString,
size_t SIZE>
244 const TIString& itext = text;
252 template <
typename T>
Definition: basic_string_stream.h:42
void str(const value_type *p)
Resets the stream to the supplied string.
Definition: basic_string_stream.h:102
basic_string_stream(TIString &text_)
Construct from text.
Definition: basic_string_stream.h:53
friend basic_string_stream & operator<<(basic_string_stream &ss, const TFormat &spec)
Stream operators.
Definition: basic_string_stream.h:122
void str(const TIString &is)
Resets the stream to the supplied string.
Definition: basic_string_stream.h:110
TIString & str()
Get a reference to the current string.
Definition: basic_string_stream.h:86
const TIString & str() const
Get a const reference to the current string.
Definition: basic_string_stream.h:94
void set_format(const TFormat &spec_)
Set the format spec.
Definition: basic_string_stream.h:70
const TFormat & get_format() const
Get a const reference to the format spec.
Definition: basic_string_stream.h:78
basic_string_stream(TIString &text_, const TFormat &spec_)
Construct from text and format spec.
Definition: basic_string_stream.h:61
Definition: absolute.h:37
etl::enable_if<!etl::is_same< T, etl::istring >::value &&!etl::is_same< T, etl::string_view >::value, const etl::istring & >::type to_string(const T value, etl::istring &str, bool append=false)
Definition: to_string.h:50