#include <FormatBuffer.hpp>
|
| void | append (std::string_view str) |
| | Append a string.
|
| void | append (char ch) |
| | Append a single character.
|
| template<typename... Args> |
| void | format (fmt::format_string< Args... > fmt, Args &&...args) |
| | Append the result of formatting fmt with args.
|
| auto | size () const -> size_t |
| | The number of characters buffered.
|
| auto | data () const -> const char * |
| | A pointer to the buffered characters.
|
| auto | empty () const -> bool |
| | Whether the buffer is empty.
|
| void | clear () |
| | Discard the buffered contents.
|
| auto | str () const -> std::string |
| | A copy of the buffered contents as a string.
|
A minimal string-building buffer built on fmt, used to accumulate formatted text output.
◆ append() [1/2]
| void slang::netlist::FormatBuffer::append |
( |
char | ch | ) |
|
|
inline |
Append a single character.
◆ append() [2/2]
| void slang::netlist::FormatBuffer::append |
( |
std::string_view | str | ) |
|
|
inline |
◆ clear()
| void slang::netlist::FormatBuffer::clear |
( |
| ) |
|
|
inline |
Discard the buffered contents.
◆ data()
| auto slang::netlist::FormatBuffer::data |
( |
| ) |
const -> const char * |
|
inline |
A pointer to the buffered characters.
◆ empty()
| auto slang::netlist::FormatBuffer::empty |
( |
| ) |
const -> bool |
|
inline |
Whether the buffer is empty.
◆ format()
template<typename... Args>
| void slang::netlist::FormatBuffer::format |
( |
fmt::format_string< Args... > | fmt, |
|
|
Args &&... | args ) |
|
inline |
Append the result of formatting fmt with args.
◆ size()
| auto slang::netlist::FormatBuffer::size |
( |
| ) |
const -> size_t |
|
inline |
The number of characters buffered.
◆ str()
| auto slang::netlist::FormatBuffer::str |
( |
| ) |
const -> std::string |
|
inline |
A copy of the buffered contents as a string.
The documentation for this class was generated from the following file: