MCPcopy Create free account
hub / github.com/axmolengine/axmol / convertPathFormatToUnixStyle

Function convertPathFormatToUnixStyle

core/platform/winrt/FileUtilsWinRT.cpp:45–50  ·  view source on GitHub ↗

D:\aaa\bbb\ccc\ddd\abc.txt --> D:/aaa/bbb/ccc/ddd/abc.txt D:\aaa\bbb\ccc\ddd\abc.txt --> D:/aaa/bbb/ccc/ddd/abc.txt

Source from the content-addressed store, hash-verified

43// D:\aaa\bbb\ccc\ddd\abc.txt --> D:/aaa/bbb/ccc/ddd/abc.txt
44// D:\aaa\bbb\ccc\ddd\abc.txt --> D:/aaa/bbb/ccc/ddd/abc.txt
45static std::string convertPathFormatToUnixStyle(const std::string_view& path)
46{
47 std::string ret{path};
48 std::replace(ret.begin(), ret.end(), '\\', '/');
49 return ret;
50}
51
52static std::string convertPathFormatToWinStyle(const std::string_view& path)
53{

Callers 3

getPathForFilenameMethod · 0.70
getAppPathMethod · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected