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:
parent
97b5f19930
commit
a2a964b24c
2 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue