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

Function SanitizePath

lobster/src/platform.cpp:267–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267string SanitizePath(string_view path) {
268 string r;
269 for (auto c : path) {
270 r += c == '\\' || c == '/' ? FILESEP : c;
271 }
272 return r;
273}
274
275map<string, tuple<string, int64_t, int64_t, int64_t>, less<>> pakfile_registry;
276

Callers 7

GetMainDirFromExePathFunction · 0.85
InitPlatformFunction · 0.85
AddDataDirFunction · 0.85
LoadFileFunction · 0.85
WriteFileNameFunction · 0.85
ScanDirAbsFunction · 0.85
ScanDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected