Added new 'type' function, other mods

This commit is contained in:
2021-02-07 15:35:31 -05:00
parent 076daaa3a2
commit 8c15e56fe9
6 changed files with 64 additions and 28 deletions

View File

@@ -14,6 +14,10 @@ namespace util {
using stringvec = std::vector<std::string>;
using stringset = std::set<std::string>;
// String to lowercase/uppercase
std::string tolower(std::string input);
std::string toupper(std::string input);
// String to integer. Returns errval if the number is not parseable.
int64_t strtoint(const std::string &value, int64_t errval);