util: refactor upper/lowercase functions

This includes renaming Downcase() to ToLower() and make it return a string rather than modify referenced arg.
Also adds ToUpper() string version.
This commit is contained in:
Karl-Johan Alm
2019-08-07 13:42:54 +09:00
parent e5fdda68c6
commit 0481fa2584
6 changed files with 48 additions and 24 deletions

View File

@@ -37,7 +37,7 @@ public:
bool randomize_credentials;
};
enum Network ParseNetwork(std::string net);
enum Network ParseNetwork(const std::string& net);
std::string GetNetworkName(enum Network net);
bool SetProxy(enum Network net, const proxyType &addrProxy);
bool GetProxy(enum Network net, proxyType &proxyInfoOut);