MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / NormalizePathForCompare

Function NormalizePathForCompare

src/OSTPlatform/Windows/Process.cpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26constexpr size_t kMaxEnvironmentBytes = 1024 * 1024;
27
28std::string NormalizePathForCompare(std::string path) {
29 for (char& ch : path) ch = static_cast<char>(std::tolower(static_cast<unsigned char>(ch)));
30 std::replace(path.begin(), path.end(), '/', '\\');
31 return path;
32}
33
34template <typename Fn>
35Fn GetNtDllProc(const char* name) {

Callers 1

IsSystemModulePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected