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

Function is_prefix

strings/boyer_moore.cpp:200–212  ·  view source on GitHub ↗

* @brief Check if pat is prefix of str. * * @param str pointer to some part of the input text. * @param pat the searched pattern. * @param len length of the searched pattern * @returns `true` if pat IS prefix of str. * @returns `false` if pat is NOT a prefix of str. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

and_testFunction · 0.85
pat_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected