diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-09-07 20:31:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 20:31:04 +0200 |
commit | 66a87c4642d25f27ca24254cfeb0a0c4b21036b1 (patch) | |
tree | ccf34eaee0ac1a51e5f971af8ecd67d14c9fc735 /src/common/Utilities/Util.h | |
parent | 5843724debc3642434c055e5cf6f29a1eaf65358 (diff) |
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*
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <typename T> class HookList final |