| 1368 | } |
| 1369 | |
| 1370 | bool String::endsWith( const std::string& haystack, const std::string& needle ) { |
| 1371 | return needle.length() <= haystack.length() && |
| 1372 | haystack.compare( haystack.size() - needle.size(), needle.size(), needle ) == 0; |
| 1373 | } |
| 1374 | |
| 1375 | bool String::endsWith( const String& haystack, const String& needle ) { |
| 1376 | return needle.length() <= haystack.length() && |