Home | History | Annotate | Download | only in unit

Lines Matching defs:in

20 //size in Go
152 ifstream in("/tmp");
153 if (in.good()) {
155 getline(in, s);
156 CPPUNIT_ASSERT( in.fail() );
175 basic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
210 basic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
244 ifstream is("test_file.txt", ios_base::in | ios_base::binary);
263 ifstream is("test_file.txt", ios_base::in | ios_base::binary);
279 ifstream is("test_file.txt", ios_base::in | ios_base::binary);
315 After fopen( "test_file.txt", "a" ) in this context ftell( f ) == 9 for
318 shifted to EOF (but shifted to EOF just before write, as described in the specs).
326 //In Windows, stlport and fopen use kernel32.CreateFile for open.
342 { // for reference, to test fopen/ftell behaviour in append mode:
354 //In append mode, file is positioned at EOF just before a write.
365 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
393 // Test in binary mode:
395 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
403 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary );
419 // Test in text mode:
421 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
429 fstream s( "test_file.txt", ios_base::in | ios_base::out );
437 // Depending on how '\n' is written in file, file position can be greater or equal to the number of chars_read read.
470 wfstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
480 wfstream s( "test_file.txt", ios_base::in | ios_base::out );
490 // Depending on how '\n' is written in file, file position can be greater or equal to the number of chars_read read.
512 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
539 ifstream in("test_file.txt", ios_base::binary);
540 CPPUNIT_ASSERT( in );
546 out << in.rdbuf();
548 CPPUNIT_ASSERT( in );
551 out << in.rdbuf();
553 CPPUNIT_ASSERT( in );
556 ostr << in.rdbuf();
558 CPPUNIT_ASSERT( in );
565 ifstream in("test_file.txt", ios_base::binary);
566 CPPUNIT_ASSERT( in );
572 out << in.rdbuf();
574 CPPUNIT_ASSERT( in );
579 out << in.rdbuf();
581 CPPUNIT_ASSERT( in );
584 ostr << in.rdbuf();
586 CPPUNIT_ASSERT( in );
607 ifstream in(file_name);
608 CPPUNIT_ASSERT( in.good() );
611 while (getline(in, line)) {
615 CPPUNIT_ASSERT( in.eof() );
653 result in (state_type&,
784 ifstream in("big_file.txt");
785 CPPUNIT_ASSERT( in );
791 in.seekg((*pit).first);
792 CPPUNIT_ASSERT( in );
793 in >> line;
804 ifstream in("big_file.txt");
805 CPPUNIT_ASSERT( in );
808 while ((!in.eof()) && in.good()){
809 in.read(tmp, 4096);
810 nb_reads += in.gcount();
861 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::ate);
866 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::trunc);
876 in _istream.c
894 fstream f( "test.txt", ios_base::in | ios_base::out | ios_base::trunc );