| 596 | } |
| 597 | #endif |
| 598 | void find_last_not_of() { |
| 599 | // 21.3.6.6 |
| 600 | TStringType s(Data_.one_two_three_one_two_three()); |
| 601 | |
| 602 | UNIT_ASSERT(s.find_last_not_of(Data_.ehortw_()) == 15); |
| 603 | |
| 604 | TStringType test(Data_.aba()); |
| 605 | |
| 606 | UNIT_ASSERT(test.find_last_not_of(Data_.a(), 2, 1) == 1); |
| 607 | UNIT_ASSERT(test.find_last_not_of(Data_.b(), 2, 1) == 2); |
| 608 | UNIT_ASSERT(test.find_last_not_of(Data_.a(), 1, 1) == 1); |
| 609 | UNIT_ASSERT(test.find_last_not_of(Data_.b(), 1, 1) == 0); |
| 610 | UNIT_ASSERT(test.find_last_not_of(Data_.a(), 0, 1) == TStringType::npos); |
| 611 | UNIT_ASSERT(test.find_last_not_of(Data_.b(), 0, 1) == 0); |
| 612 | |
| 613 | UNIT_ASSERT(test.find_last_not_of(*Data_.a(), 2) == 1); |
| 614 | UNIT_ASSERT(test.find_last_not_of(*Data_.b(), 2) == 2); |
| 615 | UNIT_ASSERT(test.find_last_not_of(*Data_.a(), 1) == 1); |
| 616 | UNIT_ASSERT(test.find_last_not_of(*Data_.b(), 1) == 0); |
| 617 | UNIT_ASSERT(test.find_last_not_of(*Data_.a(), 0) == TStringType::npos); |
| 618 | UNIT_ASSERT(test.find_last_not_of(*Data_.b(), 0) == 0); |
| 619 | } |
| 620 | #if 0 |
| 621 | void replace() { |
| 622 | // This test case is for the non template basic_TString::replace method, |
nothing calls this directly
no test coverage detected