| 446 | } |
| 447 | |
| 448 | bool string_ends_with(const std::string_view & str, const std::string_view & suffix) { |
| 449 | return str.size() >= suffix.size() && str.compare(str.size()-suffix.size(), suffix.size(), suffix) == 0; |
| 450 | } |
| 451 | size_t string_find_partial_stop(const std::string_view & str, const std::string_view & stop) { |
| 452 | if (!str.empty() && !stop.empty()) { |
| 453 | const char text_last_char = str.back(); |
no test coverage detected