| 558 | } |
| 559 | |
| 560 | void find_last_of() { |
| 561 | // 21.3.6.4 |
| 562 | TStringType s(Data_.one_two_three_one_two_three()); |
| 563 | |
| 564 | UNIT_ASSERT(s.find_last_of(Data_.abcde()) == 26); |
| 565 | UNIT_ASSERT(s.find_last_of(TStringType(Data_.abcde())) == 26); |
| 566 | |
| 567 | TStringType test(Data_.aba()); |
| 568 | |
| 569 | UNIT_ASSERT(test.find_last_of(Data_.a(), 2, 1) == 2); |
| 570 | UNIT_ASSERT(test.find_last_of(Data_.a(), 1, 1) == 0); |
| 571 | UNIT_ASSERT(test.find_last_of(Data_.a(), 0, 1) == 0); |
| 572 | |
| 573 | UNIT_ASSERT(test.find_last_of(*Data_.a(), 2) == 2); |
| 574 | UNIT_ASSERT(test.find_last_of(*Data_.a(), 1) == 0); |
| 575 | UNIT_ASSERT(test.find_last_of(*Data_.a(), 0) == 0); |
| 576 | } |
| 577 | #if 0 |
| 578 | void rfind() { |
| 579 | // 21.3.6.2 |
nothing calls this directly
no test coverage detected