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

Method EndsWith

BeefySysLib/util/String.h:1007–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005 }
1006
1007 bool EndsWith(const StringView& b, CompareKind comparisonType = CompareKind_Ordinal) const
1008 {
1009 if (this->mLength < b.mLength)
1010 return false;
1011 if (comparisonType == CompareKind_OrdinalIgnoreCase)
1012 return EqualsIgnoreCaseHelper(this->GetPtr() + this->mLength - b.mLength, b.mPtr, b.mLength);
1013 return EqualsHelper(this->GetPtr() + this->mLength - b.mLength, b.mPtr, b.mLength);
1014 }
1015
1016 bool StartsWith(char c) const
1017 {

Callers

nothing calls this directly

Calls 1

GetPtrMethod · 0.95

Tested by

no test coverage detected