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

Method InSelectionForEOL

scintilla/src/Selection.cxx:331–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331int Selection::InSelectionForEOL(int pos) const {
332 for (size_t i=0; i<ranges.size(); i++) {
333 if (!ranges[i].Empty() && (pos > ranges[i].Start().Position()) && (pos <= ranges[i].End().Position()))
334 return i == mainRange ? 1 : 2;
335 }
336 return 0;
337}
338
339int Selection::VirtualSpaceFor(int pos) const {
340 int virtualSpace = 0;

Callers 1

DrawEOLMethod · 0.80

Calls 5

sizeMethod · 0.80
PositionMethod · 0.80
EmptyMethod · 0.45
StartMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected