From b5fb8dd18b37e48c27c3a9d65a0528993316b042 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 28 Jan 2017 12:44:36 +0000 Subject: [PATCH] stream -> buffer --- fmt/format.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/fmt/format.h b/fmt/format.h index dcf71c13..265c14b2 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -2168,9 +2168,9 @@ constexpr named_format_spec width; /** \rst - This template provides operations for formatting and writing data into - a character stream. The output is stored in a buffer provided by a subclass - such as :class:`fmt::BasicMemoryWriter`. + This template provides operations for formatting and writing data into a + character buffer. The output buffer is specified by a subclass such as + :class:`fmt::BasicMemoryWriter`. You can use one of the following typedefs for common character types: @@ -2265,7 +2265,7 @@ class basic_writer { void write_str(BasicStringRef str, const FormatSpec &spec); // 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*. // Do not implement! void operator<<(typename internal::WCharHelper::Unsupported); @@ -2392,7 +2392,7 @@ class basic_writer { /** \rst 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 */ 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) { buffer_.push_back(value); @@ -2412,7 +2412,7 @@ class basic_writer { /** \rst - Writes *value* to the stream. + Writes *value* to the buffer. \endrst */ void write(fmt::BasicStringRef value) { @@ -2805,8 +2805,7 @@ void basic_writer::write_double(T value, const FormatSpec &spec) { /** \rst This class template provides operations for formatting and writing data - into a character stream. The output is stored in a memory buffer that grows - dynamically. + into a memory buffer that grows dynamically. You can use one of the following typedefs for common character types and the standard allocator: