MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / CopyRangeToClipboard

Method CopyRangeToClipboard

scintilla/src/Editor.cxx:6170–6179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6168}
6169
6170void Editor::CopyRangeToClipboard ( int start, int end )
6171{
6172 start = pdoc->ClampPositionIntoDocument ( start );
6173 end = pdoc->ClampPositionIntoDocument ( end );
6174 SelectionText selectedText;
6175 std::string text = RangeText ( start, end );
6176 selectedText.Copy ( text.c_str(), end - start + 1,
6177 pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet, false, false );
6178 CopyToClipboard ( selectedText );
6179}
6180
6181void Editor::CopyText ( int length, const char *text )
6182{

Callers

nothing calls this directly

Calls 2

CopyMethod · 0.45

Tested by

no test coverage detected