Home
last modified time | relevance | path

Searched refs:pos_type (Results 1 – 19 of 19) sorted by relevance

/ndk/sources/cxx-stl/stlport/src/
Dstdio_streambuf.cpp75 stdio_streambuf_base::pos_type
90 return pos_type(-1); in seekoff()
99 return pos_type((streamoff)pos.__pos); in seekoff()
101 return pos_type(pos.__fpos_elem[ 0 ]); in seekoff()
103 return pos_type((streamoff)pos._pos); in seekoff()
105 return pos_type(pos); in seekoff()
109 return pos_type(-1); in seekoff()
113 stdio_streambuf_base::pos_type
114 stdio_streambuf_base::seekpos(pos_type pos, ios_base::openmode /* mode */) { in seekpos()
141 return FSETPOS(_M_file, &p) == 0 ? pos : pos_type(-1); in seekpos()
Dstrstream.cpp191 strstreambuf::pos_type
209 return pos_type(off_type(-1)); in seekoff()
226 return pos_type(off_type(-1)); in seekoff()
231 return pos_type(off_type(-1)); in seekoff()
252 return pos_type(newoff); in seekoff()
255 strstreambuf::pos_type
256 strstreambuf::seekpos(pos_type pos, ios_base::openmode mode) { in seekpos()
257 return seekoff(pos - pos_type(off_type(0)), ios_base::beg, mode); in seekpos()
Dstdio_streambuf.h61 pos_type seekoff(off_type, ios_base::seekdir,
64 pos_type seekpos(pos_type,
/ndk/tests/device/test-stlport/unit/
Dsstream_test.cpp390 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(0) ); in seek()
392 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(6) ); in seek()
394 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(3) ); in seek()
397 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(0) ); in seek()
399 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(6) ); in seek()
401 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(3) ); in seek()
409 CPPUNIT_CHECK( s.tellp() == stringstream::pos_type(7) ); in seekp()
451 …NIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(6) ); in tellp()
452 CPPUNIT_CHECK( o.tellp() == stringstream::pos_type(6) ); in tellp()
459 …NIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(6) ); in tellp()
[all …]
Dfstream_test.cpp299 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); in tellp()
300 CPPUNIT_CHECK( o.tellp() == 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()
308 CPPUNIT_CHECK( o.tellp() == 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()
340 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(expected_pos) ); in tellp()
357 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) … in tellp()
358 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(10) ); in tellp()
408 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) ); in seek()
409 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) ); in seek()
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dsstream_test.cpp390 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(0) ); in seek()
392 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(6) ); in seek()
394 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(3) ); in seek()
397 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(0) ); in seek()
399 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(6) ); in seek()
401 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(3) ); in seek()
409 CPPUNIT_CHECK( s.tellp() == stringstream::pos_type(7) ); in seekp()
451 …NIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(6) ); in tellp()
452 CPPUNIT_CHECK( o.tellp() == stringstream::pos_type(6) ); in tellp()
459 …NIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(6) ); in tellp()
[all …]
Dfstream_test.cpp299 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); in tellp()
300 CPPUNIT_CHECK( o.tellp() == 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()
308 CPPUNIT_CHECK( o.tellp() == 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()
340 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(expected_pos) ); in tellp()
357 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) … in tellp()
358 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(10) ); in tellp()
408 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) ); in seek()
409 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) ); in seek()
[all …]
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_sstream.h59 typedef typename _Traits::pos_type pos_type; typedef
90 virtual pos_type seekoff(off_type __off, ios_base::seekdir __dir,
93 virtual pos_type seekpos(pos_type __pos, ios_base::openmode __mode
121 typedef typename _Traits::pos_type pos_type; typedef
164 typedef typename _Traits::pos_type pos_type; typedef
208 typedef typename _Traits::pos_type pos_type; typedef
D_streambuf.h55 typedef typename _Traits::pos_type pos_type; typedef
128 virtual pos_type seekoff(off_type, ios_base::seekdir,
133 virtual pos_type
134 seekpos(pos_type, ios_base::openmode = ios_base::in | ios_base::out);
145 pos_type pubseekoff(off_type __offset, ios_base::seekdir __way,
149 pos_type pubseekpos(pos_type __sp,
D_strstream.h78 virtual pos_type seekoff(off_type __off, ios_base::seekdir __dir,
81 virtual pos_type seekpos(pos_type __pos, ios_base::openmode __mode
143 typedef char_traits<char>::pos_type pos_type; typedef
D_sstream.c32 …e __BSB_pos_type__ _STLP_TYPENAME_ON_RETURN_TYPE basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
309 return pos_type(off_type(-1)); in seekoff()
312 return pos_type(off_type(-1)); in seekoff()
325 return pos_type(__newoff); in seekoff()
329 return pos_type(off_type(-1)); in seekoff()
338 return pos_type(off_type(-1)); in seekoff()
347 return pos_type(off_type(-1)); in seekoff()
352 return pos_type(__off); in seekoff()
358 ::seekpos(pos_type __pos, ios_base::openmode __mode) { in seekpos()
365 return pos_type(off_type(-1)); in seekpos()
[all …]
D_fstream.h153 typedef typename _Traits::pos_type pos_type; typedef
207 virtual pos_type seekoff(off_type, ios_base::seekdir,
209 virtual pos_type seekpos(pos_type,
238 pos_type _M_seek_return(off_type __off, _State_type __state) { in _M_seek_return()
250 pos_type __result(__off); in _M_seek_return()
447 typedef typename _Traits::pos_type pos_type; typedef
528 typedef typename _Traits::pos_type pos_type; typedef
607 typedef typename _Traits::pos_type pos_type; typedef
D_fstream.c38 # define __BF_pos_type__ _STLP_TYPENAME_ON_RETURN_TYPE basic_filebuf<_CharT, _Traits>::pos_type
295 return pos_type(-1); in seekoff()
298 return pos_type(-1); in seekoff()
301 return pos_type(-1); in seekoff()
320 return __off == 0 ? pos_type(_M_base._M_seek(0, ios_base::cur) - __adjust) in seekoff()
335 return __off == 0 ? pos_type(_M_base._M_seek(0, ios_base::cur) - __eadj) in seekoff()
374 return __off == 0 ? pos_type(__cur + __adj) in seekoff()
378 return pos_type(-1); in seekoff()
384 basic_filebuf<_CharT, _Traits>::seekpos(pos_type __pos, in seekpos()
388 return pos_type(-1); in seekpos()
[all …]
D_streambuf.c187 _STLP_TYPENAME_ON_RETURN_TYPE basic_streambuf<_CharT, _Traits>::pos_type
188 basic_streambuf<_CharT, _Traits>::seekpos(pos_type, ios_base::openmode) in seekpos() argument
189 { return pos_type(-1); } in seekpos()
192 _STLP_TYPENAME_ON_RETURN_TYPE basic_streambuf<_CharT, _Traits>::pos_type
195 { return pos_type(-1); } in seekoff()
D_ostream.h65 typedef typename _Traits::pos_type pos_type; typedef
141 pos_type tellp() { in tellp()
144 : pos_type(-1); in tellp()
147 _Self& seekp(pos_type __pos) { in seekp()
149 if (this->rdbuf()->pubseekpos(__pos, ios_base::out) == pos_type(-1)) { in seekp()
D_istream.h76 typedef typename _Traits::pos_type pos_type; typedef
163 pos_type tellg();
164 _Self& seekg(pos_type __pos);
D_ios.h53 typedef typename _Traits::pos_type pos_type; typedef
Dchar_traits.h137 typedef streampos pos_type; typedef
216 typedef streampos pos_type; typedef
D_istream.c40 # define __BIS_pos_type__ _STLP_TYPENAME_ON_RETURN_TYPE basic_istream<_CharT, _Traits>::pos_type
499 : pos_type(-1); in tellg()
504 basic_istream<_CharT, _Traits>::seekg(pos_type __pos) { in seekg()
509 if (__buf->pubseekpos(__pos, ios_base::in) == pos_type(-1)) { in seekg()