Searched refs:LongestPrefixMatch (Results 1 – 11 of 11) sorted by relevance
/external/libtextclassifier/native/utils/container/ |
D | sorted-strings-table_test.cc | 90 EXPECT_TRUE(table.LongestPrefixMatch("hella there", &match)); in TEST() 96 EXPECT_TRUE(table.LongestPrefixMatch("hello there", &match)); in TEST() 102 EXPECT_TRUE(table.LongestPrefixMatch("abcd", &match)); in TEST() 108 EXPECT_TRUE(table.LongestPrefixMatch("", &match)); in TEST()
|
D | double-array-trie_test.cc | 91 EXPECT_TRUE(trie.LongestPrefixMatch("hella there", &match)); in TEST() 97 EXPECT_TRUE(trie.LongestPrefixMatch("hello there", &match)); in TEST() 103 EXPECT_TRUE(trie.LongestPrefixMatch("abcd", &match)); in TEST() 109 EXPECT_TRUE(trie.LongestPrefixMatch("", &match)); in TEST()
|
D | string-set.h | 42 virtual bool LongestPrefixMatch(StringPiece input, 48 if (LongestPrefixMatch(input, &match) && in Find()
|
D | sorted-strings-table.h | 52 bool LongestPrefixMatch(StringPiece input,
|
D | double-array-trie.h | 52 bool LongestPrefixMatch(StringPiece input,
|
D | double-array-trie.cc | 62 bool DoubleArrayTrie::LongestPrefixMatch(StringPiece input, in LongestPrefixMatch() function in libtextclassifier3::DoubleArrayTrie
|
D | sorted-strings-table.cc | 107 bool SortedStringsTable::LongestPrefixMatch(StringPiece input, in LongestPrefixMatch() function in libtextclassifier3::SortedStringsTable
|
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/sentencepiece/ |
D | double_array_trie.h | 62 Match LongestPrefixMatch(const utils::string_view& input) const { in LongestPrefixMatch() function
|
D | double_array_trie_test.cc | 40 EXPECT_EQ(dat.LongestPrefixMatch(utils::string_view("AAL")), in TEST()
|
D | optimized_encoder.cc | 81 const auto max_match = dat.LongestPrefixMatch(utils::string_view(data, len)); in find_replacement()
|
/external/libtextclassifier/native/utils/sentencepiece/ |
D | normalizer.cc | 121 if (!charsmap_trie_.LongestPrefixMatch(input, &match)) { in NormalizePrefix()
|