Home | History | Annotate | Download | only in unit

Lines Matching defs:in

20 //size in Go
134 ifstream in("/tmp");
135 if (in.good()) {
137 getline(in, s);
138 CPPUNIT_ASSERT( in.fail() );
157 basic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
192 basic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
226 ifstream is("test_file.txt", ios_base::in | ios_base::binary);
245 ifstream is("test_file.txt", ios_base::in | ios_base::binary);
261 ifstream is("test_file.txt", ios_base::in | ios_base::binary);
297 After fopen( "test_file.txt", "a" ) in this context ftell( f ) == 9 for
300 shifted to EOF (but shifted to EOF just before write, as described in the specs).
308 //In Windows, stlport and fopen use kernel32.CreateFile for open.
324 { // for reference, to test fopen/ftell behaviour in append mode:
335 //In append mode, file is positioned at EOF just before a write.
346 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
374 // Test in binary mode:
376 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
384 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary );
400 // Test in text mode:
402 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
410 fstream s( "test_file.txt", ios_base::in | ios_base::out );
418 // Depending on how '\n' is written in file, file position can be greater or equal to the number of chars_read read.
451 wfstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
461 wfstream s( "test_file.txt", ios_base::in | ios_base::out );
471 // Depending on how '\n' is written in file, file position can be greater or equal to the number of chars_read read.
493 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
520 ifstream in("test_file.txt", ios_base::binary);
521 CPPUNIT_ASSERT( in );
527 out << in.rdbuf();
529 CPPUNIT_ASSERT( in );
532 out << in.rdbuf();
534 CPPUNIT_ASSERT( in );
537 ostr << in.rdbuf();
539 CPPUNIT_ASSERT( in );
546 ifstream in("test_file.txt", ios_base::binary);
547 CPPUNIT_ASSERT( in );
553 out << in.rdbuf();
555 CPPUNIT_ASSERT( in );
560 out << in.rdbuf();
562 CPPUNIT_ASSERT( in );
565 ostr << in.rdbuf();
567 CPPUNIT_ASSERT( in );
588 ifstream in(file_name);
589 CPPUNIT_ASSERT( in.good() );
592 while (getline(in, line)) {
596 CPPUNIT_ASSERT( in.eof() );
634 result in (state_type&,
765 ifstream in("big_file.txt");
766 CPPUNIT_ASSERT( in );
772 in.seekg((*pit).first);
773 CPPUNIT_ASSERT( in );
774 in >> line;
785 ifstream in("big_file.txt");
786 CPPUNIT_ASSERT( in );
789 while ((!in.eof()) && in.good()){
790 in.read(tmp, 4096);
791 nb_reads += in.gcount();
842 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::ate);
847 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::trunc);
857 in _istream.c
875 fstream f( "test.txt", ios_base::in | ios_base::out | ios_base::trunc );