MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / horspool

Function horspool

strings/horspool.cpp:59–92  ·  view source on GitHub ↗

* A function that implements Horspool's algorithm. * @param text is the string that we are searching if there is a substring * @param prototype is the substring that we are searching in text * @returns true if text string contains prototype string * @returns false if text string does not contain prototype string */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls 3

findShiftTableFunction · 0.85
findMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected