MCPcopy Create free account
hub / github.com/avast/retdec / contains

Function contains

src/utils/string.cpp:311–313  ·  view source on GitHub ↗

* @brief Checks if @a str contains @a sub. */

Source from the content-addressed store, hash-verified

309* @brief Checks if @a str contains @a sub.
310*/
311bool contains(const std::string &str, const std::string &sub) {
312 return str.find(sub) != std::string::npos;
313}
314
315/**
316* @brief Check if at least one string from @a subs is contained in @a str.

Callers 15

containsAnyFunction · 0.85
parseAnnotationsMethod · 0.85
parseIntegralTypeMethod · 0.85
parseFormatStringFunction · 0.85
modifyFunctionMethod · 0.85
getConstantMethod · 0.85
runInstructionMethod · 0.85
checkRefMethod · 0.85
checkRef_x86Method · 0.85
hasStringMethod · 0.85
getAllCompilersMethod · 0.85

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68