MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / normalizePath

Function normalizePath

apps/tools/Studio/StudioApp.cpp:342–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342static std::string normalizePath(const std::string& p)
343{
344 std::string s = p;
345 std::replace(s.begin(), s.end(), '\\', '/');
346 if (!s.empty() && s[0] == '/')
347 s = s.substr(1);
348 std::transform(s.begin(), s.end(), s.begin(), ::tolower);
349 return s;
350}
351
352static std::string resolveVfsDisplayPath(const std::string& enginePath)
353{

Callers 6

findRefInFilteredMethod · 0.85
startUsedByScanMethod · 0.85
loadMethod · 0.85
isLoadedMethod · 0.85
getMethod · 0.85
unloadMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected