MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getAllSelectedText

Method getAllSelectedText

src/eepp/ui/doc/textdocument.cpp:1417–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1415}
1416
1417String 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
1430String TextDocument::toString() {
1431 Lock l( mLinesMutex );

Callers 3

findAndReplaceMethod · 0.80
copyMethod · 0.80
cutMethod · 0.80

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected