| 1424 | } |
| 1425 | |
| 1426 | std::string App::getCurrentFileDir() const { |
| 1427 | if ( mSplitter && mSplitter->curEditorIsNotNull() && mSplitter->curEditorExists() && |
| 1428 | mSplitter->getCurEditor()->hasDocument() && |
| 1429 | mSplitter->getCurEditor()->getDocument().hasFilepath() ) { |
| 1430 | return mSplitter->getCurEditor()->getDocument().getFileInfo().getDirectoryPath(); |
| 1431 | } |
| 1432 | |
| 1433 | if ( !mCurrentProject.empty() && mCurrentProject != mPlaygroundPath ) |
| 1434 | return mCurrentProject; |
| 1435 | |
| 1436 | return ""; |
| 1437 | } |
| 1438 | |
| 1439 | std::vector<std::pair<String::StringBaseType, String::StringBaseType>> |
| 1440 | App::makeAutoClosePairs( const std::string& strPairs ) { |
no test coverage detected