MCPcopy Create free account
hub / github.com/Artikash/Textractor / Save

Method Save

extensions/regexfilter.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43private:
44 void Save()
45 {
46 auto formatted = FormatString(
47 L"\xfeff|PROCESS|%s|FILTER|%s|END|\r\n",
48 GetModuleFilename(GetSelectedProcessId()).value_or(FormatString(L"Error getting name of process 0x%X", GetSelectedProcessId())),
49 S(ui.regexEdit->text())
50 );
51 std::ofstream(REGEX_SAVE_FILE, std::ios::binary | std::ios::app).write((const char*)formatted.c_str(), formatted.size() * sizeof(wchar_t));
52 }
53
54 Ui::FilterWindow ui;
55} window;

Callers

nothing calls this directly

Calls 3

FormatStringFunction · 0.85
GetModuleFilenameFunction · 0.85
SFunction · 0.85

Tested by

no test coverage detected