mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Adjust previous commit to compile with clang on systems that have gcc 12 installed
This commit is contained in:
@@ -862,7 +862,7 @@ bool StringEqualI(std::string_view a, std::string_view b)
|
||||
bool StringContainsStringI(std::string_view haystack, std::string_view needle)
|
||||
{
|
||||
return haystack.end() !=
|
||||
std::ranges::search(haystack, needle, {}, charToLower, charToLower).begin();
|
||||
std::search(haystack.begin(), haystack.end(), needle.begin(), needle.end(), [](char c1, char c2) { return charToLower(c1) == charToLower(c2); });
|
||||
}
|
||||
|
||||
bool StringCompareLessI(std::string_view a, std::string_view b)
|
||||
|
||||
Reference in New Issue
Block a user