mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
Introduce str_lower_case() and str_upper_case() helpers (#3008)
This commit is contained in:
@@ -385,6 +385,10 @@ std::string str_until(const char *str, char ch);
|
||||
/// Extract the part of the string until either the first occurence of the specified character, or the end.
|
||||
std::string str_until(const std::string &str, char ch);
|
||||
|
||||
/// Convert the string to lower case.
|
||||
std::string str_lower_case(const std::string &str);
|
||||
/// Convert the string to upper case.
|
||||
std::string str_upper_case(const std::string &str);
|
||||
/// Convert the string to snake case (lowercase with underscores).
|
||||
std::string str_snake_case(const std::string &str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user