Drop in pre c++20 Fromatter replacement for Arduino that supports {} placeholders and escaped {{}} braces which supports e.g Serial.println(Format("State: {} | Temp: {} C | Level: {}%", status, temp, battery).c_str());.
More...
#include <Format.h>
|
| template<typename... Args> |
| | Format (const char *fmt, Args... args) |
| |
| const char * | c_str () |
| | Returns raw C-string pointer suitable for Serial.println() or C APIs.
|
| |
| | operator const char * () |
| | Implicit conversion to const char*.
|
| |
Drop in pre c++20 Fromatter replacement for Arduino that supports {} placeholders and escaped {{}} braces which supports e.g Serial.println(Format("State: {} | Temp: {} C | Level: {}%", status, temp, battery).c_str());.
◆ Format()
template<typename... Args>
| Format |
( |
const char * |
fmt, |
|
|
Args... |
args |
|
) |
| |
|
inline |
◆ c_str()
Returns raw C-string pointer suitable for Serial.println() or C APIs.
◆ operator const char *()
| operator const char * |
( |
| ) |
|
|
inline |
Implicit conversion to const char*.
The documentation for this class was generated from the following file:
- src/AudioTools/CoreAudio/AudioBasic/Format.h