| 385 | } |
| 386 | |
| 387 | int BString::lastIndexOf(const BString& s, int fromIndex) const { |
| 388 | if (isEmpty()) { |
| 389 | return -1; |
| 390 | } |
| 391 | if (s.length() == 1) { |
| 392 | return lastIndexOf(s.data->str[0]); |
| 393 | } |
| 394 | return lastIndexOf(s.data->str); |
| 395 | } |
| 396 | |
| 397 | int BString::lastIndexOf(const char* s, int fromIndex) const { |
| 398 | if (isEmpty()) { |
no test coverage detected