From 4a80dce3a4ddcad5fe3b1bd9ca9b2b471659a793 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 2 Jan 2026 14:18:09 -0600 Subject: [PATCH] str.cpp --- src/str.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/str.cpp b/src/str.cpp index 7fc3d3f3..37ccb572 100644 --- a/src/str.cpp +++ b/src/str.cpp @@ -349,8 +349,11 @@ str::replace(const std::string &s_, } std::string -str::remove_prefix(const std::string &str, - const std::string_view prefix) +str::remove_prefix(const std::string &str_, + const std::string_view prefix_) { - if(str::startswith( + std::string str(str_); + if((str_.size() >= prefix.size()) && + std::equal(prefix.begin(),prefix.end(),str_.begin())) + return }