MCPcopy Create free account
hub / github.com/beefytech/Beef / EndsWith

Method EndsWith

BeefySysLib/util/String.cpp:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79bool StringView::EndsWith(const StringView& b, StringView::CompareKind comparisonType) const
80{
81 if (this->mLength < b.mLength)
82 return false;
83 if (comparisonType == StringView::CompareKind_OrdinalIgnoreCase)
84 return String::EqualsIgnoreCaseHelper(this->mPtr + this->mLength - b.mLength, b.mPtr, b.mLength);
85 return String::EqualsHelper(this->mPtr + this->mLength - b.mLength, b.mPtr, b.mLength);
86}
87
88intptr StringView::IndexOf(const StringView& subStr, bool ignoreCase) const
89{

Callers 7

mainFunction · 0.45
GetStringViewMethod · 0.45
GetNextStringViewMethod · 0.45
LoadSoundMethod · 0.45
DoHandleDebugEventFunction · 0.45
AddInfoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected