Home
last modified time | relevance | path

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

123456

/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/components/query_parser/
H A Dsnippet.cc38 match_positions->erase(match_positions->begin() + offset); in CoalescePositionsFrom()
49 DCHECK(match_positions); in AddMatch()
51 if (match_positions->empty()) { in AddMatch()
52 match_positions->push_back(pair); in AddMatch()
57 auto i = std::lower_bound(match_positions->begin(), match_positions->end(), in AddMatch()
66 CoalescePositionsFrom(i - match_positions->begin(), match_positions); in AddMatch()
80 CoalescePositionsFrom(i - match_positions->begin(), match_positions); in AddMatch()
90 CoalescePositionsFrom(i - match_positions->begin(), match_positions); in AddMatch()
168 DCHECK(match_positions); in ExtractMatchPositions()
191 DCHECK(match_positions); in ConvertMatchPositionsToWide()
[all …]
H A Dquery_parser_unittest.cc128 Snippet::MatchPositions match_positions; in TEST_F() local
131 query_nodes, &match_positions)); in TEST_F()
134 ASSERT_TRUE(match_positions.size() >= 1); in TEST_F()
135 EXPECT_EQ(data[i].m1_start, match_positions[0].first); in TEST_F()
136 EXPECT_EQ(data[i].m1_end, match_positions[0].second); in TEST_F()
140 ASSERT_TRUE(match_positions.size() == 1 + offset); in TEST_F()
141 EXPECT_EQ(data[i].m2_start, match_positions[offset].first); in TEST_F()
142 EXPECT_EQ(data[i].m2_end, match_positions[offset].second); in TEST_F()
H A Dsnippet_unittest.cc107 Snippet::MatchPositions match_positions; in BuildSnippet() local
108 match_positions.clear(); in BuildSnippet()
114 match_positions.push_back(std::make_pair(ofs, ofs + word.size())); in BuildSnippet()
119 std::sort(match_positions.begin(), match_positions.end(), ComparePair1st); in BuildSnippet()
123 snippet.ComputeSnippet(match_positions, document); in BuildSnippet()
H A Dquery_parser.cc83 Snippet::MatchPositions* match_positions) const override;
126 Snippet::MatchPositions* match_positions) const { in HasMatchIn()
131 match_positions->push_back( in HasMatchIn()
170 Snippet::MatchPositions* match_positions) const override;
222 Snippet::MatchPositions* match_positions) const { in HasMatchIn()
256 Snippet::MatchPositions* match_positions) const override;
302 Snippet::MatchPositions* match_positions) const { in HasMatchIn()
307 match_positions->push_back( in HasMatchIn()
367 Snippet::MatchPositions* match_positions) { in DoesQueryMatch() argument
388 match_positions->clear(); in DoesQueryMatch()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/components/query_parser/
H A Dsnippet.cc38 match_positions->erase(match_positions->begin() + offset); in CoalescePositionsFrom()
49 DCHECK(match_positions); in AddMatch()
51 if (match_positions->empty()) { in AddMatch()
52 match_positions->push_back(pair); in AddMatch()
57 auto i = std::lower_bound(match_positions->begin(), match_positions->end(), in AddMatch()
66 CoalescePositionsFrom(i - match_positions->begin(), match_positions); in AddMatch()
80 CoalescePositionsFrom(i - match_positions->begin(), match_positions); in AddMatch()
90 CoalescePositionsFrom(i - match_positions->begin(), match_positions); in AddMatch()
168 DCHECK(match_positions); in ExtractMatchPositions()
191 DCHECK(match_positions); in ConvertMatchPositionsToWide()
[all …]
H A Dquery_parser_unittest.cc128 Snippet::MatchPositions match_positions; in TEST_F() local
131 query_nodes, &match_positions)); in TEST_F()
134 ASSERT_TRUE(match_positions.size() >= 1); in TEST_F()
135 EXPECT_EQ(data[i].m1_start, match_positions[0].first); in TEST_F()
136 EXPECT_EQ(data[i].m1_end, match_positions[0].second); in TEST_F()
140 ASSERT_TRUE(match_positions.size() == 1 + offset); in TEST_F()
141 EXPECT_EQ(data[i].m2_start, match_positions[offset].first); in TEST_F()
142 EXPECT_EQ(data[i].m2_end, match_positions[offset].second); in TEST_F()
H A Dsnippet_unittest.cc107 Snippet::MatchPositions match_positions; in BuildSnippet() local
108 match_positions.clear(); in BuildSnippet()
114 match_positions.push_back(std::make_pair(ofs, ofs + word.size())); in BuildSnippet()
119 std::sort(match_positions.begin(), match_positions.end(), ComparePair1st); in BuildSnippet()
123 snippet.ComputeSnippet(match_positions, document); in BuildSnippet()
H A Dquery_parser.cc84 Snippet::MatchPositions* match_positions) const override;
127 Snippet::MatchPositions* match_positions) const { in HasMatchIn()
132 match_positions->push_back( in HasMatchIn()
171 Snippet::MatchPositions* match_positions) const override;
223 Snippet::MatchPositions* match_positions) const { in HasMatchIn()
257 Snippet::MatchPositions* match_positions) const override;
303 Snippet::MatchPositions* match_positions) const { in HasMatchIn()
308 match_positions->push_back( in HasMatchIn()
368 Snippet::MatchPositions* match_positions) { in DoesQueryMatch() argument
389 match_positions->clear(); in DoesQueryMatch()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/components/bookmarks/browser/
H A Dtitled_url_match_unittest.cc21 MatchPositions match_positions = {{1, 3}, {4, 5}, {10, 15}}; in TEST() local
23 auto offsets = TitledUrlMatch::OffsetsFromMatchPositions(match_positions); in TEST()
29 auto match_positions = TitledUrlMatch::ReplaceOffsetsInMatchPositions( in TEST() local
31 EXPECT_TRUE(match_positions.empty()); in TEST()
38 auto match_positions = TitledUrlMatch::ReplaceOffsetsInMatchPositions( in TEST() local
40 EXPECT_TRUE(std::equal(match_positions.begin(), match_positions.end(), in TEST()
55 auto match_positions = TitledUrlMatch::ReplaceOffsetsInMatchPositions( in TEST() local
57 EXPECT_TRUE(std::equal(match_positions.begin(), match_positions.end(), in TEST()
H A Dtitled_url_match.cc20 const MatchPositions& match_positions) { in OffsetsFromMatchPositions() argument
22 for (auto i = match_positions.begin(); i != match_positions.end(); ++i) { in OffsetsFromMatchPositions()
31 const MatchPositions& match_positions, in ReplaceOffsetsInMatchPositions() argument
33 DCHECK_EQ(2 * match_positions.size(), offsets.size()); in ReplaceOffsetsInMatchPositions()
36 for (auto match_iter = match_positions.begin(); in ReplaceOffsetsInMatchPositions()
37 match_iter != match_positions.end(); ++match_iter, ++offset_iter) { in ReplaceOffsetsInMatchPositions()
H A Dtitled_url_match.h30 const MatchPositions& match_positions);
36 const MatchPositions& match_positions,
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/components/bookmarks/browser/
H A Dtitled_url_match_unittest.cc21 MatchPositions match_positions = {{1, 3}, {4, 5}, {10, 15}}; in TEST() local
23 auto offsets = TitledUrlMatch::OffsetsFromMatchPositions(match_positions); in TEST()
29 auto match_positions = TitledUrlMatch::ReplaceOffsetsInMatchPositions( in TEST() local
31 EXPECT_TRUE(match_positions.empty()); in TEST()
38 auto match_positions = TitledUrlMatch::ReplaceOffsetsInMatchPositions( in TEST() local
40 EXPECT_TRUE(std::equal(match_positions.begin(), match_positions.end(), in TEST()
55 auto match_positions = TitledUrlMatch::ReplaceOffsetsInMatchPositions( in TEST() local
57 EXPECT_TRUE(std::equal(match_positions.begin(), match_positions.end(), in TEST()
H A Dtitled_url_match.cc20 const MatchPositions& match_positions) { in OffsetsFromMatchPositions() argument
22 for (auto i = match_positions.begin(); i != match_positions.end(); ++i) { in OffsetsFromMatchPositions()
31 const MatchPositions& match_positions, in ReplaceOffsetsInMatchPositions() argument
33 DCHECK_EQ(2 * match_positions.size(), offsets.size()); in ReplaceOffsetsInMatchPositions()
36 for (auto match_iter = match_positions.begin(); in ReplaceOffsetsInMatchPositions()
37 match_iter != match_positions.end(); ++match_iter, ++offset_iter) { in ReplaceOffsetsInMatchPositions()
H A Dtitled_url_match.h30 const MatchPositions& match_positions);
36 const MatchPositions& match_positions,
/dports/textproc/fzy/fzy-1.0/test/
H A Dtest_match.c136 match_positions("amo", "app/models/foo", positions); in positions_consecutive()
150 match_positions("amor", "app/models/order", positions); in positions_start_of_word()
161 match_positions("as", "tags", positions); in positions_no_bonuses()
165 match_positions("as", "examples.txt", positions); in positions_no_bonuses()
174 match_positions("abc", "a/a/b/c/c", positions); in positions_multiple_candidates_start_of_words()
184 match_positions("foo", "foo", positions); in positions_exact_match()
/dports/www/firefox-esr/firefox-91.8.0/gfx/harfbuzz/src/
H A Dhb-aat-layout-morx-table.hh476 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
479 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
513 …if (unlikely (!buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]))) retu… in transition()
541 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
546 …if (unlikely (!buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]))… in transition()
551 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
570 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/java.desktop/share/native/libharfbuzz/
H A Dhb-aat-layout-morx-table.hh465 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
468 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
502 buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]); in transition()
530 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
535 buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]); in transition()
540 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
559 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/java.desktop/share/native/libfontmanager/harfbuzz/
H A Dhb-aat-layout-morx-table.hh465 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
468 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
502 buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]); in transition()
530 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
535 buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]); in transition()
540 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
559 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/java.desktop/share/native/libharfbuzz/
H A Dhb-aat-layout-morx-table.hh465 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
468 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
502 buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]); in transition()
530 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
535 buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]); in transition()
540 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
559 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/harfbuzz-ng/src/src/
H A Dhb-aat-layout-morx-table.hh465 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
468 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
502 buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]); in transition()
530 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
535 buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]); in transition()
540 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
559 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/www/firefox/firefox-99.0/gfx/harfbuzz/src/
H A Dhb-aat-layout-morx-table.hh476 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
479 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
513 …if (unlikely (!buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]))) retu… in transition()
541 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
546 …if (unlikely (!buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]))… in transition()
551 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
570 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/mail/thunderbird/thunderbird-91.8.0/gfx/harfbuzz/src/
H A Dhb-aat-layout-morx-table.hh476 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
479 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
513 …if (unlikely (!buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]))) retu… in transition()
541 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
546 …if (unlikely (!buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]))… in transition()
551 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
570 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/rustybuzz-0.1.1/harfbuzz/src/
H A Dhb-aat-layout-morx-table.hh443match_positions[(match_length - 1u) % ARRAY_LENGTH(match_positions)] == buffer->out_len) in transition()
446 match_positions[match_length++ % ARRAY_LENGTH(match_positions)] = buffer->out_len; in transition()
477 buffer->move_to(match_positions[--cursor % ARRAY_LENGTH(match_positions)]); in transition()
510match_positions[(match_length - 1u) % ARRAY_LENGTH(match_positions)] + 1u; in transition()
514 … buffer->move_to(match_positions[--match_length % ARRAY_LENGTH(match_positions)]); in transition()
519 … buffer->merge_out_clusters(match_positions[cursor % ARRAY_LENGTH(match_positions)], in transition()
539 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/print/harfbuzz-icu/harfbuzz-3.4.0/src/
H A Dhb-aat-layout-morx-table.hh476 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
479 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
513 …if (unlikely (!buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]))) retu… in transition()
541 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
546 …if (unlikely (!buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]))… in transition()
551 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
570 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member
/dports/print/harfbuzz/harfbuzz-3.4.0/src/
H A Dhb-aat-layout-morx-table.hh476 …if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffe… in transition()
479 match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len; in transition()
513 …if (unlikely (!buffer->move_to (match_positions[--cursor % ARRAY_LENGTH (match_positions)]))) retu… in transition()
541 … unsigned int lig_end = match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] + 1u; in transition()
546 …if (unlikely (!buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]))… in transition()
551 …buffer->merge_out_clusters (match_positions[cursor % ARRAY_LENGTH (match_positions)], buffer->out_… in transition()
570 unsigned int match_positions[HB_MAX_CONTEXT_LENGTH]; member

123456