Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheFutureIsOurs/ahocorasick
/ functions
Functions
23 in github.com/TheFutureIsOurs/ahocorasick
⨍
Functions
23
◇
Types & classes
8
↓ 7 callers
Method
getState
getState give a inState, output index
ac.go:270
↓ 4 callers
Method
resize
(newSize int)
ac.go:145
↓ 2 callers
Function
BuildFromFile
BuildFromFile build ac from file
ac.go:47
↓ 2 callers
Method
MultiPatternIndexes
MultiPatternIndexes return the all find indexes of the content
ac.go:384
↓ 2 callers
Method
buildTrie
buildTrie build trie what we need
ac.go:290
↓ 2 callers
Function
readFile
(input string)
ac_test.go:18
↓ 1 callers
Function
Build
Build a ahocorasick based on double array trie
ac.go:75
↓ 1 callers
Method
MultiPatternSearch
MultiPatternSearch return all find begin end and value
ac.go:360
↓ 1 callers
Function
checkFileIsExist
(filename string)
ac_test.go:41
↓ 1 callers
Function
getAbs
(n int)
ac.go:262
↓ 1 callers
Method
getBegin
getBegin return the no use begin to fill parent's children
ac.go:198
↓ 1 callers
Method
getChildren
getChildren get the parent's children from dartsBuild
ac.go:153
↓ 1 callers
Function
max
(m, n int)
ac.go:190
↓ 1 callers
Function
readLine
readLine read file line by line and drop one line's length >4096
ac.go:37
↓ 1 callers
Method
setBC
setBC set base and check
ac.go:231
Method
Len
()
ac.go:104
Method
Less
(i, j int)
ac.go:108
Method
MultiPatternHit
MultiPatternHit return is the content is hit dictionary, it will return when first find
ac.go:404
Method
Swap
(i, j int)
ac.go:131
Function
TestAb
(t *testing.T)
ac_test.go:95
Function
TestBuild
(t *testing.T)
ac_test.go:69
Function
TestMulti
(t *testing.T)
ac_test.go:125
Function
writeFile
(filename string, contents []Hit)
ac_test.go:48