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

src/utils: make strtolower return the string.

This commit is contained in:
Henrik Hautakoski 2020-01-03 18:03:14 +01:00
parent 97b5f19930
commit a2a964b24c
2 changed files with 3 additions and 2 deletions

View file

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