Add new memory profiler

This commit is contained in:
Wojtek Figat
2025-05-22 04:40:32 +02:00
parent 9ba1c4c338
commit 2dc404cbd3
8 changed files with 891 additions and 2 deletions

View File

@@ -208,6 +208,14 @@ public:
return StringUtils::CompareIgnoreCase(&(*this)[Length() - suffix.Length()], *suffix) == 0;
return StringUtils::Compare(&(*this)[Length() - suffix.Length()], *suffix) == 0;
}
bool Contains(const T* subStr, StringSearchCase searchCase = StringSearchCase::CaseSensitive) const
{
const int32 length = Length();
if (subStr == nullptr || length == 0)
return false;
return (searchCase == StringSearchCase::IgnoreCase ? StringUtils::FindIgnoreCase(_data, subStr) : StringUtils::Find(_data, subStr)) != nullptr;
}
};
/// <summary>