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

Method getPartialSymbol

src/tools/ecode/plugins/autocomplete/autocompleteplugin.cpp:1020–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1018}
1019
1020std::string AutoCompletePlugin::getPartialSymbol( TextDocument* doc ) {
1021 TextPosition end = doc->getSelection().end();
1022 TextPosition start = doc->startOfWord( end );
1023 return doc->getText( { start, end } ).toUtf8();
1024}
1025
1026void AutoCompletePlugin::update( UICodeEditor* ) {
1027 if ( mClock.getElapsedTime() >= mUpdateFreq || mDirty ) {

Callers

nothing calls this directly

Calls 5

startOfWordMethod · 0.80
toUtf8Method · 0.80
endMethod · 0.45
getSelectionMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected