From b9005f8b7510564538bd7019c27408247cd40a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 12 Feb 2025 14:42:21 +0100 Subject: [PATCH] test --- externals/simplecpp/simplecpp.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/externals/simplecpp/simplecpp.cpp b/externals/simplecpp/simplecpp.cpp index d5984a42a68..b8dd063d24f 100755 --- a/externals/simplecpp/simplecpp.cpp +++ b/externals/simplecpp/simplecpp.cpp @@ -148,12 +148,11 @@ static unsigned long long stringToULL(const std::string &s) istr >> ret; return ret; } -namespace { -bool startsWith(const std::string &s, const std::string &p) + +static bool startsWith(const std::string &s, const std::string &p) { return (s.size() >= p.size()) && std::equal(p.begin(), p.end(), s.begin()); } -} static bool endsWith(const std::string &s, const std::string &e) { @@ -2372,6 +2371,11 @@ namespace simplecpp { namespace simplecpp { #ifdef __CYGWIN__ + bool startsWith(const std::string &str, const std::string &s) + { + return (str.size() >= s.size() && str.compare(0, s.size(), s) == 0); + } + std::string convertCygwinToWindowsPath(const std::string &cygwinPath) { std::string windowsPath;