Home
last modified time | relevance | path

Searched refs:TrieMatch (Results 1 – 9 of 9) sorted by relevance

/external/libtextclassifier/utils/sentencepiece/
Dsorted_strings_table_test.cc36 std::vector<TrieMatch> matches; in TEST()
46 std::vector<TrieMatch> matches; in TEST()
52 std::vector<TrieMatch> matches; in TEST()
58 std::vector<TrieMatch> matches; in TEST()
64 std::vector<TrieMatch> matches; in TEST()
70 std::vector<TrieMatch> matches; in TEST()
76 std::vector<TrieMatch> matches; in TEST()
82 std::vector<TrieMatch> matches; in TEST()
89 TrieMatch match; in TEST()
95 TrieMatch match; in TEST()
[all …]
Ddouble_array_trie_test.cc42 std::vector<TrieMatch> matches; in TEST()
52 std::vector<TrieMatch> matches; in TEST()
58 std::vector<TrieMatch> matches; in TEST()
64 std::vector<TrieMatch> matches; in TEST()
70 std::vector<TrieMatch> matches; in TEST()
76 std::vector<TrieMatch> matches; in TEST()
82 std::vector<TrieMatch> matches; in TEST()
89 TrieMatch match; in TEST()
95 TrieMatch match; in TEST()
101 TrieMatch match; in TEST()
[all …]
Dsorted_strings_table.cc25 StringPiece input, const std::function<void(TrieMatch)>& update_fn) const { in GatherPrefixMatches()
68 update_fn(TrieMatch(/*id=*/left, in GatherPrefixMatches()
89 update_fn(TrieMatch(/*id=*/i, in GatherPrefixMatches()
96 StringPiece input, std::vector<TrieMatch>* matches) const { in FindAllPrefixMatches()
98 input, [matches](const TrieMatch match) { matches->push_back(match); }); in FindAllPrefixMatches()
103 TrieMatch* longest_match) const { in LongestPrefixMatch()
104 *longest_match = TrieMatch(); in LongestPrefixMatch()
105 GatherPrefixMatches(input, [longest_match](const TrieMatch match) { in LongestPrefixMatch()
Ddouble_array_trie.cc23 StringPiece input, const std::function<void(TrieMatch)>& update_fn) const { in GatherPrefixMatches()
49 update_fn(TrieMatch(/*id=*/value(pos), /*match_length=*/i + 1)); in GatherPrefixMatches()
56 StringPiece input, std::vector<TrieMatch>* matches) const { in FindAllPrefixMatches()
58 input, [matches](const TrieMatch match) { matches->push_back(match); }); in FindAllPrefixMatches()
62 TrieMatch* longest_match) const { in LongestPrefixMatch()
63 *longest_match = TrieMatch(); in LongestPrefixMatch()
64 return GatherPrefixMatches(input, [longest_match](const TrieMatch match) { in LongestPrefixMatch()
Dmatcher.h25 struct TrieMatch { struct
26 TrieMatch() {} in TrieMatch() function
27 TrieMatch(int id, int match_length) : id(id), match_length(match_length) {} in TrieMatch() argument
38 std::vector<TrieMatch>* matches) const = 0; argument
42 TrieMatch* longest_match) const = 0;
Dsorted_strings_table.h50 std::vector<TrieMatch>* matches) const override;
53 TrieMatch* longest_match) const override;
57 StringPiece input, const std::function<void(TrieMatch)>& update_fn) const;
Ddouble_array_trie.h50 std::vector<TrieMatch>* matches) const override;
53 TrieMatch* longest_match) const override;
77 StringPiece input, const std::function<void(TrieMatch)>& update_fn) const;
Dencoder.cc60 std::vector<TrieMatch> matches; in Encode()
Dnormalizer.cc120 TrieMatch match; in NormalizePrefix()