15 bool contains(
const std::string& str,
const std::string& pattern) {
16 return str.find(pattern) != std::string::npos;
19 bool contains(
const std::string& str,
const char* pattern) {
20 return str.find(pattern) != std::string::npos;
23 bool contains(
const std::string& str,
const char ch) {
24 return str.find(ch) != std::string::npos;
bool contains(const std::string &str, const std::string &pattern)
Tests of string contains pattern.