From 66a86451a4586a1514c5130e65e4993ac2286210 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 12 Jan 2026 10:27:18 -0600 Subject: [PATCH] str.cpp --- src/str.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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_)