MCPcopy Create free account
hub / github.com/WinMerge/winmerge / ToUnixPath

Function ToUnixPath

Src/paths.cpp:802–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802String ToUnixPath(const String& path)
803{
804 String unixpath = path;
805 replace_char(&*unixpath.begin(), '\\', '/');
806 return unixpath;
807}
808
809/**
810 * @brief Return whether whether the given name can be used as a filename or directory name.

Callers 1

WritePatchFileMethod · 0.85

Calls 2

replace_charFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected