mirror of
https://github.com/esphome/esphome.git
synced 2025-09-12 16:22:22 +01:00
Add str_sprintf function that returns std::string (#2408)
This commit is contained in:
@@ -59,6 +59,9 @@ bool str_equals_case_insensitive(const std::string &a, const std::string &b);
|
||||
bool str_startswith(const std::string &full, const std::string &start);
|
||||
bool str_endswith(const std::string &full, const std::string &ending);
|
||||
|
||||
/// sprintf-like function returning std::string instead of writing to char array.
|
||||
std::string __attribute__((format(printf, 1, 2))) str_sprintf(const char *fmt, ...);
|
||||
|
||||
class HighFrequencyLoopRequester {
|
||||
public:
|
||||
void start();
|
||||
|
Reference in New Issue
Block a user