Lines Matching refs:RNode
34 RNode::RNode() : s(nullptr), len(0), index(-1), wildcard_index(-1) {} in RNode() function in shrpx::RNode
36 RNode::RNode(const char *s, size_t len, ssize_t index, ssize_t wildcard_index) in RNode() function in shrpx::RNode
44 RNode *find_next_node(const RNode *node, char c) { in find_next_node()
46 [](const std::unique_ptr<RNode> &lhs, in find_next_node()
57 void add_next_node(RNode *node, std::unique_ptr<RNode> new_node) { in add_next_node()
60 [](const std::unique_ptr<RNode> &lhs, in add_next_node()
66 void Router::add_node(RNode *node, const char *pattern, size_t patlen, in add_node()
70 std::make_unique<RNode>(pat.c_str(), pat.size(), index, wildcard_index); in add_node()
134 auto new_node = std::make_unique<RNode>( in add_route()
162 const RNode *match_complete(size_t *offset, const RNode *node, in match_complete()
194 const RNode *match_partial(bool *pattern_is_wildcard, const RNode *node, in match_partial()
207 const RNode *found_node = nullptr; in match_partial()
315 const RNode *node; in match()
334 const RNode *node; in match()
350 const RNode *match_prefix(size_t *nread, const RNode *node, const char *first, in match_prefix()
391 ssize_t Router::match_prefix(size_t *nread, const RNode **last_node, in match_prefix()
409 void dump_node(const RNode *node, int depth) { in dump_node()