Home
last modified time | relevance | path

Searched refs:match_positions (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/components/query_parser/
Dsnippet.cc29 Snippet::MatchPositions* match_positions) { in CoalescePositionsFrom() argument
30 DCHECK(offset < match_positions->size()); in CoalescePositionsFrom()
31 Snippet::MatchPosition& pair((*match_positions)[offset]); in CoalescePositionsFrom()
33 while (offset < match_positions->size() && in CoalescePositionsFrom()
34 pair.second >= (*match_positions)[offset].first) { in CoalescePositionsFrom()
35 pair.second = std::max(pair.second, (*match_positions)[offset].second); in CoalescePositionsFrom()
36 match_positions->erase(match_positions->begin() + offset); in CoalescePositionsFrom()
45 Snippet::MatchPositions* match_positions) { in AddMatch() argument
47 DCHECK(match_positions); in AddMatch()
49 if (match_positions->empty()) { in AddMatch()
[all …]
Dquery_parser_unittest.cc124 Snippet::MatchPositions match_positions; in TEST_F() local
128 &match_positions)); in TEST_F()
131 ASSERT_TRUE(match_positions.size() >= 1); in TEST_F()
132 EXPECT_EQ(data[i].m1_start, match_positions[0].first); in TEST_F()
133 EXPECT_EQ(data[i].m1_end, match_positions[0].second); in TEST_F()
137 ASSERT_TRUE(match_positions.size() == 1 + offset); in TEST_F()
138 EXPECT_EQ(data[i].m2_start, match_positions[offset].first); in TEST_F()
139 EXPECT_EQ(data[i].m2_end, match_positions[offset].second); in TEST_F()
Dsnippet_unittest.cc105 Snippet::MatchPositions match_positions; in BuildSnippet() local
106 match_positions.clear(); in BuildSnippet()
112 match_positions.push_back(std::make_pair(ofs, ofs + qw->size())); in BuildSnippet()
117 std::sort(match_positions.begin(), match_positions.end(), ComparePair1st); in BuildSnippet()
121 snippet.ComputeSnippet(match_positions, document); in BuildSnippet()
Dquery_parser.cc82 Snippet::MatchPositions* match_positions) const OVERRIDE;
121 Snippet::MatchPositions* match_positions) const { in HasMatchIn()
126 match_positions->push_back( 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()
305 match_positions->push_back( in HasMatchIn()
358 Snippet::MatchPositions* match_positions) { in DoesQueryMatch() argument
379 match_positions->clear(); in DoesQueryMatch()
[all …]
Dsnippet.h39 MatchPositions* match_positions);
45 Snippet::MatchPositions* match_positions);
Dquery_parser.h51 Snippet::MatchPositions* match_positions) const = 0;
99 Snippet::MatchPositions* match_positions);
/external/chromium_org/components/bookmarks/browser/
Dbookmark_match.cc18 const MatchPositions& match_positions) { in OffsetsFromMatchPositions() argument
20 for (MatchPositions::const_iterator i = match_positions.begin(); in OffsetsFromMatchPositions()
21 i != match_positions.end(); ++i) { in OffsetsFromMatchPositions()
30 const MatchPositions& match_positions, in ReplaceOffsetsInMatchPositions() argument
32 DCHECK_EQ(2 * match_positions.size(), offsets.size()); in ReplaceOffsetsInMatchPositions()
35 for (MatchPositions::const_iterator match_iter = match_positions.begin(); in ReplaceOffsetsInMatchPositions()
36 match_iter != match_positions.end(); ++match_iter, ++offset_iter) { in ReplaceOffsetsInMatchPositions()
Dbookmark_match.h27 const MatchPositions& match_positions);
33 const MatchPositions& match_positions,
/external/chromium_org/third_party/harfbuzz-ng/src/
Dhb-ot-layout-gsubgpos-private.hh717 unsigned int match_positions[MAX_CONTEXT_LENGTH], in match_input()
757 match_positions[0] = buffer->idx; in match_input()
762 match_positions[i] = skippy_iter.idx; in match_input()
797 unsigned int match_positions[MAX_CONTEXT_LENGTH], /* Including the first glyph */ in ligate_input()
856 while (buffer->idx < match_positions[i]) in ligate_input()
955 unsigned int match_positions[MAX_CONTEXT_LENGTH], /* Including the first glyph */ in apply_lookup()
974 match_positions[j] += delta; in apply_lookup()
983 buffer->move_to (match_positions[idx]); in apply_lookup()
998 end = MAX ((int) match_positions[idx] + 1, int (end) + delta); in apply_lookup()
1015 memmove (match_positions + next + delta, match_positions + next, in apply_lookup()
[all …]
Dhb-ot-layout-gsub-table.hh633 unsigned int match_positions[MAX_CONTEXT_LENGTH]; in apply() local
640 match_positions, in apply()
647 match_positions, in apply()
/external/harfbuzz_ng/src/
Dhb-ot-layout-gsubgpos-private.hh715 unsigned int match_positions[MAX_CONTEXT_LENGTH], in match_input()
755 match_positions[0] = buffer->idx; in match_input()
760 match_positions[i] = skippy_iter.idx; in match_input()
795 unsigned int match_positions[MAX_CONTEXT_LENGTH], /* Including the first glyph */ in ligate_input()
854 while (buffer->idx < match_positions[i]) in ligate_input()
954 unsigned int match_positions[MAX_CONTEXT_LENGTH], /* Including the first glyph */ in apply_lookup()
973 match_positions[j] += delta; in apply_lookup()
982 buffer->move_to (match_positions[idx]); in apply_lookup()
999 end = MAX ((int) match_positions[idx] + 1, int (end) + delta); in apply_lookup()
1016 memmove (match_positions + next + delta, match_positions + next, in apply_lookup()
[all …]
Dhb-ot-layout-gsub-table.hh653 unsigned int match_positions[MAX_CONTEXT_LENGTH]; in apply() local
660 match_positions, in apply()
667 match_positions, in apply()