From 66a87c4642d25f27ca24254cfeb0a0c4b21036b1 Mon Sep 17 00:00:00 2001 From: Treeston Date: Fri, 7 Sep 2018 20:31:04 +0200 Subject: Scripts/Commands: New argument parsing methodology (PR #22363) - Detect the arguments accepted by the command handler - Tokenize out those arguments automatically and feed them to the handler - Unmatched rest of the string can be accepted by trailing char const* or CommandArgs* --- src/common/Utilities/Util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/Utilities/Util.h') diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index 195aa22ca22..07c2803395a 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -300,6 +300,8 @@ TC_COMMON_API void HexStrToByteArray(std::string const& str, uint8* out, bool re TC_COMMON_API bool StringToBool(std::string const& str); +TC_COMMON_API bool StringContainsStringI(std::string const& haystack, std::string const& needle); + // simple class for not-modifyable list template class HookList final -- cgit v1.2.3