MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / removeSeparator

Function removeSeparator

src/installer/gui/windows/utils/path.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22wstring removeSeparator(const wstring &fileName)
23{
24 if (fileName.empty() || !(fileName.ends_with(L'\\') || fileName.ends_with(L'/'))) {
25 return fileName;
26 }
27
28 return fileName.substr(0, fileName.size() - 1);
29}
30
31wstring extractName(const wstring &fileName)
32{

Callers 3

equivalentFunction · 0.85
isSystemProtectedFunction · 0.85
setPathMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected