Lines Matching refs:key_id
16 bool operator()(marisa::UInt32 key_id, std::size_t key_length) const { in operator ()() argument
17 return func_(first_arg_, key_id, key_length) != 0; in operator ()()
37 bool operator()(marisa::UInt32 key_id, const std::string &key) const { in operator ()() argument
38 return func_(first_arg_, key_id, key.c_str(), key.length()) != 0; in operator ()()
162 marisa_status marisa_restore(const marisa_trie *h, marisa_uint32 key_id, in marisa_restore() argument
169 *key_length = h->trie.restore(key_id, key_buf, key_buf_size); in marisa_restore()
174 const char *ptr, size_t length, marisa_uint32 *key_id) { in marisa_lookup() argument
177 } else if (key_id == NULL) { in marisa_lookup()
181 *key_id = h->trie.lookup(ptr); in marisa_lookup()
183 *key_id = h->trie.lookup(ptr, length); in marisa_lookup()
208 marisa_uint32 *key_id, size_t *key_length) { in marisa_find_first() argument
211 } else if (key_id == NULL) { in marisa_find_first()
215 *key_id = h->trie.find_first(ptr, key_length); in marisa_find_first()
217 *key_id = h->trie.find_first(ptr, length, key_length); in marisa_find_first()
224 marisa_uint32 *key_id, size_t *key_length) { in marisa_find_last() argument
227 } else if (key_id == NULL) { in marisa_find_last()
231 *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()