diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-08-24 16:17:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 16:17:56 +0200 |
commit | 11c4a60fbe9d471618e0579f588706746ff3e439 (patch) | |
tree | f34844cbc943b9e6aa1c9d78a1da318893dc8101 /src/common/Utilities/Util.h | |
parent | ec783fcbb59fcd6e657bc1a39c2b073fd7506ed4 (diff) |
[3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + std::string_view)
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index cd8765b309f..8c97f99fe63 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -20,6 +20,7 @@ #include "Define.h" #include "Errors.h" +#include "Optional.h" #include <array> #include <string> @@ -345,7 +346,7 @@ inline std::vector<uint8> HexStrToByteVector(std::string_view str, bool reverse return buf; } -TC_COMMON_API bool StringToBool(std::string_view str); +TC_COMMON_API Optional<bool> StringToBool(std::string_view str); TC_COMMON_API bool StringEqualI(std::string_view str1, std::string_view str2); TC_COMMON_API bool StringStartsWith(std::string_view haystack, std::string_view needle); |