stream -> buffer
This commit is contained in:
parent
984a102921
commit
b5fb8dd18b
17
fmt/format.h
17
fmt/format.h
@ -2168,9 +2168,9 @@ constexpr named_format_spec<unsigned> width;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
\rst
|
\rst
|
||||||
This template provides operations for formatting and writing data into
|
This template provides operations for formatting and writing data into a
|
||||||
a character stream. The output is stored in a buffer provided by a subclass
|
character buffer. The output buffer is specified by a subclass such as
|
||||||
such as :class:`fmt::BasicMemoryWriter`.
|
:class:`fmt::BasicMemoryWriter`.
|
||||||
|
|
||||||
You can use one of the following typedefs for common character types:
|
You can use one of the following typedefs for common character types:
|
||||||
|
|
||||||
@ -2265,7 +2265,7 @@ class basic_writer {
|
|||||||
void write_str(BasicStringRef<StrChar> str, const FormatSpec &spec);
|
void write_str(BasicStringRef<StrChar> str, const FormatSpec &spec);
|
||||||
|
|
||||||
// This following methods are private to disallow writing wide characters
|
// This following methods are private to disallow writing wide characters
|
||||||
// and strings to a char stream. If you want to print a wide string as a
|
// and strings to a char buffer. If you want to print a wide string as a
|
||||||
// pointer as std::ostream does, cast it to const void*.
|
// pointer as std::ostream does, cast it to const void*.
|
||||||
// Do not implement!
|
// Do not implement!
|
||||||
void operator<<(typename internal::WCharHelper<wchar_t, Char>::Unsupported);
|
void operator<<(typename internal::WCharHelper<wchar_t, Char>::Unsupported);
|
||||||
@ -2392,7 +2392,7 @@ class basic_writer {
|
|||||||
/**
|
/**
|
||||||
\rst
|
\rst
|
||||||
Formats *value* using the general format for floating-point numbers
|
Formats *value* using the general format for floating-point numbers
|
||||||
(``'g'``) and writes it to the stream.
|
(``'g'``) and writes it to the buffer.
|
||||||
\endrst
|
\endrst
|
||||||
*/
|
*/
|
||||||
void write(long double value) {
|
void write(long double value) {
|
||||||
@ -2400,7 +2400,7 @@ class basic_writer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes a character to the stream.
|
Writes a character to the buffer.
|
||||||
*/
|
*/
|
||||||
void write(char value) {
|
void write(char value) {
|
||||||
buffer_.push_back(value);
|
buffer_.push_back(value);
|
||||||
@ -2412,7 +2412,7 @@ class basic_writer {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
\rst
|
\rst
|
||||||
Writes *value* to the stream.
|
Writes *value* to the buffer.
|
||||||
\endrst
|
\endrst
|
||||||
*/
|
*/
|
||||||
void write(fmt::BasicStringRef<Char> value) {
|
void write(fmt::BasicStringRef<Char> value) {
|
||||||
@ -2805,8 +2805,7 @@ void basic_writer<Char>::write_double(T value, const FormatSpec &spec) {
|
|||||||
/**
|
/**
|
||||||
\rst
|
\rst
|
||||||
This class template provides operations for formatting and writing data
|
This class template provides operations for formatting and writing data
|
||||||
into a character stream. The output is stored in a memory buffer that grows
|
into a memory buffer that grows dynamically.
|
||||||
dynamically.
|
|
||||||
|
|
||||||
You can use one of the following typedefs for common character types
|
You can use one of the following typedefs for common character types
|
||||||
and the standard allocator:
|
and the standard allocator:
|
||||||
|
Loading…
Reference in New Issue
Block a user