1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

src/utils.h: Adding strtolower()

This commit is contained in:
Henrik Hautakoski 2019-12-20 14:27:56 +01:00
parent fe1a063eef
commit fd03346255
2 changed files with 7 additions and 0 deletions

View file

@ -36,3 +36,8 @@ std::vector<std::string> strsplit(const std::string& str, const std::string& del
r.push_back(str.substr(s));
return r;
}
void strtolower(std::string& str) {
std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c){ return std::tolower(c); });
}