Home | History | Annotate | Download | only in unit

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) );
358 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) );
406 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) );
409 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) );
410 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) );
414 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 10 ) == 10 );
432 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) );
436 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
440 offset = s.rdbuf()->pubseekoff( -offset, ios_base::cur );
445 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 5 ) == 5 );
448 pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
450 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
485 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) / sizeof(wchar_t) );
489 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
493 off = s.rdbuf()->pubseekoff(-off, ios_base::cur);
495 off = s.rdbuf()->pubseekoff(0, ios_base::beg);
500 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 5 ) == 5 );
503 pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
505 //CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
510 void FstreamTest::rdbuf()
518 ss.get( *os.rdbuf(), '\n' );
546 out << in.rdbuf();
551 out << in.rdbuf();
556 ostr << in.rdbuf();
572 out << in.rdbuf();
579 out << in.rdbuf();
584 ostr << in.rdbuf();
901 // const streambuf *b = f.rdbuf();