CP Module
A collection of Rabin-Karp string matching algorithms using the cyclic polynomial (CP) hash
Functions and values
Function or value | Description |
Full Usage:
addToHashValue hs inchar
Parameters:
uint64
inchar : ^a
Returns: uint64
Modifiers: inline Type parameters: ^a |
|
Full Usage:
blockHash pattern
Parameters:
^a array
Returns: uint64
Modifiers: inline Type parameters: ^a |
|
Full Usage:
find pattern s
Parameters:
^a array
s : ^a array
Returns: int
Modifiers: inline Type parameters: ^a |
|
Full Usage:
findAll pattern s
Parameters:
^a array
s : ^a array
Returns: int list
Modifiers: inline Type parameters: ^a |
|
Full Usage:
findFrom startPos pattern s
Parameters:
int
pattern : ^a array
s : ^a array
Returns: int
Modifiers: inline Type parameters: ^a |
|
Full Usage:
rotateLeft r x
Parameters:
int32
x : ^a
Returns: ^a
Modifiers: inline Type parameters: ^a |
|
Full Usage:
updateHash pLength hs inchar outchar
Parameters:
int32
hs : uint64
inchar : ^a
outchar : ^b
Returns: uint64
Modifiers: inline Type parameters: ^a, ^b |