Core/Bnet: Cleanup/Improve Battle.net account commands (#33)
This commit is contained in:
1 parent
8447d9a6a5
commit
df173c7e1c
11 files changed
+145
-64
No files matched your search
@@ -579,7 +579,7 @@ void HexStrToByteArray(std::string const& str, uint8* out, bool reverse /*= fals
|
||||
bool StringToBool(std::string const& str)
|
||||
{
|
||||
std::string lowerStr = str;
|
||||
std::transform(str.begin(), str.end(), lowerStr.begin(), ::tolower);
|
||||
std::transform(str.begin(), str.end(), lowerStr.begin(), [](char c) { return char(::tolower(c)); });
|
||||
return lowerStr == "1" || lowerStr == "true" || lowerStr == "yes";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user