Lines Matching refs:agent
61 void Tail::restore(Agent &agent, std::size_t offset) const { in restore() argument
64 State &state = agent.state(); in restore()
76 bool Tail::match(Agent &agent, std::size_t offset) const { in match() argument
78 MARISA_DEBUG_IF(agent.state().query_pos() >= agent.query().length(), in match()
81 State &state = agent.state(); in match()
85 if (ptr[state.query_pos()] != agent.query()[state.query_pos()]) { in match()
92 } while (state.query_pos() < agent.query().length()); in match()
96 if (buf_[offset] != agent.query()[state.query_pos()]) { in match()
103 } while (state.query_pos() < agent.query().length()); in match()
108 bool Tail::prefix_match(Agent &agent, std::size_t offset) const { in prefix_match() argument
111 State &state = agent.state(); in prefix_match()
115 if (ptr[state.query_pos()] != agent.query()[state.query_pos()]) { in prefix_match()
123 } while (state.query_pos() < agent.query().length()); in prefix_match()
131 if (buf_[offset] != agent.query()[state.query_pos()]) { in prefix_match()
139 } while (state.query_pos() < agent.query().length()); in prefix_match()