Skip to content

Return all texts for a matched trie node#8

Open
jmkok wants to merge 2 commits intomorenice:masterfrom
jmkok:master
Open

Return all texts for a matched trie node#8
jmkok wants to merge 2 commits intomorenice:masterfrom
jmkok:master

Conversation

@jmkok
Copy link

@jmkok jmkok commented Jan 18, 2020

The aho_find_trie_node() can currently only return one text. A trie node
can contain multiple matches and should return multiple texts.
The function is changed so it now returns the matched node (which mostly is the
traversal node). A new function will recursively process this node
and count all texts and perform a callback for each text.

for example:
https://www.youtube.com/watch?v=qPyhPXPl3T4
(see 7:00 minute mark)

Jelle Martijn Kok added 2 commits January 18, 2020 15:42
The aho_find_trie_node() can currently only return one text. A trie node
can contain multiple matches and should return multiple texts.
The function is changed so it now returns the matched node (which mostly is the
traversal node). A new function will recursively process this node
and count all texts and perform a callback for each text.

for example:
https://www.youtube.com/watch?v=qPyhPXPl3T4
(see 7:00 minute mark)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant