* Returns whether the string ends with another string * @param osStr other string. * @return true if the string ends with osStr. */
| 375 | * @return true if the string ends with osStr. |
| 376 | */ |
| 377 | bool CPLString::endsWith(const std::string &osStr) const |
| 378 | { |
| 379 | if (size() < osStr.size()) |
| 380 | return false; |
| 381 | return substr(size() - osStr.size()) == osStr; |
| 382 | } |
| 383 | |
| 384 | /************************************************************************/ |
| 385 | /* URLEncode() */ |
no test coverage detected