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

Method find_next

src/npp/NppInterface.cpp:181–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181TextPosition NppInterface::find_next(TextPosition from_position, const char *needle) {
182 Sci_TextToFind ttf;
183 ttf.chrg.cpMin = static_cast<Sci_PositionCR>(from_position);
184 ttf.chrg.cpMax = static_cast<Sci_PositionCR>(get_active_document_length());
185 ttf.lpstrText = needle;
186 return send_msg_to_scintilla(SCI_FINDTEXT, 0, reinterpret_cast<LPARAM>(&ttf));
187}
188
189void NppInterface::replace_text(TextPosition from, TextPosition to, std::string_view replacement) {
190 send_msg_to_scintilla(SCI_SETTARGETSTART, from);

Callers 1

replace_all_tokensFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected