| 120 | } |
| 121 | |
| 122 | bool PathSearcher::isAbsolute(const std::string &path) |
| 123 | { |
| 124 | #if __WIN32__ |
| 125 | return path.size() >= 3 && path[1] == ':' && path[2] == PATH_SEP_CHAR; |
| 126 | #else |
| 127 | return path.size() >= 1 && path[0] == PATH_SEP_CHAR; |
| 128 | #endif |
| 129 | } |
| 130 | |
| 131 | std::string PathSearcher::joinPaths(const std::string &first, const std::string &second) |
| 132 | { |