| 324 | } |
| 325 | |
| 326 | bool BString::endsWith(const BString& s, bool ignoreCase) const { |
| 327 | if (s.isEmpty()) { |
| 328 | return false; |
| 329 | } |
| 330 | return compareTo(s.data->str, ignoreCase, length() - s.length()) == 0; |
| 331 | } |
| 332 | |
| 333 | bool BString::endsWith(const char* s, bool ignoreCase) const { |
| 334 | int len = (int)strlen(s); |
no test coverage detected