| 13185 | return !s.empty() && s[s.size()-1] == suffix; |
| 13186 | } |
| 13187 | bool contains( std::string const& s, std::string const& infix ) { |
| 13188 | return s.find( infix ) != std::string::npos; |
| 13189 | } |
| 13190 | void toLowerInPlace( std::string& s ) { |
| 13191 | std::transform( s.begin(), s.end(), s.begin(), toLowerCh ); |
| 13192 | } |