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

Method get_active_document_length

test/MockEditorInterface.cpp:258–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258TextPosition MockEditorInterface::get_active_document_length(
259 ) const {
260 auto doc = active_document();
261 if (!doc)
262 return -1;
263 return static_cast<TextPosition>(doc->cur.data.length());
264}
265
266TextPosition MockEditorInterface::get_line_length(int line) const {
267 size_t index = 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected