MCPcopy Create free account
hub / github.com/Tencent/tgfx / Absolute

Method Absolute

test/src/utils/ProjectPath.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 return std::filesystem::path(dir + "/../../..").lexically_normal();
27}
28std::string ProjectPath::Absolute(const std::string& relativePath) {
29 std::filesystem::path path = relativePath;
30 if (path.is_absolute()) {
31 return path;
32 }
33 static const std::string rootPath = GetRootPath() + "/";
34 return std::filesystem::path(rootPath + relativePath).lexically_normal();
35}
36
37} // namespace tgfx

Callers

nothing calls this directly

Calls 1

GetRootPathFunction · 0.70

Tested by

no test coverage detected