| 13827 | return !s.empty() && s[s.size()-1] == suffix; |
| 13828 | } |
| 13829 | bool contains( std::string const& s, std::string const& infix ) { |
| 13830 | return s.find( infix ) != std::string::npos; |
| 13831 | } |
| 13832 | void toLowerInPlace( std::string& s ) { |
| 13833 | std::transform( s.begin(), s.end(), s.begin(), toLowerCh ); |
| 13834 | } |