| 1683 | } |
| 1684 | |
| 1685 | inline bool |
| 1686 | TextView::ends_with(std::string_view const &suffix) const noexcept { |
| 1687 | return this->size() >= suffix.size() && 0 == ::memcmp(this->data_end() - suffix.size(), suffix.data(), suffix.size()); |
| 1688 | } |
| 1689 | |
| 1690 | inline bool |
| 1691 | TextView::ends_with_nocase(std::string_view const &suffix) const noexcept { |
no test coverage detected