| 1276 | |
| 1277 | template <typename F> |
| 1278 | auto |
| 1279 | TextView::prefix_if(F const &pred) const -> self_type { |
| 1280 | self_type zret; // default to empty return. |
| 1281 | if (auto n = this->find_if(pred); n != npos) { |
| 1282 | zret.assign(this->data(), n); |
| 1283 | } |
| 1284 | return zret; |
| 1285 | } |
| 1286 | |
| 1287 | inline auto |
| 1288 | TextView::remove_prefix(size_t n) -> self_type & { |
no test coverage detected