![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
A string formating buffer A utility for formatting strings. Uses a stack buffer of 500 chars that will grow on the heap if needed. The StrBuffer is implicitly convertible to a string_view. More...
#include <stringconversion.h>
Public Member Functions | |
| StrBuffer ()=default | |
| Create an empty StrBuffer. | |
| template<typename... Args> | |
| StrBuffer (fmt::format_string< Args... > format, Args &&... args) | |
| Format args using format into a new StrBuffer. | |
| template<typename... Args> | |
| StrBuffer & | append (fmt::format_string< Args... > format, Args &&... args) |
| Append new content into buffer using format and args. | |
| template<typename... Args> | |
| StrBuffer & | replace (fmt::format_string< Args... > format, Args &&... args) |
| Clear buffer content and format args using format into buffer. | |
| void | clear () |
| Clear the buffer. | |
| bool | empty () const |
| Check if buffer is empty. | |
| std::string_view | view () const |
| Get a string_view into the buffer. | |
| operator std::string_view () const | |
| Implicitly conversion to string_view. | |
| const char * | c_str () |
| return a null-terminated c-style string. Will always append a '0' at the end of the buffer | |
Public Attributes | |
| fmt::memory_buffer | buff |
A string formating buffer A utility for formatting strings. Uses a stack buffer of 500 chars that will grow on the heap if needed. The StrBuffer is implicitly convertible to a string_view.