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

Method is_opened

src/npp/NppInterface.cpp:118–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116bool NppInterface::open_document(std::wstring filename) { return send_msg_to_npp(NPPM_DOOPEN, 0, reinterpret_cast<LPARAM>(filename.data())) == TRUE; }
117
118bool NppInterface::is_opened(const std::wstring &filename) const {
119 auto filenames = get_open_filenames();
120 return std::find(filenames.begin(), filenames.end(), filename) != filenames.end();
121}
122
123EditorCodepage NppInterface::get_encoding() const {
124 auto CodepageId = static_cast<int>(send_msg_to_scintilla(SCI_GETCODEPAGE, 0, 0));

Callers

nothing calls this directly

Calls 3

findFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected