| 1403 | |
| 1404 | template <typename F> |
| 1405 | auto |
| 1406 | TextView::suffix_if(F const &pred) const -> self_type { |
| 1407 | self_type zret; |
| 1408 | if (auto n = this->rfind_if(pred); n != npos) { |
| 1409 | ++n; |
| 1410 | zret.assign(this->data() + n, this->size() - n); |
| 1411 | } |
| 1412 | return zret; |
| 1413 | } |
| 1414 | |
| 1415 | inline auto |
| 1416 | TextView::remove_suffix(size_t n) -> self_type & { |
no test coverage detected