MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / fromNativeSeparators

Method fromNativeSeparators

lib/path.cpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84std::string Path::fromNativeSeparators(std::string path)
85{
86 constexpr char nonnative = '\\';
87 constexpr char newsepar = '/';
88 std::replace(path.begin(), path.end(), nonnative, newsepar);
89 return path;
90}
91
92std::string Path::simplifyPath(std::string originalPath)
93{

Callers

nothing calls this directly

Calls 3

replaceFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected