| 758 | } |
| 759 | |
| 760 | inline bool string_remove_suffix(std::string & str, std::string_view suffix) { |
| 761 | if (string_ends_with(str, suffix)) { |
| 762 | str.resize(str.size() - suffix.size()); |
| 763 | return true; |
| 764 | } |
| 765 | return false; |
| 766 | } |
| 767 | |
| 768 | inline size_t string_find_partial_stop(std::string_view str, std::string_view stop) { |
| 769 | if (!str.empty() && !stop.empty()) { |
no test coverage detected