| 179 | } |
| 180 | |
| 181 | TextPosition 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 | |
| 189 | void NppInterface::replace_text(TextPosition from, TextPosition to, std::string_view replacement) { |
| 190 | send_msg_to_scintilla(SCI_SETTARGETSTART, from); |
no outgoing calls
no test coverage detected