Add new memory profiler
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user