7 const size_t pos =
string.find(stringToRemove);
9 if (pos != std::string::npos)
11 string.erase(pos, stringToRemove.length());
17 return mainStr.size() >= toMatch.size() && mainStr.compare(mainStr.size() - toMatch.size(), toMatch.size(), toMatch) == 0;
22 return mainStr.size() >= toMatch.size() && mainStr.compare(0, toMatch.size(), toMatch) == 0;