MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / backSlashToForwardSlash

Function backSlashToForwardSlash

FastCopy/RobocopyViewModel.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 static auto backSlashToForwardSlash(std::wstring_view path)
50 {
51 std::wstring transformed;
52 std::transform(path.begin(), path.end(), std::back_inserter(transformed), [](wchar_t c)
53 {
54 return c == L'\\' ? L'/' : c;
55 });
56 return transformed;
57 }
58 winrt::Windows::Foundation::Uri RobocopyViewModel::DestinationUri()
59 {
60 return winrt::Windows::Foundation::Uri{

Callers 1

DestinationUriMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected