| 1191 | } |
| 1192 | |
| 1193 | bool 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 | |
| 1204 | void ZepBuffer::ForEachMarker(uint32_t markerType, Direction dir, const GlyphIterator& begin, const GlyphIterator& end, std::function<bool(const std::shared_ptr<RangeMarker>&)> fnCB) const |
| 1205 | { |