We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0b3f52 commit 235e094Copy full SHA for 235e094
1 file changed
simplecpp.cpp
@@ -2385,12 +2385,17 @@ namespace simplecpp {
2385
namespace simplecpp {
2386
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
+
2393
std::string convertCygwinToWindowsPath(const std::string &cygwinPath)
2394
{
2395
std::string windowsPath;
2396
2397
std::string::size_type pos = 0;
- if (cygwinPath.size() >= 11 && startsWith_(cygwinPath, "/cygdrive/")) {
2398
+ if (cygwinPath.size() >= 11 && startsWith(cygwinPath, "/cygdrive/")) {
2399
const unsigned char driveLetter = cygwinPath[10];
2400
if (std::isalpha(driveLetter)) {
2401
if (cygwinPath.size() == 11) {
0 commit comments