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