MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / ReplaceSelection

Method ReplaceSelection

src/NppJsonViewer/ScintillaEditor.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void ScintillaEditor::ReplaceSelection(const std::string& text) const
70{
71 ::SendMessage(m_hScintilla, SCI_REPLACESEL, 0, reinterpret_cast<LPARAM>(text.c_str()));
72
73 // Restore the selection
74 MakeSelection(m_nStartPos, m_nStartPos + text.length());
75}
76
77void ScintillaEditor::MakeSelection(size_t start, size_t end) const
78{

Callers 4

FormatJsonMethod · 0.80
CompressJsonMethod · 0.80
SortJsonByKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected