| 119 | } |
| 120 | |
| 121 | bool FuzzyTokenMatch::intersects(const Vector2i &p_other_interval) const { |
| 122 | if (!_is_valid_interval(interval) || !_is_valid_interval(p_other_interval)) { |
| 123 | return false; |
| 124 | } |
| 125 | return interval.y >= p_other_interval.x && interval.x <= p_other_interval.y; |
| 126 | } |
| 127 | |
| 128 | bool FuzzySearchResult::can_add_token_match(const FuzzyTokenMatch &p_match) const { |
| 129 | if (p_match.get_miss_count() > miss_budget) { |
no test coverage detected