MCPcopy Create free account
hub / github.com/ZDoom/Raze / ExtractFilePath

Function ExtractFilePath

source/common/utility/cmdlib.cpp:275–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273//==========================================================================
274
275FString ExtractFilePath (const char *path, bool forcebackslash)
276{
277 const char *src;
278
279 src = path + strlen(path) - 1;
280
281//
282// back up until a \ or the start
283//
284 while (src != path && !IsSeperator(*(src-1), forcebackslash))
285 src--;
286
287 return FString(path, src - path);
288}
289
290//==========================================================================
291//

Callers 8

CheckAddonFunction · 0.85
InitFileSystemFunction · 0.85
UNSAFE_CCMDFunction · 0.85
D_AddWildFileFunction · 0.85
SplitPathFunction · 0.85
ChangeListMethod · 0.85
FPatchSetReaderMethod · 0.85
FLumpPatchSetReaderMethod · 0.85

Calls 2

IsSeperatorFunction · 0.85
FStringClass · 0.70

Tested by

no test coverage detected