| 61 | namespace { |
| 62 | |
| 63 | bool IsAbsolutePath(const std::string& path) { |
| 64 | if (path.empty()) { |
| 65 | return false; |
| 66 | } |
| 67 | if (path[0] == '/' || path[0] == '\\') { |
| 68 | return true; |
| 69 | } |
| 70 | return path.size() > 1 && path[1] == ':'; |
| 71 | } |
| 72 | |
| 73 | bool IsReadableFile(const std::string& path) { |
| 74 | #if defined(_WIN32) || defined(_WIN64) |
no test coverage detected