MCPcopy Create free account
hub / github.com/cxasm/notepad-- / getRegularFilePath

Function getRegularFilePath

src/cceditor/ccnotepad.cpp:2473–2482  ·  view source on GitHub ↗

为了避免路径中\\不一样导致的查找不到问题,进行统一替换

Source from the content-addressed store, hash-verified

2471
2472//为了避免路径中\\不一样导致的查找不到问题,进行统一替换
2473QString getRegularFilePath(QString& path)
2474{
2475#ifdef _WIN32
2476 path = path.replace("/", "\\");
2477#else
2478 path = path.replace("\\", "/");
2479#endif
2480
2481 return path;
2482}
2483
2484void CCNotePad::slot_showFileInExplorer()
2485{

Callers 14

findFileIsOpenAtPadMethod · 0.85
openTextFileMethod · 0.85
openHexFileMethod · 0.85
tryRestoreFileMethod · 0.85
openFileMethod · 0.85
addWatchFilePathMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected