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:
353 //In append mode, file is positioned at EOF just before a write.
364 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
392 // Test in binary mode:
394 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
402 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary );
418 // Test in text mode:
420 fstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
428 fstream s( "test_file.txt", ios_base::in | ios_base::out );
436 // Depending on how '\n' is written in file, file position can be greater or equal to the number of chars_read read.
469 wfstream s( "test_file.txt", ios_base::in | ios_base::out | ios_base::trunc );
479 wfstream s( "test_file.txt", ios_base::in | ios_base::out );
489 // Depending on how '\n' is written in file, file position can be greater or equal to the number of chars_read read.
511 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc );
538 ifstream in("test_file.txt", ios_base::binary);
539 CPPUNIT_ASSERT( in );
545 out << in.rdbuf();
547 CPPUNIT_ASSERT( in );
550 out << in.rdbuf();
552 CPPUNIT_ASSERT( in );
555 ostr << in.rdbuf();
557 CPPUNIT_ASSERT( in );
564 ifstream in("test_file.txt", ios_base::binary);
565 CPPUNIT_ASSERT( in );
571 out << in.rdbuf();
573 CPPUNIT_ASSERT( in );
578 out << in.rdbuf();
580 CPPUNIT_ASSERT( in );
583 ostr << in.rdbuf();
585 CPPUNIT_ASSERT( in );
606 ifstream in(file_name);
607 CPPUNIT_ASSERT( in.good() );
610 while (getline(in, line)) {
614 CPPUNIT_ASSERT( in.eof() );
652 result in (state_type&,
783 ifstream in("big_file.txt");
784 CPPUNIT_ASSERT( in );
790 in.seekg((*pit).first);
791 CPPUNIT_ASSERT( in );
792 in >> line;
803 ifstream in("big_file.txt");
804 CPPUNIT_ASSERT( in );
807 while ((!in.eof()) && in.good()){
808 in.read(tmp, 4096);
809 nb_reads += in.gcount();
860 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::ate);
865 fstream nullStream(nullStreamName, ios_base::in | ios_base::out | ios_base::trunc);
875 in _istream.c
893 fstream f( "test.txt", ios_base::in | ios_base::out | ios_base::trunc );