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