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

Method get_active_document_text

src/npp/NppInterface.cpp:223–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221TextPosition NppInterface::get_document_line_count() const { return send_msg_to_scintilla(SCI_GETLINECOUNT); }
222
223std::string NppInterface::get_active_document_text() const {
224 TARGET_VIEW_BLOCK(*this, static_cast<int> (m_target_view));
225 auto buf_len = get_active_document_length() + 1;
226 std::vector<char> buf(buf_len);
227 send_msg_to_scintilla(SCI_GETTEXT, buf_len, reinterpret_cast<LPARAM>(buf.data()));
228 return buf.data();
229}
230
231std::wstring NppInterface::get_full_current_path() const {
232 std::vector<wchar_t> full_path(MAX_PATH);

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected