diff --git a/src/str.cpp b/src/str.cpp index 9670ba82..f069adfd 100644 --- a/src/str.cpp +++ b/src/str.cpp @@ -300,6 +300,19 @@ str::startswith(const string &str_, std::string_view{prefix_}); } +bool +str::startswith(const char *str_, + span prefixes_) +{ + for(const auto &prefix : prefixes_) + { + if(str::startswith(str_,prefix)) + return true; + } + + return false; +} + bool str::startswith(const char *str_, span prefixes_)