| 53 | } |
| 54 | |
| 55 | bool IsAbsolutePath(const std::string& path) { |
| 56 | if (path.empty()) { |
| 57 | return false; |
| 58 | } |
| 59 | if (IsSeparator(path[0])) { |
| 60 | return true; |
| 61 | } |
| 62 | #if defined(_WIN32) || defined(_WIN64) |
| 63 | return path.size() >= 3 && path[1] == ':' && IsSeparator(path[2]); |
| 64 | #else |
| 65 | return false; |
| 66 | #endif |
| 67 | } |
| 68 | |
| 69 | bool IsRegularFileUtf8(const std::string& path) { |
| 70 | #if defined(_WIN32) || defined(_WIN64) |
no test coverage detected