File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,11 @@ static unsigned long long stringToULL(const std::string &s)
148
148
istr >> ret;
149
149
return ret;
150
150
}
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)
153
153
{
154
154
return (s.size () >= p.size ()) && std::equal (p.begin (), p.end (), s.begin ());
155
155
}
156
- }
157
156
158
157
static bool endsWith (const std::string &s, const std::string &e)
159
158
{
@@ -2372,6 +2371,11 @@ namespace simplecpp {
2372
2371
namespace simplecpp {
2373
2372
2374
2373
#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
+
2375
2379
std::string convertCygwinToWindowsPath (const std::string &cygwinPath)
2376
2380
{
2377
2381
std::string windowsPath;
You can’t perform that action at this time.
0 commit comments