Core/ChatCommands: make ExactSequence more readable

(cherry picked from commit feaaa595ca)
This commit is contained in:
Treeston
2020-09-10 15:19:17 +02:00
committed by Shauren
parent bdd4ccbd78
commit 013c9b2cb7
10 changed files with 54 additions and 45 deletions

View File

@@ -840,11 +840,6 @@ bool StringEqualI(std::string_view str1, std::string_view str2)
});
}
bool StringStartsWith(std::string_view haystack, std::string_view needle)
{
return (haystack.substr(0, needle.length()) == needle);
}
bool StringContainsStringI(std::string_view haystack, std::string_view needle)
{
return haystack.end() !=