MCPcopy Create free account
hub / github.com/davy7125/polyphone / fixFilePath

Method fixFilePath

sources/core/utils.cpp:265–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265QString Utils::fixFilePath(QString filePath)
266{
267 filePath = filePath.replace('\\', '/');
268 if (filePath.left(7).compare("file://") == 0)
269 filePath = filePath.right(filePath.length() - 7);
270#ifdef Q_OS_WIN
271 if (filePath.size() > 2 && filePath[0] == '/' && filePath[1] != '/')
272 filePath = filePath.remove(0, 1);
273#endif
274 return filePath;
275}
276
277QString Utils::removeForbiddenFilePathCharacters(QString str)
278{

Callers

nothing calls this directly

Calls 3

replaceMethod · 0.80
sizeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected