simple trie for tokenizable strings
Callback function for ztrie_node to destroy node data.
Creates a new ztrie.
Destroy the ztrie.
Inserts a new route into the tree and attaches the data. Returns -1
if the route already exists, otherwise 0. This method takes ownership of
the provided data if a destroy_data_fn is provided.
Removes a route from the trie and destroys its data. Returns -1 if the
route does not exists, otherwise 0.
the start of the list call zlist_first (). Advances the cursor.
Returns true if the path matches a route in the tree, otherwise false.
Returns the data of a matched route from last ztrie_matches. If the path
did not match, returns NULL. Do not delete the data as it's owned by
ztrie.
Returns the count of parameters that a matched route has.
Returns the parameters of a matched route with named regexes from last
ztrie_matches. If the path did not match or the route did not contain any
named regexes, returns NULL.
Returns the asterisk matched part of a route, if there has been no match
or no asterisk match, returns NULL.
Print the trie