arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Format Class Reference

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>

Public Member Functions

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*.
 

Detailed Description

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());.

Constructor & Destructor Documentation

◆ Format()

template<typename... Args>
Format ( const char *  fmt,
Args...  args 
)
inline

Member Function Documentation

◆ c_str()

const char * c_str ( )
inline

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: