MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / replace_text

Method replace_text

src/npp/NppInterface.cpp:189–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void NppInterface::replace_text(TextPosition from, TextPosition to, std::string_view replacement) {
190 send_msg_to_scintilla(SCI_SETTARGETSTART, from);
191 send_msg_to_scintilla(SCI_SETTARGETEND, to);
192 send_msg_to_scintilla(SCI_REPLACETARGET, replacement.size(), reinterpret_cast<LPARAM>(replacement.data()));
193}
194
195void NppInterface::set_selection(TextPosition from, TextPosition to) { post_msg_to_scintilla(SCI_SETSEL, from, to); }
196

Callers 4

replace_all_tokensFunction · 0.45
process_replaceMethod · 0.45
process_replace_allMethod · 0.45

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected