| 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 | { |
no test coverage detected