| 515 | } |
| 516 | |
| 517 | size_t String::findLast(Char c, CaseSensitivity cs) const { |
| 518 | auto it = begin(); |
| 519 | |
| 520 | size_t found = NPos; |
| 521 | size_t pos = 0; |
| 522 | while (it != end()) { |
| 523 | if (charEqual(c, *it, cs)) |
| 524 | found = pos; |
| 525 | ++pos; |
| 526 | ++it; |
| 527 | } |
| 528 | |
| 529 | return found; |
| 530 | } |
| 531 | |
| 532 | size_t String::findLast(String const& str, CaseSensitivity cs) const { |
| 533 | if (str.empty()) |
no test coverage detected