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:
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));
|
||||
return r;
|
||||
}
|
||||
|
||||
void strtolower(std::string& str) {
|
||||
|
||||
std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c){ return std::tolower(c); });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue