diff --git a/src/str.cpp b/src/str.cpp index 5ce25d90..85c9b0cf 100644 --- a/src/str.cpp +++ b/src/str.cpp @@ -32,7 +32,7 @@ using std::set; using std::string; using std::string_view; using std::vector; - +using nonstd::span; void str::split(const string_view str_, @@ -299,6 +299,10 @@ str::startswith(const string &str_, std::string_view{prefix_}); } +bool +str::startswith(const char *str_, + nonstd::span + bool str::endswith(const string &str_, const string &suffix_)