MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / GetDirectoryName

Function GetDirectoryName

DSView/pv/utility/path.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 QString GetDirectoryName(QString path)
38 {
39 int lstdex = path.lastIndexOf('/');
40 if (lstdex != -1)
41 {
42 return path.left(lstdex);
43 }
44 return path;
45 }
46
47 std::string ToUnicodePath(QString path)
48 {

Callers 7

on_screenShotMethod · 0.85
MakeSaveFileMethod · 0.85
MakeExportFileMethod · 0.85
acceptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected