MCPcopy Create free account
hub / github.com/buggins/coolreader / checkIntersection

Method checkIntersection

crengine/src/lvtinydom.cpp:5386–5395  ·  view source on GitHub ↗

returns true if this interval intersects specified interval

Source from the content-addressed store, hash-verified

5384
5385/// returns true if this interval intersects specified interval
5386bool ldomXRange::checkIntersection( ldomXRange & v )
5387{
5388 if ( isNull() || v.isNull() )
5389 return false;
5390 if ( _end.compare( v._start ) < 0 )
5391 return false;
5392 if ( _start.compare( v._end ) > 0 )
5393 return false;
5394 return true;
5395}
5396
5397/// create list by filtering existing list, to get only values which intersect filter range
5398ldomXRangeList::ldomXRangeList( ldomXRangeList & srcList, ldomXRange & filter )

Callers 2

ldomXRangeListMethod · 0.80
splitMethod · 0.80

Calls 2

isNullMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected