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

Function NormalizePathSeparators

apps/tools/TcPbo/tc_pbo.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static void NormalizePathSeparators(std::string& path)
133{
134#ifdef _WIN32
135 for (char& c : path)
136 if (c == '/')
137 c = '\\';
138#else
139 for (char& c : path)
140 if (c == '\\')
141 c = '/';
142#endif
143}
144
145static char PathSeparator()
146{

Callers 3

ReadHeaderFunction · 0.85
ReadHeaderExFunction · 0.85
ProcessFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected