Home
last modified time | relevance | path

Searched refs:key_pos (Results 1 – 5 of 5) sorted by relevance

/external/marisa-trie/lib/marisa/grimoire/trie/
Drange.h22 void set_key_pos(std::size_t key_pos) { in set_key_pos() argument
23 MARISA_DEBUG_IF(key_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_key_pos()
24 key_pos_ = static_cast<UInt32>(key_pos); in set_key_pos()
33 std::size_t key_pos() const { in key_pos() function
44 std::size_t key_pos) { in make_range() argument
48 range.set_key_pos(key_pos); in make_range()
65 void set_key_pos(std::size_t key_pos) { in set_key_pos() argument
66 range_.set_key_pos(key_pos); in set_key_pos()
81 std::size_t key_pos() const { in key_pos() function
82 return range_.key_pos(); in key_pos()
[all …]
Dhistory.h24 void set_key_pos(std::size_t key_pos) { in set_key_pos() argument
25 MARISA_DEBUG_IF(key_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_key_pos()
26 key_pos_ = (UInt32)key_pos; in set_key_pos()
43 std::size_t key_pos() const { in key_pos() function
Dlouds-trie.cc203 state.key_buf().resize(prev.key_pos()); in predictive_search()
352 (keys[range.begin()].length() == range.key_pos())) { in build_current_trie()
365 if (keys[i - 1][range.key_pos()] != keys[i][range.key_pos()]) { in build_current_trie()
367 range.begin(), i, range.key_pos(), (float)weight)); in build_current_trie()
374 range.begin(), range.end(), range.key_pos(), (float)weight)); in build_current_trie()
386 std::size_t key_pos = w_range.key_pos() + 1; in build_current_trie() local
387 while (key_pos < keys[w_range.begin()].length()) { in build_current_trie()
390 if (keys[j - 1][key_pos] != keys[j][key_pos]) { in build_current_trie()
397 ++key_pos; in build_current_trie()
400 keys[w_range.begin()][w_range.key_pos()]); in build_current_trie()
[all …]
/external/marisa-trie/tests/
Dtrie-test.cc160 ASSERT(range.key_pos() == 0); in TestRange()
168 ASSERT(range.key_pos() == 3); in TestRange()
174 ASSERT(range.key_pos() == 30); in TestRange()
180 ASSERT(w_range.key_pos() == 0); in TestRange()
190 ASSERT(w_range.key_pos() == 30); in TestRange()
198 ASSERT(w_range2.key_pos() == 300); in TestRange()
429 ASSERT(history.key_pos() == 0); in TestHistory()
441 ASSERT(history.key_pos() == 300); in TestHistory()
/external/python/cpython3/Modules/
D_functoolsmodule.c795 Py_ssize_t key_size, pos, key_pos, kwds_size; in lru_cache_make_key() local
824 key_pos = 0; in lru_cache_make_key()
828 PyTuple_SET_ITEM(key, key_pos++, item); in lru_cache_make_key()
832 PyTuple_SET_ITEM(key, key_pos++, kwd_mark); in lru_cache_make_key()
835 PyTuple_SET_ITEM(key, key_pos++, keyword); in lru_cache_make_key()
837 PyTuple_SET_ITEM(key, key_pos++, value); in lru_cache_make_key()
839 assert(key_pos == PyTuple_GET_SIZE(args) + kwds_size * 2 + 1); in lru_cache_make_key()
845 PyTuple_SET_ITEM(key, key_pos++, item); in lru_cache_make_key()
851 PyTuple_SET_ITEM(key, key_pos++, item); in lru_cache_make_key()
855 assert(key_pos == key_size); in lru_cache_make_key()