diff options
author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-08-16 14:11:21 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-26 22:13:06 +0100 |
commit | 3923650aeb75611023aa1d46a4328838c8e0a33c (patch) | |
tree | afdf0c696ea88c3172528fc6f7966a351d07cf69 /src/common/Utilities/Util.h | |
parent | 2e3c612c808bca7601b32ce5dca28b204e652773 (diff) |
Core/ChatCommands: Add support for enum type arguments (PR #25242)
(cherry picked from commit 5e40eb20e2789b86d4786d86b4bbb8ae83de5e1e)
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index a7f6619838a..d048f3437aa 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -324,6 +324,7 @@ inline bool isUpper(wchar_t wchar) TC_COMMON_API std::wstring wstrCaseAccentInsensitiveParse(std::wstring const& wstr, LocaleConstant locale); TC_COMMON_API void wstrToUpper(std::wstring& str); +TC_COMMON_API void strToLower(std::string& str); TC_COMMON_API void wstrToLower(std::wstring& str); TC_COMMON_API std::wstring GetMainPartOfName(std::wstring const& wname, uint32 declension); @@ -377,6 +378,8 @@ inline std::vector<uint8> HexStrToByteVector(std::string const& str, bool revers TC_COMMON_API bool StringToBool(std::string const& str); TC_COMMON_API float DegToRad(float degrees); +TC_COMMON_API bool StringEqualI(std::string const& str1, std::string const& str2); +TC_COMMON_API bool StringStartsWith(std::string const& haystack, std::string const& needle); TC_COMMON_API bool StringContainsStringI(std::string const& haystack, std::string const& needle); template <typename T> inline bool ValueContainsStringI(std::pair<T, std::string> const& haystack, std::string const& needle) |