Searched refs:history_pos (Results 1 – 3 of 3) sorted by relevance
35 void set_history_pos(std::size_t history_pos) { in set_history_pos() argument36 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
167 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 ¤t = 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()
457 ASSERT(state.history_pos() == 0); in TestState()468 ASSERT(state.history_pos() == 1000); in TestState()