| 1415 | } |
| 1416 | |
| 1417 | String TextDocument::getAllSelectedText() const { |
| 1418 | String text; |
| 1419 | for ( size_t i = 0; i < mSelection.size(); ++i ) { |
| 1420 | String sel( getSelectedText( i ) ); |
| 1421 | if ( !sel.empty() ) { |
| 1422 | text += std::move( sel ); |
| 1423 | if ( i != mSelection.size() - 1 ) |
| 1424 | text += "\n"; |
| 1425 | } |
| 1426 | } |
| 1427 | return text; |
| 1428 | } |
| 1429 | |
| 1430 | String TextDocument::toString() { |
| 1431 | Lock l( mLinesMutex ); |
no test coverage detected