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

Function check_if_equal

strings/rabin_karp.cpp:60–73  ·  view source on GitHub ↗

* compare if two sub-strings are equal * \param[in] str1 string pattern to search * \param[in] str2 text in which to search * \param[in] start1,end1 start and end indices for substring in str1 * \param[in] start2,end2 start and end indices for substring in str2 * \returns `true` if pattern was found * \returns `false` if pattern was not found * @note can this be replaced by std::string::com

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

rabin_karpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected