Home
last modified time | relevance | path

Searched refs:rdbuf (Results 1 – 25 of 93) sorted by relevance

1234

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/
Dctor.pass.cpp46 assert(b.rdbuf() == nullptr); in main()
52 B b(s.rdbuf()); in main()
53 assert(b.rdbuf() == s.rdbuf()); in main()
59 B b(s.rdbuf(), new std::codecvt_utf8<wchar_t>); in main()
60 assert(b.rdbuf() == s.rdbuf()); in main()
66 B b(s.rdbuf(), new std::codecvt_utf8<wchar_t>, std::mbstate_t()); in main()
67 assert(b.rdbuf() == s.rdbuf()); in main()
Drdbuf.pass.cpp27 assert(b.rdbuf() == nullptr); in main()
28 b.rdbuf(s.rdbuf()); in main()
29 assert(b.rdbuf() == s.rdbuf()); in main()
Doverflow.pass.cpp45 test_buf f(bs.rdbuf()); in main()
56 test_buf f(bs.rdbuf()); in main()
62 test_buf f(bs.rdbuf()); in main()
74 test_buf f(bs.rdbuf()); in main()
80 test_buf f(bs.rdbuf()); in main()
/ndk/tests/device/test-gnustl-full/unit/
Diostream_test.cpp84 CPPUNIT_CHECK( cin.rdbuf()->in_avail() == 0 ); in in_avail()
85 CPPUNIT_CHECK( cout.rdbuf()->in_avail() == -1 ); in in_avail()
86 CPPUNIT_CHECK( clog.rdbuf()->in_avail() == -1 ); in in_avail()
87 CPPUNIT_CHECK( cerr.rdbuf()->in_avail() == -1 ); in in_avail()
90 CPPUNIT_CHECK( wcin.rdbuf()->in_avail() == 0 ); in in_avail()
91 CPPUNIT_CHECK( wcout.rdbuf()->in_avail() == 0 ); in in_avail()
92 CPPUNIT_CHECK( wclog.rdbuf()->in_avail() == 0 ); in in_avail()
93 CPPUNIT_CHECK( wcerr.rdbuf()->in_avail() == 0 ); in in_avail()
Dfstream_test.cpp47 CPPUNIT_TEST(rdbuf);
77 void rdbuf();
299 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); in tellp()
307 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) ); in tellp()
339 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expe… in tellp()
358 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) … in tellp()
406 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) ); in seek()
409 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) ); in seek()
410 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) ); in seek()
414 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 10 ) == 10 ); in seek()
[all …]
Dsstream_test.cpp32 CPPUNIT_TEST(rdbuf);
52 void rdbuf();
313 void SstreamTest::rdbuf() in rdbuf() function in SstreamTest
320 ss.get( *os.rdbuf(), '\n' ); in rdbuf()
339 out << in.rdbuf(); in streambuf_output()
345 out << in.rdbuf(); in streambuf_output()
350 ostr << in.rdbuf(); in streambuf_output()
366 out << in.rdbuf(); in streambuf_output()
373 out << in.rdbuf(); in streambuf_output()
378 ostr << in.rdbuf(); in streambuf_output()
[all …]
/ndk/tests/device/test-stlport/unit/
Diostream_test.cpp84 CPPUNIT_CHECK( cin.rdbuf()->in_avail() == 0 ); in in_avail()
85 CPPUNIT_CHECK( cout.rdbuf()->in_avail() == -1 ); in in_avail()
86 CPPUNIT_CHECK( clog.rdbuf()->in_avail() == -1 ); in in_avail()
87 CPPUNIT_CHECK( cerr.rdbuf()->in_avail() == -1 ); in in_avail()
90 CPPUNIT_CHECK( wcin.rdbuf()->in_avail() == 0 ); in in_avail()
91 CPPUNIT_CHECK( wcout.rdbuf()->in_avail() == 0 ); in in_avail()
92 CPPUNIT_CHECK( wclog.rdbuf()->in_avail() == 0 ); in in_avail()
93 CPPUNIT_CHECK( wcerr.rdbuf()->in_avail() == 0 ); in in_avail()
Dfstream_test.cpp47 CPPUNIT_TEST(rdbuf);
77 void rdbuf();
299 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); in tellp()
307 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) ); in tellp()
339 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expe… in tellp()
358 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) … in tellp()
406 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) ); in seek()
409 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) ); in seek()
410 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) ); in seek()
414 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 10 ) == 10 ); in seek()
[all …]
Dsstream_test.cpp32 CPPUNIT_TEST(rdbuf);
52 void rdbuf();
313 void SstreamTest::rdbuf() in rdbuf() function in SstreamTest
320 ss.get( *os.rdbuf(), '\n' ); in rdbuf()
339 out << in.rdbuf(); in streambuf_output()
345 out << in.rdbuf(); in streambuf_output()
350 ostr << in.rdbuf(); in streambuf_output()
366 out << in.rdbuf(); in streambuf_output()
373 out << in.rdbuf(); in streambuf_output()
378 ostr << in.rdbuf(); in streambuf_output()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/
Drdbuf_streambuf.pass.cpp23 assert(ios.rdbuf() == 0); in main()
26 std::streambuf* sb2 = ios.rdbuf(sb); in main()
28 assert(ios.rdbuf() == sb); in main()
30 sb2 = ios.rdbuf(0); in main()
32 assert(ios.rdbuf() == 0); in main()
Drdbuf.pass.cpp24 assert(ios.rdbuf() == 0); in main()
29 assert(ios.rdbuf() == sb); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringstream.cons/
Ddefault.pass.cpp24 assert(ss.rdbuf() != 0); in main()
30 assert(ss.rdbuf() != 0); in main()
36 assert(ss.rdbuf() != 0); in main()
42 assert(ss.rdbuf() != 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/ostringstream/ostringstream.cons/
Ddefault.pass.cpp24 assert(ss.rdbuf() != 0); in main()
30 assert(ss.rdbuf() != 0); in main()
36 assert(ss.rdbuf() != 0); in main()
42 assert(ss.rdbuf() != 0); in main()
Dstring.pass.cpp25 assert(ss.rdbuf() != 0); in main()
34 assert(ss.rdbuf() != 0); in main()
43 assert(ss.rdbuf() != 0); in main()
52 assert(ss.rdbuf() != 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/
Ddefault.pass.cpp24 assert(ss.rdbuf() != 0); in main()
30 assert(ss.rdbuf() != 0); in main()
36 assert(ss.rdbuf() != 0); in main()
42 assert(ss.rdbuf() != 0); in main()
Dstring.pass.cpp25 assert(ss.rdbuf() != 0); in main()
36 assert(ss.rdbuf() != 0); in main()
47 assert(ss.rdbuf() != 0); in main()
58 assert(ss.rdbuf() != 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator.cons/
Dstreambuf.pass.cpp28 std::istreambuf_iterator<char> i(inf.rdbuf()); in main()
33 std::istreambuf_iterator<char> i(inf.rdbuf()); in main()
42 std::istreambuf_iterator<wchar_t> i(inf.rdbuf()); in main()
47 std::istreambuf_iterator<wchar_t> i(inf.rdbuf()); in main()
/ndk/sources/cxx-stl/stlport/src/
Diostream.cpp261 delete ptr_cin->rdbuf(0); in _S_uninitialize()
262 delete ptr_cout->rdbuf(0); in _S_uninitialize()
263 delete ptr_cerr->rdbuf(0); in _S_uninitialize()
264 delete ptr_clog->rdbuf(0); in _S_uninitialize()
283 delete ptr_wcin->rdbuf(0); in _S_uninitialize()
284 delete ptr_wcout->rdbuf(0); in _S_uninitialize()
285 delete ptr_wcerr->rdbuf(0); in _S_uninitialize()
286 delete ptr_wclog->rdbuf(0); in _S_uninitialize()
340 delete (&cin)->rdbuf(cin_buf.release()); in sync_with_stdio()
341 delete (&cout)->rdbuf(cout_buf.release()); in sync_with_stdio()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostream.format/output.streams/ostream.cons/
Dmove.pass.cpp49 assert(os1.rdbuf() == &sb); in main()
50 assert(os.rdbuf() == 0); in main()
63 assert(os1.rdbuf() == &sb); in main()
64 assert(os.rdbuf() == 0); in main()
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_ostream.c54 ? this->_M_copy_buffered(__from, this->rdbuf())
55 : this->_M_copy_unbuffered(__from, this->rdbuf());
202 …ailed = (use_facet<_NumPut>(__os.getloc())).put(ostreambuf_iterator<_CharT, _Traits>(__os.rdbuf()), in __put_num()
308 __failed = this->_S_eof(this->rdbuf()->sputc(__c)); in _M_put_char()
310 __failed = this->_S_eof(this->rdbuf()->sputc(__c)); in _M_put_char()
312 this->rdbuf()->_M_sputnc(this->fill(), __npad) != __npad; in _M_put_char()
315 __failed = this->rdbuf()->_M_sputnc(this->fill(), __npad) != __npad; in _M_put_char()
316 __failed = __failed || this->_S_eof(this->rdbuf()->sputc(__c)); in _M_put_char()
340 __failed = this->rdbuf()->sputn(__s, __n) != __n; in _M_put_nowiden()
342 __failed = this->rdbuf()->sputn(__s, __n) != __n; in _M_put_nowiden()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/fstream.members/
Drdbuf.pass.cpp24 assert(fs.rdbuf()); in main()
28 assert(fs.rdbuf()); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostream.format/input.streams/istream/istream.cons/
Dmove.pass.cpp49 assert(is1.rdbuf() == &sb); in main()
52 assert(is.rdbuf() == 0); in main()
67 assert(is1.rdbuf() == &sb); in main()
68 assert(is.rdbuf() == 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostream.format/input.streams/iostreamclass/iostream.cons/
Dmove.pass.cpp49 assert(is1.rdbuf() == &sb); in main()
52 assert(is.rdbuf() == 0); in main()
67 assert(is1.rdbuf() == &sb); in main()
68 assert(is.rdbuf() == 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.cons/
Dstreambuf.pass.cpp24 std::ostreambuf_iterator<char> i(outf.rdbuf()); in main()
29 std::ostreambuf_iterator<wchar_t> i(outf.rdbuf()); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/ifstream.members/
Drdbuf.pass.cpp24 std::filebuf* fb = fs.rdbuf(); in main()
29 std::wfilebuf* fb = fs.rdbuf(); in main()

1234