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

Method set_data

test/MockEditorInterface.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <filesystem>
23
24void MockedDocumentInfo::set_data(const std::wstring &data_arg) {
25 switch (codepage) {
26 case EditorCodepage::ansi:
27 set_data_raw(to_string(data_arg));
28 break;
29 case EditorCodepage::utf8:
30 set_data_raw(to_utf8_string(data_arg));
31 break;
32 case EditorCodepage::COUNT:
33 break;
34 }
35}
36
37void MockedDocumentInfo::set_data_raw(const std::string &data_arg) {
38 cur.data = data_arg;

Callers 2

open_virtual_documentMethod · 0.80

Calls 2

to_utf8_stringFunction · 0.85
to_stringFunction · 0.50

Tested by

no test coverage detected