diff --git a/src/str.cpp b/src/str.cpp index a9500edc..9670ba82 100644 --- a/src/str.cpp +++ b/src/str.cpp @@ -301,8 +301,17 @@ str::startswith(const string &str_, } bool -str::startswith(const char *str_, - nonstd::span +str::startswith(const char *str_, + span prefixes_) +{ + for(const auto &prefix : prefixes_) + { + if(str::startswith(str_,prefix)) + return true; + } + + return false; +} bool str::endswith(const string &str_,