| 246 | } |
| 247 | |
| 248 | static constexpr bool EndsWith(const TCharType* what, size_t whatLen, const TCharType* with, size_t withLen) noexcept { |
| 249 | return withLen <= whatLen && TStringViewWithTraits(what + whatLen - withLen, withLen) == TStringViewWithTraits(with, withLen); |
| 250 | } |
| 251 | |
| 252 | constexpr bool StartsWith(const TCharType* s, size_t n) const noexcept { |
| 253 | return StartsWith(Ptr(), Len(), s, n); |