![]() |
Deluge Firmware 1.3.0
Build date: 2025.11.26
|
#include <d_stringbuf.h>
Public Member Functions | |
| StringBuf (char *buf, size_t capacity) | |
| void | append (std::string_view str) |
| void | append (char c) |
| void | removeSpaces () |
| void | clear () |
| void | truncate (size_t newSize) |
| void | appendInt (int i, int minChars=1) |
| void | appendHex (int i, int minChars=1) |
| void | appendFloat (float f, int32_t minDecimals, int32_t maxDecimals) |
| char * | data () |
| const char * | data () const |
| const char * | c_str () const |
| size_t | capacity () const |
| size_t | size () const |
| size_t | length () const |
| bool | empty () const |
| bool | operator== (const char *rhs) const |
| bool | operator== (const StringBuf &rhs) const |
| operator std::string_view () const | |
Private Attributes | |
| size_t | capacity_ |
| char * | buf_ |
A string buffer with utility functions to append and format contents. does not handle allocation