Lines Matching defs:rdbuf
47 CPPUNIT_TEST(rdbuf);
77 void rdbuf();
299 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) );
307 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) );
339 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expected_pos) );
357 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) );
405 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) );
408 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) );
409 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) );
413 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 10 ) == 10 );
431 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) );
435 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
439 offset = s.rdbuf()->pubseekoff( -offset, ios_base::cur );
444 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 5 ) == 5 );
447 pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
449 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
484 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) / sizeof(wchar_t) );
488 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
492 off = s.rdbuf()->pubseekoff(-off, ios_base::cur);
494 off = s.rdbuf()->pubseekoff(0, ios_base::beg);
499 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 5 ) == 5 );
502 pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
504 //CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
509 void FstreamTest::rdbuf()
517 ss.get( *os.rdbuf(), '\n' );
545 out << in.rdbuf();
550 out << in.rdbuf();
555 ostr << in.rdbuf();
571 out << in.rdbuf();
578 out << in.rdbuf();
583 ostr << in.rdbuf();
900 // const streambuf *b = f.rdbuf();