MCPcopy Create free account
hub / github.com/Norbyte/bg3se / CanonicalizePath

Method CanonicalizePath

BG3Extender/GameDefinitions/GameHelpers.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 void StaticSymbols::CanonicalizePath(STDString & path) const
66 {
67 if (path.find('\\') != STDString::npos) {
68 WARN("Path contains backslashes: \"%s\"; canonical paths should only contain forward slashes.", path.c_str());
69 }
70
71 std::replace(path.begin(), path.end(), '\\', '/');
72 }
73
74 STDString StaticSymbols::ToPath(StringView path, PathRootType root, bool canonicalize) const
75 {

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected