| 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 | { |