MCPcopy Create free account
hub / github.com/Rezonality/zep / OverlapInclusive

Function OverlapInclusive

src/buffer.cpp:1193–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191}
1192
1193bool OverlapInclusive(ByteRange r1, ByteRange r2)
1194{
1195 // -----aaaaa----
1196 // ---bbbbbbbbb-------
1197 if (r1.first <= r2.second && r2.first <= r1.second)
1198 {
1199 return true;
1200 }
1201 return false;
1202}
1203
1204void ZepBuffer::ForEachMarker(uint32_t markerType, Direction dir, const GlyphIterator& begin, const GlyphIterator& end, std::function<bool(const std::shared_ptr<RangeMarker>&)> fnCB) const
1205{

Callers 1

ForEachMarkerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected