MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / IsRelative

Function IsRelative

util/src/FileSystem.cpp:289–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287 }
288
289 bool
290 IsRelative(std::string const& path)
291 {
292#ifdef US_PLATFORM_WINDOWS
293 if (path.size() > MAX_PATH)
294 {
295 return false;
296 }
297 std::wstring wpath(ToWString(path));
298 return (TRUE == ::PathIsRelativeW(wpath.c_str())) ? true : false;
299#else
300 return path.empty() || path[0] != DIR_SEP;
301#endif
302 }
303
304 std::string
305 GetAbsolute(std::string const& path, std::string const& base)

Callers 2

TEST_FFunction · 0.85
GetAbsoluteFunction · 0.85

Calls 3

ToWStringFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.68