Lines Matching full:pair
27 // or touch the pair at offset.
31 Snippet::MatchPosition& pair((*match_positions)[offset]);
34 pair.second >= (*match_positions)[offset].first) {
35 pair.second = std::max(pair.second, (*match_positions)[offset].second);
40 // Makes sure there is a pair in match_positions that contains the specified
48 Snippet::MatchPosition pair(start, end);
50 match_positions->push_back(pair);
57 pair, &PairFirstLessThan);
59 // Match not at the end and there is already a pair with the same
62 // New pair extends beyond existing pair. Extend existing pair and
66 } // else case, new pair completely contained in existing pair, nothing
69 // Match at the beginning and the first pair doesn't have the same
70 // start. Insert new pair and coalesce matches after it.
71 match_positions->insert(i, pair);
85 match_positions->insert(i, pair);