| 687 | } |
| 688 | |
| 689 | static bool string_starts_with(const std::string & str, |
| 690 | const std::string & prefix) { // While we wait for C++20's std::string::starts_with... |
| 691 | return str.rfind(prefix, 0) == 0; |
| 692 | } |
| 693 | |
| 694 | // While we wait for C++20's std::string::ends_with... |
| 695 | bool string_ends_with(const std::string_view & str, const std::string_view & suffix); |
no outgoing calls