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

Method imeTextEditing

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

Source from the content-addressed store, hash-verified

2366}
2367
2368void TextDocument::imeTextEditing( const String& text ) {
2369 for ( size_t i = 0; i < mSelection.size(); ++i ) {
2370 if ( mSelection[i].hasSelection() )
2371 deleteTo( i, 0 );
2372 TextPosition tp( insert( i, getSelectionIndex( i ).start(), text ) );
2373 setSelection( i, { positionOffset( tp, -text.size() ), tp } );
2374 }
2375}
2376
2377void TextDocument::registerClient( Client* client ) {
2378 Lock l( mClientsMutex );

Callers 3

onTextEditingMethod · 0.80
onTextEditingMethod · 0.80
onTextEditingMethod · 0.80

Calls 4

insertFunction · 0.85
sizeMethod · 0.45
hasSelectionMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected