MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / normalizePath

Function normalizePath

engine/src/utils.cpp:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static std::string normalizePath(std::string path) {
75 std::replace(path.begin(), path.end(), '\\', '/');
76 return path;
77}
78
79static std::string ensureTrailingSlash(std::string path) {
80 path = normalizePath(path);

Callers 3

ensureTrailingSlashFunction · 0.85
buildCandidateFunction · 0.85
resolveResourcePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected