Skip to content

Commit b9005f8

Browse files
committed
test
1 parent c860f18 commit b9005f8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

externals/simplecpp/simplecpp.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,11 @@ static unsigned long long stringToULL(const std::string &s)
148148
istr >> ret;
149149
return ret;
150150
}
151-
namespace {
152-
bool startsWith(const std::string &s, const std::string &p)
151+
152+
static bool startsWith(const std::string &s, const std::string &p)
153153
{
154154
return (s.size() >= p.size()) && std::equal(p.begin(), p.end(), s.begin());
155155
}
156-
}
157156

158157
static bool endsWith(const std::string &s, const std::string &e)
159158
{
@@ -2372,6 +2371,11 @@ namespace simplecpp {
23722371
namespace simplecpp {
23732372

23742373
#ifdef __CYGWIN__
2374+
bool startsWith(const std::string &str, const std::string &s)
2375+
{
2376+
return (str.size() >= s.size() && str.compare(0, s.size(), s) == 0);
2377+
}
2378+
23752379
std::string convertCygwinToWindowsPath(const std::string &cygwinPath)
23762380
{
23772381
std::string windowsPath;

0 commit comments

Comments
 (0)