| 2676 | } |
| 2677 | |
| 2678 | void |
| 2679 | testFindLastNotOf() |
| 2680 | { |
| 2681 | test_vectors const t; |
| 2682 | string const s1 = t.v1; |
| 2683 | |
| 2684 | // find_last_not_of(string_view, size_type) |
| 2685 | BOOST_TEST(s1.find_last_not_of("abc", 3) == 3); |
| 2686 | BOOST_TEST(s1.find_last_not_of("bcd", 3) == 0); |
| 2687 | |
| 2688 | BOOST_TEST(s1.find_last_not_of("efg", 4) == 3); |
| 2689 | BOOST_TEST(s1.find_last_not_of("abc", 2) == string::npos); |
| 2690 | |
| 2691 | // find_first_not_of(char, size_type) |
| 2692 | BOOST_TEST(s1.find_last_not_of('a', 3) == 3); |
| 2693 | BOOST_TEST(s1.find_last_not_of('e', 4) == 3); |
| 2694 | BOOST_TEST(s1.find_last_not_of('a', 0) == string::npos); |
| 2695 | } |
| 2696 | |
| 2697 | void |
| 2698 | testNonMembers() |
nothing calls this directly
no test coverage detected