git-svn-id: svn://db.shs.com.ru/pip@556 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-11-20 17:51:09 +00:00
parent 9f2c55de5b
commit a3d9dce7c5
11 changed files with 394 additions and 15 deletions

View File

@@ -72,13 +72,11 @@ bool PIDir::operator ==(const PIDir & d) const {
bool PIDir::isAbsolute() const {
if (path_.isEmpty()) return false;
/*#ifdef WINDOWS
if (path_.size_s() < 2) return false;
return (path_.mid(1, 2).contains(":"));
#else
return (path_[0] == separator);
#endif*/
return (path_[0] == separator);
if (path_[0] == separator) return true;
#ifdef WINDOWS
return (path_.mid(1, 1) == ":");
#endif
return false;
}