MCPcopy Create free account
hub / github.com/KDE/kdiff3 / lineWithin

Method lineWithin

src/selection.cpp:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool Selection::lineWithin(LineRef l) const
99{
100 if(!firstLine.isValid())
101 return false;
102 LineRef l1 = firstLine;
103 LineRef l2 = lastLine;
104
105 if(l1 > l2)
106 {
107 std::swap(l1, l2);
108 }
109
110 return (l1 <= l && l <= l2);
111}

Callers 3

getTextLayoutForLineMethod · 0.80
getSelectionMethod · 0.80
deleteSelectionMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected