Naive approach: win: C:\... D://... unix: /var/...
| 53 | // win: C:\... D://... |
| 54 | // unix: /var/... |
| 55 | static bool isAbsolutePath(std::string filename) { return (filename.substr(0, 1) == "/" || filename.substr(1, 1) == ":"); } |
| 56 | |
| 57 | static std::string _baseDir; |
| 58 | }; |
no test coverage detected