/external/chromium_org/components/query_parser/ |
D | snippet.cc | 29 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 …]
|
D | query_parser_unittest.cc | 124 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()
|
D | snippet_unittest.cc | 105 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()
|
D | query_parser.cc | 82 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 …]
|
D | snippet.h | 39 MatchPositions* match_positions); 45 Snippet::MatchPositions* match_positions);
|
D | query_parser.h | 51 Snippet::MatchPositions* match_positions) const = 0; 99 Snippet::MatchPositions* match_positions);
|
/external/chromium_org/components/bookmarks/browser/ |
D | bookmark_match.cc | 18 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()
|
D | bookmark_match.h | 27 const MatchPositions& match_positions); 33 const MatchPositions& match_positions,
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
D | hb-ot-layout-gsubgpos-private.hh | 717 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 …]
|
D | hb-ot-layout-gsub-table.hh | 633 unsigned int match_positions[MAX_CONTEXT_LENGTH]; in apply() local 640 match_positions, in apply() 647 match_positions, in apply()
|
/external/harfbuzz_ng/src/ |
D | hb-ot-layout-gsubgpos-private.hh | 715 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 …]
|
D | hb-ot-layout-gsub-table.hh | 653 unsigned int match_positions[MAX_CONTEXT_LENGTH]; in apply() local 660 match_positions, in apply() 667 match_positions, in apply()
|