isOverlapping static method

bool isOverlapping(
  1. TextMatch a,
  2. TextMatch b
)

Implementation

static bool isOverlapping(TextMatch a, TextMatch b) {
  return !(a.end <= b.start || b.end <= a.start);
}