Home
last modified time | relevance | path

Searched refs:history_pos (Results 1 – 3 of 3) sorted by relevance

/external/marisa-trie/lib/marisa/grimoire/trie/
Dstate.h35 void set_history_pos(std::size_t history_pos) { in set_history_pos() argument
36 MARISA_DEBUG_IF(history_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_history_pos()
37 history_pos_ = (UInt32)history_pos; in set_history_pos()
49 std::size_t history_pos() const { in history_pos() function
Dlouds-trie.cc167 if (state.history_pos() == state.history().size()) { in predictive_search()
175 History &next = state.history()[state.history_pos()]; in predictive_search()
179 state.set_history_pos(state.history_pos() + 1); in predictive_search()
198 } else if (state.history_pos() != 1) { in predictive_search()
199 History &current = state.history()[state.history_pos() - 1]; in predictive_search()
202 state.history()[state.history_pos() - 2]; in predictive_search()
204 state.set_history_pos(state.history_pos() - 1); in predictive_search()
/external/marisa-trie/tests/
Dtrie-test.cc457 ASSERT(state.history_pos() == 0); in TestState()
468 ASSERT(state.history_pos() == 1000); in TestState()