MCPcopy Create free account
hub / github.com/SOUI2/soui / EndsWith

Method EndsWith

utilities/include/string/tstring.h:639–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637 }
638
639 bool EndsWith(const TStringT& suffix, bool IgnoreCase = false) const
640 {
641 if (GetLength() >= suffix.GetLength())
642 {
643 TStringT _src = Right(suffix.GetLength());
644 if (IgnoreCase)
645 return 0 == _src.CompareNoCase(suffix);
646 else
647 return 0 == _src.Compare(suffix);
648 }
649 return false;
650 }
651
652 // insert character at zero-based index; concatenates if index is past end of string
653 int Insert(int nIndex, tchar ch)

Callers

nothing calls this directly

Calls 3

CompareNoCaseMethod · 0.80
GetLengthMethod · 0.45
CompareMethod · 0.45

Tested by

no test coverage detected