mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-02 11:43:40 +02:00
src/utils.h: Adding strtolower()
This commit is contained in:
parent
fe1a063eef
commit
fd03346255
2 changed files with 7 additions and 0 deletions
|
|
@ -36,3 +36,8 @@ std::vector<std::string> strsplit(const std::string& str, const std::string& del
|
||||||
r.push_back(str.substr(s));
|
r.push_back(str.substr(s));
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void strtolower(std::string& str) {
|
||||||
|
|
||||||
|
std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c){ return std::tolower(c); });
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,4 +29,6 @@
|
||||||
|
|
||||||
std::vector<std::string> strsplit(const std::string& str, const std::string& delim);
|
std::vector<std::string> strsplit(const std::string& str, const std::string& delim);
|
||||||
|
|
||||||
|
void strtolower(std::string& str);
|
||||||
|
|
||||||
#endif /* UTILS_H */
|
#endif /* UTILS_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue