|
| | BasicArrayWriter (Char *array, std::size_t size) |
| |
| template<std::size_t SIZE> |
| | BasicArrayWriter (Char(&array)[SIZE]) |
| |
| virtual | ~BasicWriter () |
| |
| std::size_t | size () const |
| |
| const Char * | data () const FMT_NOEXCEPT |
| |
| const Char * | c_str () const |
| |
| std::basic_string< Char > | str () const |
| |
| void | write (BasicCStringRef< Char > format, ArgList args) |
| |
| BasicWriter & | operator<< (int value) |
| |
| BasicWriter & | operator<< (unsigned value) |
| |
| BasicWriter & | operator<< (long value) |
| |
| BasicWriter & | operator<< (unsigned long value) |
| |
| BasicWriter & | operator<< (LongLong value) |
| |
| BasicWriter & | operator<< (ULongLong value) |
| |
| BasicWriter & | operator<< (double value) |
| |
| BasicWriter & | operator<< (long double value) |
| |
| BasicWriter & | operator<< (char value) |
| |
| BasicWriter & | operator<< (typename internal::WCharHelper< wchar_t, Char >::Supported value) |
| |
| BasicWriter & | operator<< (fmt::BasicStringRef< Char > value) |
| |
| BasicWriter & | operator<< (typename internal::WCharHelper< StringRef, Char >::Supported value) |
| |
| template<typename T , typename Spec , typename FillChar > |
| BasicWriter & | operator<< (IntFormatSpec< T, Spec, FillChar > spec) |
| |
| template<typename StrChar > |
| BasicWriter & | operator<< (const StrFormatSpec< StrChar > &spec) |
| |
| void | clear () FMT_NOEXCEPT |
| |
| Buffer< Char > & | buffer () FMT_NOEXCEPT |
| |
| template<typename StrChar > |
| BasicWriter< Char >::CharPtr | write_str (const StrChar *s, std::size_t size, const AlignSpec &spec) |
| |
| template<typename Spec > |
| BasicWriter< Char >::CharPtr | prepare_int_buffer (unsigned num_digits, const Spec &spec, const char *prefix, unsigned prefix_size) |
| |
template<typename Char>
class fmt::BasicArrayWriter< Char >
This class template provides operations for formatting and writing data into a fixed-size array. For writing into a dynamically growing buffer use :class:fmt::BasicMemoryWriter.
Any write method will throw std::runtime_error if the output doesn't fit into the array.
You can use one of the following typedefs for common character types:
+-----------—+------------------------—+ | Type | Definition | +==============+===========================+ | ArrayWriter | BasicArrayWriter<char> | +-----------—+------------------------—+ | WArrayWriter | BasicArrayWriter<wchar_t> | +-----------—+------------------------—+
Definition at line 3040 of file format.h.