MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / replaceTarget

Method replaceTarget

src/plugins/codeeditor/gui/texteditor.cpp:336–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336intptr_t TextEditor::replaceTarget(QByteArray &str2replace, intptr_t fromTargetPos, intptr_t toTargetPos) const
337{
338 if (fromTargetPos != -1 || toTargetPos != -1)
339 SendScintilla(SCI_SETTARGETRANGE, fromTargetPos, toTargetPos);
340
341 return SendScintilla(SCI_REPLACETARGET, str2replace.size(), reinterpret_cast<intptr_t>(str2replace.data()));
342}
343
344int TextEditor::currentLineNumber()
345{

Callers 1

doReplaceAllMethod · 0.80

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected