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

Method set_data_raw

test/MockEditorInterface.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void MockedDocumentInfo::set_data_raw(const std::string &data_arg) {
38 cur.data = data_arg;
39 cur.style.resize(cur.data.size());
40 cur.selection = {0, 0};
41 cursor_pos = 0;
42 for (auto &info : indicator_info)
43 std::fill(info.set_for.begin(), info.set_for.end(), false);
44}
45
46void MockedDocumentInfo::erase(TextPosition start, TextPosition length) {
47 cur.data.erase(cur.data.begin() + start, cur.data.begin() + start + length);

Callers 1

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected