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

Method indicator_fill_range

test/MockEditorInterface.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void MockEditorInterface::indicator_fill_range(TextPosition from,
125 TextPosition to) {
126 auto doc = active_document();
127 if (!doc)
128 return;
129 auto &s = doc->indicator_info[doc->current_indicator].set_for;
130 if (to >= static_cast<int>(s.size()))
131 s.resize(to + 1);
132 std::fill(s.begin() + from, s.begin() + to, true);
133}
134
135void MockEditorInterface::indicator_clear_range(TextPosition from,
136 TextPosition to) {

Callers 1

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected