MCPcopy Create free account
hub / github.com/aardappel/treesheets / StripFilePart

Function StripFilePart

lobster/src/platform.cpp:134–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133
134string_view StripFilePart(string_view filepath) {
135 auto fpos = filepath.find_last_of(FILESEP);
136 return fpos != string_view::npos ? filepath.substr(0, fpos + 1) : "";
137}
138
139const char *StripDirPart(const char *filepath) {
140 auto fpos = strrchr(filepath, FILESEP);

Callers 2

GetMainDirFromExePathFunction · 0.85
InitPlatformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected