File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2385,12 +2385,17 @@ namespace simplecpp {
2385
2385
namespace simplecpp {
2386
2386
2387
2387
#ifdef __CYGWIN__
2388
+ static bool startsWith (const std::string &s, const std::string &p)
2389
+ {
2390
+ return (s.size () >= p.size ()) && std::equal (p.begin (), p.end (), s.begin ());
2391
+ }
2392
+
2388
2393
std::string convertCygwinToWindowsPath (const std::string &cygwinPath)
2389
2394
{
2390
2395
std::string windowsPath;
2391
2396
2392
2397
std::string::size_type pos = 0 ;
2393
- if (cygwinPath.size () >= 11 && startsWith_ (cygwinPath, " /cygdrive/" )) {
2398
+ if (cygwinPath.size () >= 11 && startsWith (cygwinPath, " /cygdrive/" )) {
2394
2399
const unsigned char driveLetter = cygwinPath[10 ];
2395
2400
if (std::isalpha (driveLetter)) {
2396
2401
if (cygwinPath.size () == 11 ) {
You can’t perform that action at this time.
0 commit comments