| 11390 | return !s.empty() && s[s.size()-1] == suffix; |
| 11391 | } |
| 11392 | bool contains( std::string const& s, std::string const& infix ) { |
| 11393 | return s.find( infix ) != std::string::npos; |
| 11394 | } |
| 11395 | void toLowerInPlace( std::string& s ) { |
| 11396 | std::transform( s.begin(), s.end(), s.begin(), toLowerCh ); |
| 11397 | } |