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

Method StartsWith

utilities/include/string/tstring.h:626–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624 }
625
626 bool StartsWith(const TStringT& prefix, bool IgnoreCase = false) const
627 {
628 if (GetLength() >= prefix.GetLength())
629 {
630 TStringT _src = Left(prefix.GetLength());
631 if (IgnoreCase)
632 return 0 == _src.CompareNoCase(prefix);
633 else
634 return 0 == _src.Compare(prefix);
635 }
636 return false;
637 }
638
639 bool EndsWith(const TStringT& suffix, bool IgnoreCase = false) const
640 {

Callers 1

CreateChildrenMethod · 0.80

Calls 3

CompareNoCaseMethod · 0.80
GetLengthMethod · 0.45
CompareMethod · 0.45

Tested by

no test coverage detected