MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / isAbsolutePath

Function isAbsolutePath

IPL/include/IPLFileIO.h:55–55  ·  view source on GitHub ↗

Naive approach: win: C:\... D://... unix: /var/...

Source from the content-addressed store, hash-verified

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};

Callers 2

loadFileMethod · 0.85
loadRawFileMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected