Home | History | Annotate | Download | only in unit

Lines Matching defs:rfind

64   CPPUNIT_TEST(rfind);
123 void rfind();
729 string::size_type p = s.rfind( "", 0, 0 );
736 string::size_type p = s.rfind( "", 0, 0 );
742 string::size_type p = s.rfind( "", 1, 0 );
748 string::size_type p = s.rfind( "", 1, 0 );
754 string::size_type p = s.rfind( "", 3, 0 );
760 void StringTest::rfind()
765 CPPUNIT_ASSERT( s.rfind("two") == 18 );
766 CPPUNIT_ASSERT( s.rfind("two", 0) == string::npos );
767 CPPUNIT_ASSERT( s.rfind("two", 11) == 4 );
768 CPPUNIT_ASSERT( s.rfind('w') == 19 );
772 CPPUNIT_CHECK( test.rfind( "a", 2, 1 ) == 2 );
773 CPPUNIT_CHECK( test.rfind( "a", 1, 1 ) == 0 );
774 CPPUNIT_CHECK( test.rfind( "a", 0, 1 ) == 0 );
776 CPPUNIT_CHECK( test.rfind( 'a', 2 ) == 2 );
777 CPPUNIT_CHECK( test.rfind( 'a', 1 ) == 0 );
778 CPPUNIT_CHECK( test.rfind( 'a', 0 ) == 0 );