Searched refs:MatchPositions (Results 1 – 14 of 14) sorted by relevance
20 typedef std::vector<MatchPosition> MatchPositions; typedef27 const MatchPositions& match_positions);32 static MatchPositions ReplaceOffsetsInMatchPositions(33 const MatchPositions& match_positions,40 MatchPositions title_match_positions;43 MatchPositions url_match_positions;
18 const MatchPositions& match_positions) { in OffsetsFromMatchPositions()20 for (MatchPositions::const_iterator i = match_positions.begin(); in OffsetsFromMatchPositions()29 BookmarkMatch::MatchPositions BookmarkMatch::ReplaceOffsetsInMatchPositions( in ReplaceOffsetsInMatchPositions()30 const MatchPositions& match_positions, in ReplaceOffsetsInMatchPositions()33 MatchPositions new_match_positions; in ReplaceOffsetsInMatchPositions()35 for (MatchPositions::const_iterator match_iter = match_positions.begin(); in ReplaceOffsetsInMatchPositions()
108 BookmarkMatch::MatchPositions* matches) { in ExtractMatchPositions()125 const BookmarkMatch::MatchPositions& actual_positions, in ExpectMatchPositions()126 const BookmarkMatch::MatchPositions& expected_positions) { in ExpectMatchPositions()309 BookmarkMatch::MatchPositions expected_title_matches; in TEST_F()361 BookmarkMatch::MatchPositions expected_url_matches; in TEST_F()
218 query_parser::Snippet::MatchPositions title_matches, url_matches; in AddMatchToResults()
22 typedef std::vector<MatchPosition> MatchPositions; typedef39 MatchPositions* match_positions);45 Snippet::MatchPositions* match_positions);54 void ComputeSnippet(const MatchPositions& matches,58 const MatchPositions& matches() const { return matches_; } in matches()68 MatchPositions matches_;
36 void CoalesceMatchesFrom(size_t index, Snippet::MatchPositions* matches) { in CoalesceMatchesFrom()38 for (Snippet::MatchPositions::iterator i = matches->begin() + index + 1; in CoalesceMatchesFrom()82 Snippet::MatchPositions* match_positions) const OVERRIDE;121 Snippet::MatchPositions* match_positions) const { in HasMatchIn()166 Snippet::MatchPositions* match_positions) const OVERRIDE;218 Snippet::MatchPositions* match_positions) const { in HasMatchIn()254 Snippet::MatchPositions* match_positions) const OVERRIDE;300 Snippet::MatchPositions* match_positions) const { in HasMatchIn()358 Snippet::MatchPositions* match_positions) { in DoesQueryMatch()369 Snippet::MatchPositions matches; in DoesQueryMatch()[all …]
29 Snippet::MatchPositions* match_positions) { in CoalescePositionsFrom()45 Snippet::MatchPositions* match_positions) { in AddMatch()55 Snippet::MatchPositions::iterator i = in AddMatch()166 MatchPositions* match_positions) { in ExtractMatchPositions()189 Snippet::MatchPositions* match_positions) { in ConvertMatchPositionsToWide()195 for (Snippet::MatchPositions::iterator i = match_positions->begin(); in ConvertMatchPositionsToWide()212 void Snippet::ComputeSnippet(const MatchPositions& match_positions, in ComputeSnippet()
51 Snippet::MatchPositions* match_positions) const = 0;99 Snippet::MatchPositions* match_positions);112 static void SortAndCoalesceMatchPositions(Snippet::MatchPositions* matches);
106 Snippet::MatchPositions match_positions; in BuildSnippet()126 Snippet::MatchPositions::const_iterator match; in BuildSnippet()245 Snippet::MatchPositions matches; in TEST()
124 Snippet::MatchPositions match_positions; in TEST_F()
37 BookmarkMatch::MatchPositions* title_match_positions) { in CorrectTitleAndMatchPositions()43 for (query_parser::Snippet::MatchPositions::iterator it = in CorrectTitleAndMatchPositions()173 BookmarkMatch::MatchPositions new_title_match_positions = in BookmarkMatchToACMatch()197 BookmarkMatch::MatchPositions new_url_match_positions = in BookmarkMatchToACMatch()316 const query_parser::Snippet::MatchPositions& positions, in ClassificationsFromMatch()328 for (query_parser::Snippet::MatchPositions::const_iterator i = in ClassificationsFromMatch()
69 const query_parser::Snippet::MatchPositions& positions,
168 const query_parser::Snippet::MatchPositions& title_matches);185 const query_parser::Snippet::MatchPositions& title_match_positions() const { in title_match_positions()201 query_parser::Snippet::MatchPositions title_match_positions_;
71 const query_parser::Snippet::MatchPositions& title_matches) in URLResult()