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

Method get_encoding

src/npp/NppInterface.cpp:123–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123EditorCodepage NppInterface::get_encoding() const {
124 auto CodepageId = static_cast<int>(send_msg_to_scintilla(SCI_GETCODEPAGE, 0, 0));
125 if (CodepageId == SC_CP_UTF8)
126 return EditorCodepage::utf8;
127
128 return EditorCodepage::ansi;
129}
130
131void NppInterface::activate_document(int index) { send_msg_to_npp(NPPM_ACTIVATEDOC, to_index(m_target_view), index); }
132

Callers 3

process_replaceMethod · 0.45
SuggestMgrMethod · 0.45
HunspellImplMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected