MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / getExecutablePath

Method getExecutablePath

Libraries/FileSystem/FileSystem.cpp:1383–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383SC::StringSpan SC::FileSystem::Operations::getExecutablePath(StringPath& executablePath)
1384{
1385 if (not FileSystemWindowsDetail::WindowsPath::getExecutablePath(executablePath))
1386 {
1387 (void)executablePath.resize(0);
1388 return {};
1389 }
1390 return executablePath.view();
1391}
1392
1393SC::StringSpan SC::FileSystem::Operations::getCurrentWorkingDirectory(StringPath& currentWorkingDirectory)
1394{

Callers

nothing calls this directly

Calls 7

getExecutablePathFunction · 0.85
fromNullTerminatedFunction · 0.85
writableSpanMethod · 0.80
resizeMethod · 0.45
viewMethod · 0.45
assignMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected