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

Method searchInTarget

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

Source from the content-addressed store, hash-verified

328}
329
330intptr_t TextEditor::searchInTarget(QByteArray &text2Find, size_t fromPos, size_t toPos) const
331{
332 SendScintilla(SCI_SETTARGETRANGE, fromPos, toPos);
333 return SendScintilla(SCI_SEARCHINTARGET, text2Find.size(), reinterpret_cast<intptr_t>(text2Find.data()));
334}
335
336intptr_t TextEditor::replaceTarget(QByteArray &str2replace, intptr_t fromTargetPos, intptr_t toTargetPos) const
337{

Callers 1

doReplaceAllMethod · 0.80

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected