Home | History | Annotate | Download | only in unit

Lines Matching refs:find_last_not_of

66   CPPUNIT_TEST(find_last_not_of);
125 void find_last_not_of();
799 void StringTest::find_last_not_of()
804 CPPUNIT_ASSERT( s.find_last_not_of("ehortw ") == 15 );
808 CPPUNIT_CHECK( test.find_last_not_of( "a", 2, 1 ) == 1 );
809 CPPUNIT_CHECK( test.find_last_not_of( "b", 2, 1 ) == 2 );
810 CPPUNIT_CHECK( test.find_last_not_of( "a", 1, 1 ) == 1 );
811 CPPUNIT_CHECK( test.find_last_not_of( "b", 1, 1 ) == 0 );
812 CPPUNIT_CHECK( test.find_last_not_of( "a", 0, 1 ) == string::npos );
813 CPPUNIT_CHECK( test.find_last_not_of( "b", 0, 1 ) == 0 );
815 CPPUNIT_CHECK( test.find_last_not_of( 'a', 2 ) == 1 );
816 CPPUNIT_CHECK( test.find_last_not_of( 'b', 2 ) == 2 );
817 CPPUNIT_CHECK( test.find_last_not_of( 'a', 1 ) == 1 );
818 CPPUNIT_CHECK( test.find_last_not_of( 'b', 1 ) == 0 );
819 CPPUNIT_CHECK( test.find_last_not_of( 'a', 0 ) == string::npos );
820 CPPUNIT_CHECK( test.find_last_not_of( 'b', 0 ) == 0 );