MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / intersects

Method intersects

core/string/fuzzy_search.cpp:121–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121bool 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
128bool FuzzySearchResult::can_add_token_match(const FuzzyTokenMatch &p_match) const {
129 if (p_match.get_miss_count() > miss_budget) {

Callers 1

can_add_token_matchMethod · 0.45

Calls 1

_is_valid_intervalFunction · 0.85

Tested by

no test coverage detected