Home
last modified time | relevance | path

Searched refs:LongestPrefixMatch (Results 1 – 11 of 11) sorted by relevance

/external/libtextclassifier/native/utils/container/
Dsorted-strings-table_test.cc90 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()
Ddouble-array-trie_test.cc91 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()
Dstring-set.h42 virtual bool LongestPrefixMatch(StringPiece input,
48 if (LongestPrefixMatch(input, &match) && in Find()
Dsorted-strings-table.h52 bool LongestPrefixMatch(StringPiece input,
Ddouble-array-trie.h52 bool LongestPrefixMatch(StringPiece input,
Ddouble-array-trie.cc62 bool DoubleArrayTrie::LongestPrefixMatch(StringPiece input, in LongestPrefixMatch() function in libtextclassifier3::DoubleArrayTrie
Dsorted-strings-table.cc107 bool SortedStringsTable::LongestPrefixMatch(StringPiece input, in LongestPrefixMatch() function in libtextclassifier3::SortedStringsTable
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/sentencepiece/
Ddouble_array_trie.h62 Match LongestPrefixMatch(const utils::string_view& input) const { in LongestPrefixMatch() function
Ddouble_array_trie_test.cc40 EXPECT_EQ(dat.LongestPrefixMatch(utils::string_view("AAL")), in TEST()
Doptimized_encoder.cc81 const auto max_match = dat.LongestPrefixMatch(utils::string_view(data, len)); in find_replacement()
/external/libtextclassifier/native/utils/sentencepiece/
Dnormalizer.cc121 if (!charsmap_trie_.LongestPrefixMatch(input, &match)) { in NormalizePrefix()