Home
last modified time | relevance | path

Searched refs:find_last (Results 1 – 12 of 12) sorted by relevance

/external/marisa-trie/v0_1_5/tools/
Dmarisa_alpha-find.cc67 void find_last(const marisa_alpha::Trie &trie, const std::string &str) { in find_last() function
69 const marisa_alpha::UInt32 key_id = trie.find_last(str, &length); in find_last()
121 find_last(trie, str); in find()
/external/marisa-trie/tools/
Dmarisa-find.cc67 void find_last(const marisa::Trie &trie, const std::string &str) { in find_last() function
69 const marisa::UInt32 key_id = trie.find_last(str, &length); in find_last()
121 find_last(trie, str); in find()
/external/marisa-trie/tests/
Dtrie-test.cc129 ASSERT(trie.find_last("ap") == trie.notfound()); in TestTrie()
130 ASSERT(trie.find_last("applex") == trie["apple"]); in TestTrie()
330 ASSERT(trie.find_last("afte") == trie.notfound()); in TestPrefixTrie()
331 ASSERT(trie.find_last("after") == trie["after"]); in TestPrefixTrie()
332 ASSERT(trie.find_last("afternoon", &length) == trie["after"]); in TestPrefixTrie()
531 ASSERT(trie.find_last("") == 0); in TestEmptyString()
532 ASSERT(trie.find_last("x") == 0); in TestEmptyString()
/external/marisa-trie/v0_1_5/tests/
Dtrie-test.cc131 ASSERT(trie.find_last("ap") == trie.notfound()); in TestTrie()
132 ASSERT(trie.find_last("applex") == trie["apple"]); in TestTrie()
332 ASSERT(trie.find_last("afte") == trie.notfound()); in TestPrefixTrie()
333 ASSERT(trie.find_last("after") == trie["after"]); in TestPrefixTrie()
334 ASSERT(trie.find_last("afternoon", &length) == trie["after"]); in TestPrefixTrie()
549 ASSERT(trie.find_last("") == 0); in TestEmptyString()
550 ASSERT(trie.find_last("x") == 0); in TestEmptyString()
/external/marisa-trie/lib/marisa/
Dtrie-c.cc231 *key_id = h->trie.find_last(ptr, key_length); in marisa_find_last()
233 *key_id = h->trie.find_last(ptr, length, key_length); in marisa_find_last()
Dtrie-inline.h47 inline UInt32 Trie::find_last(const std::string &str, in find_last() function
49 return find_last(str.c_str(), str.length(), key_length); in find_last()
Dtrie.h98 UInt32 find_last(const char *str,
100 UInt32 find_last(const char *ptr, std::size_t length,
102 UInt32 find_last(const std::string &str,
Dtrie-search.cc128 UInt32 Trie::find_last(const char *str, in find_last() function in marisa::Trie
135 UInt32 Trie::find_last(const char *ptr, std::size_t length, in find_last() function in marisa::Trie
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dtrie-c.cc258 *key_id = h->trie.find_last(ptr, key_length); in marisa_alpha_find_last()
260 *key_id = h->trie.find_last(ptr, length, key_length); in marisa_alpha_find_last()
Dtrie.h98 UInt32 find_last(const char *str,
100 UInt32 find_last(const char *ptr, std::size_t length,
102 UInt32 find_last(const std::string &str,
Dtrie-inline.h47 inline UInt32 Trie::find_last(const std::string &str, in find_last() function
49 return find_last(str.c_str(), str.length(), key_length); in find_last()
Dtrie-search.cc132 UInt32 Trie::find_last(const char *str, in find_last() function in marisa_alpha::Trie
139 UInt32 Trie::find_last(const char *ptr, std::size_t length, in find_last() function in marisa_alpha::Trie