| /openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/27_io/ |
| D | streambuf_members.cc | 43 typedef std::streambuf::traits_type traits_type; typedef in testbuf 67 pub_overflow(int_type __c = traits_type::eof()) in pub_overflow() 86 int_type __retval = traits_type::eof(); in underflow() 88 __retval = traits_type::not_eof(0); in underflow() 95 typedef testbuf::traits_type traits_type; in test01() typedef 117 VERIFY( buf01.sgetc() == traits_type::to_int_type(lit01[1]) ); in test01() 119 VERIFY( buf01.sgetc() == traits_type::to_int_type(lit01[2]) ); in test01() 121 VERIFY( buf01.sgetc() == traits_type::eof() ); in test01() 126 int_type intt01 = traits_type::to_int_type('b'); in test01() 127 VERIFY( traits_type::eof() == buf01.pub_pbackfail(intt01) ); in test01() [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/src/ |
| D | streambuf.cc | 43 typedef basic_streambuf<char>::traits_type traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef 46 traits_type::int_type __c = __sbin->sgetc(); in _GLIBCXX_BEGIN_NAMESPACE() 47 while (!traits_type::eq_int_type(__c, traits_type::eof())) in _GLIBCXX_BEGIN_NAMESPACE() 64 __c = __sbout->sputc(traits_type::to_char_type(__c)); in _GLIBCXX_BEGIN_NAMESPACE() 65 if (traits_type::eq_int_type(__c, traits_type::eof())) in _GLIBCXX_BEGIN_NAMESPACE() 83 typedef basic_streambuf<wchar_t>::traits_type traits_type; in __copy_streambufs_eof() typedef 86 traits_type::int_type __c = __sbin->sgetc(); in __copy_streambufs_eof() 87 while (!traits_type::eq_int_type(__c, traits_type::eof())) in __copy_streambufs_eof() 104 __c = __sbout->sputc(traits_type::to_char_type(__c)); in __copy_streambufs_eof() 105 if (traits_type::eq_int_type(__c, traits_type::eof())) in __copy_streambufs_eof()
|
| D | istream.cc | 50 const int_type __idelim = traits_type::to_int_type(__delim); in _GLIBCXX_BEGIN_NAMESPACE() 51 const int_type __eof = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE() 56 && !traits_type::eq_int_type(__c, __eof) in _GLIBCXX_BEGIN_NAMESPACE() 57 && !traits_type::eq_int_type(__c, __idelim)) in _GLIBCXX_BEGIN_NAMESPACE() 65 const char_type* __p = traits_type::find(__sb->gptr(), in _GLIBCXX_BEGIN_NAMESPACE() 70 traits_type::copy(__s, __sb->gptr(), __size); in _GLIBCXX_BEGIN_NAMESPACE() 78 *__s++ = traits_type::to_char_type(__c); in _GLIBCXX_BEGIN_NAMESPACE() 84 if (traits_type::eq_int_type(__c, __eof)) in _GLIBCXX_BEGIN_NAMESPACE() 86 else if (traits_type::eq_int_type(__c, __idelim)) in _GLIBCXX_BEGIN_NAMESPACE() 113 if (traits_type::eq_int_type(__delim, traits_type::eof())) in ignore() [all …]
|
| /openbsd/src/gnu/llvm/libcxx/include/ |
| D | __std_stream | 39 typedef char_traits<char_type> traits_type; 40 typedef typename traits_type::int_type int_type; 41 typedef typename traits_type::pos_type pos_type; 42 typedef typename traits_type::off_type off_type; 43 typedef typename traits_type::state_type state_type; 50 virtual int_type pbackfail(int_type __c = traits_type::eof()); 73 __last_consumed_(traits_type::eof()), 113 __last_consumed_ = traits_type::eof(); 124 return traits_type::eof(); 147 return traits_type::eof(); [all …]
|
| D | sstream | 23 typedef traits traits_type; 24 typedef typename traits_type::int_type int_type; 25 typedef typename traits_type::pos_type pos_type; 26 typedef typename traits_type::off_type off_type; 33 explicit basic_stringbuf(const basic_string<char_type, traits_type, allocator_type>& str, 42 basic_string<char_type, traits_type, allocator_type> str() const; 43 void str(const basic_string<char_type, traits_type, allocator_type>& s); 48 virtual int_type pbackfail(int_type c = traits_type::eof()); 49 virtual int_type overflow (int_type c = traits_type::eof()); 50 virtual basic_streambuf<char_type, traits_type>* setbuf(char_type*, streamsize); [all …]
|
| D | streambuf | 25 typedef traits traits_type; 26 typedef typename traits_type::int_type int_type; 27 typedef typename traits_type::pos_type pos_type; 28 typedef typename traits_type::off_type off_type; 99 virtual int_type pbackfail(int_type c = traits_type::eof()); 103 virtual int_type overflow (int_type c = traits_type::eof()); 132 typedef _Traits traits_type; 133 typedef typename traits_type::int_type int_type; 134 typedef typename traits_type::pos_type pos_type; 135 typedef typename traits_type::off_type off_type; [all …]
|
| D | fstream | 22 typedef traits traits_type; 23 typedef typename traits_type::int_type int_type; 24 typedef typename traits_type::pos_type pos_type; 25 typedef typename traits_type::off_type off_type; 48 virtual int_type pbackfail(int_type c = traits_type::eof()); 49 virtual int_type overflow (int_type c = traits_type::eof()); 50 virtual basic_streambuf<char_type, traits_type>* setbuf(char_type* s, streamsize n); 72 typedef traits traits_type; 73 typedef typename traits_type::int_type int_type; 74 typedef typename traits_type::pos_type pos_type; [all …]
|
| D | istream | 23 typedef traits traits_type; 24 typedef typename traits_type::int_type int_type; 25 typedef typename traits_type::pos_type pos_type; 26 typedef typename traits_type::off_type off_type; 29 explicit basic_istream(basic_streambuf<char_type, traits_type>* sb); 42 basic_istream& operator>>(basic_ios<char_type, traits_type>& 43 (*pf)(basic_ios<char_type, traits_type>&)); 45 basic_istream& operator>>(basic_streambuf<char_type, traits_type>* sb); 66 basic_istream& get(basic_streambuf<char_type,traits_type>& sb); 67 basic_istream& get(basic_streambuf<char_type,traits_type>& sb, char_type delim); [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/bits/ |
| D | streambuf_iterator.h | 58 typedef _Traits traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef 96 : _M_sbuf(0), _M_c(traits_type::eof()) { } in _GLIBCXX_BEGIN_NAMESPACE() 100 : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } in _GLIBCXX_BEGIN_NAMESPACE() 104 : _M_sbuf(__s), _M_c(traits_type::eof()) { } in _GLIBCXX_BEGIN_NAMESPACE() 119 return traits_type::to_char_type(_M_get()); in _GLIBCXX_BEGIN_NAMESPACE() 132 _M_c = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE() 149 _M_c = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE() 170 const int_type __eof = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE() 174 if (!traits_type::eq_int_type(_M_c, __eof)) in _GLIBCXX_BEGIN_NAMESPACE() 176 else if (!traits_type::eq_int_type((__ret = _M_sbuf->sgetc()), in _GLIBCXX_BEGIN_NAMESPACE() [all …]
|
| D | istream.tcc | 62 const __int_type __eof = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE() 67 while (!traits_type::eq_int_type(__c, __eof) in _GLIBCXX_BEGIN_NAMESPACE() 69 traits_type::to_char_type(__c))) in _GLIBCXX_BEGIN_NAMESPACE() 75 if (traits_type::eq_int_type(__c, __eof)) in _GLIBCXX_BEGIN_NAMESPACE() 184 const int_type __eof = traits_type::eof(); in get() 195 if (!traits_type::eq_int_type(__c, __eof)) in get() 224 if (!traits_type::eq_int_type(__cb, traits_type::eof())) in get() 227 __c = traits_type::to_char_type(__cb); in get() 254 const int_type __idelim = traits_type::to_int_type(__delim); in get() 255 const int_type __eof = traits_type::eof(); in get() [all …]
|
| D | sstream.tcc | 54 int_type __ret = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE() 59 const bool __testeof = traits_type::eq_int_type(__c, __ret); in _GLIBCXX_BEGIN_NAMESPACE() 62 const bool __testeq = traits_type::eq(traits_type:: in _GLIBCXX_BEGIN_NAMESPACE() 70 *this->gptr() = traits_type::to_char_type(__c); in _GLIBCXX_BEGIN_NAMESPACE() 77 __ret = traits_type::not_eof(__c); in _GLIBCXX_BEGIN_NAMESPACE() 90 return traits_type::eof(); in overflow() 92 const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); in overflow() 94 return traits_type::not_eof(__c); in overflow() 100 return traits_type::eof(); in overflow() 104 const char_type __conv = traits_type::to_char_type(__c); in overflow() [all …]
|
| D | streambuf.tcc | 60 traits_type::copy(__s, this->gptr(), __len); in _GLIBCXX_BEGIN_NAMESPACE() 69 if (!traits_type::eq_int_type(__c, traits_type::eof())) in _GLIBCXX_BEGIN_NAMESPACE() 71 traits_type::assign(*__s++, traits_type::to_char_type(__c)); in _GLIBCXX_BEGIN_NAMESPACE() 94 traits_type::copy(this->pptr(), __s, __len); in xsputn() 102 int_type __c = this->overflow(traits_type::to_int_type(*__s)); in xsputn() 103 if (!traits_type::eq_int_type(__c, traits_type::eof())) in xsputn()
|
| D | fstream.tcc | 193 int_type __ret = traits_type::eof(); in underflow() 203 return traits_type::to_int_type(*this->gptr()); in underflow() 290 traits_type::copy(this->eback(), in underflow() 312 __ret = traits_type::to_int_type(*this->gptr()); in underflow() 342 int_type __ret = traits_type::eof(); in pbackfail() 349 const bool __testeof = traits_type::eq_int_type(__i, __ret); in pbackfail() 354 __tmp = traits_type::to_int_type(*this->gptr()); in pbackfail() 359 if (traits_type::eq_int_type(__tmp, __ret)) in pbackfail() 374 if (!__testeof && traits_type::eq_int_type(__i, __tmp)) in pbackfail() 377 __ret = traits_type::not_eof(__i); in pbackfail() [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/ext/ |
| D | stdio_sync_filebuf.h | 56 typedef _Traits traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef 57 typedef typename traits_type::int_type int_type; in _GLIBCXX_BEGIN_NAMESPACE() 58 typedef typename traits_type::pos_type pos_type; in _GLIBCXX_BEGIN_NAMESPACE() 59 typedef typename traits_type::off_type off_type; in _GLIBCXX_BEGIN_NAMESPACE() 72 : _M_file(__f), _M_unget_buf(traits_type::eof()) in _GLIBCXX_BEGIN_NAMESPACE() 111 pbackfail(int_type __c = traits_type::eof()) in _GLIBCXX_BEGIN_NAMESPACE() 114 const int_type __eof = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE() 117 if (traits_type::eq_int_type(__c, __eof)) // unget in _GLIBCXX_BEGIN_NAMESPACE() 119 if (!traits_type::eq_int_type(_M_unget_buf, __eof)) in _GLIBCXX_BEGIN_NAMESPACE() 136 overflow(int_type __c = traits_type::eof()) in _GLIBCXX_BEGIN_NAMESPACE() [all …]
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/std/ |
| D | std_fstream.h | 74 typedef _Traits traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef 75 typedef typename traits_type::int_type int_type; in _GLIBCXX_BEGIN_NAMESPACE() 76 typedef typename traits_type::pos_type pos_type; in _GLIBCXX_BEGIN_NAMESPACE() 77 typedef typename traits_type::off_type off_type; in _GLIBCXX_BEGIN_NAMESPACE() 79 typedef basic_streambuf<char_type, traits_type> __streambuf_type; in _GLIBCXX_BEGIN_NAMESPACE() 80 typedef basic_filebuf<char_type, traits_type> __filebuf_type; in _GLIBCXX_BEGIN_NAMESPACE() 82 typedef typename traits_type::state_type __state_type; in _GLIBCXX_BEGIN_NAMESPACE() 429 typedef _Traits traits_type; typedef 430 typedef typename traits_type::int_type int_type; 431 typedef typename traits_type::pos_type pos_type; [all …]
|
| D | std_streambuf.h | 134 typedef _Traits traits_type; typedef 135 typedef typename traits_type::int_type int_type; 136 typedef typename traits_type::pos_type pos_type; 137 typedef typename traits_type::off_type off_type; 146 typedef basic_streambuf<char_type, traits_type> __streambuf_type; 149 friend class basic_ios<char_type, traits_type>; 150 friend class basic_istream<char_type, traits_type>; 151 friend class basic_ostream<char_type, traits_type>; 152 friend class istreambuf_iterator<char_type, traits_type>; 153 friend class ostreambuf_iterator<char_type, traits_type>; [all …]
|
| D | std_sstream.h | 67 typedef _Traits traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef 71 typedef typename traits_type::int_type int_type; in _GLIBCXX_BEGIN_NAMESPACE() 72 typedef typename traits_type::pos_type pos_type; in _GLIBCXX_BEGIN_NAMESPACE() 73 typedef typename traits_type::off_type off_type; in _GLIBCXX_BEGIN_NAMESPACE() 75 typedef basic_streambuf<char_type, traits_type> __streambuf_type; in _GLIBCXX_BEGIN_NAMESPACE() 187 pbackfail(int_type __c = traits_type::eof()); in _GLIBCXX_BEGIN_NAMESPACE() 190 overflow(int_type __c = traits_type::eof()); in _GLIBCXX_BEGIN_NAMESPACE() 266 typedef _Traits traits_type; typedef 270 typedef typename traits_type::int_type int_type; 271 typedef typename traits_type::pos_type pos_type; [all …]
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/include/std/ |
| D | std_fstream.h | 68 typedef _Traits traits_type; typedef 69 typedef typename traits_type::int_type int_type; 70 typedef typename traits_type::pos_type pos_type; 71 typedef typename traits_type::off_type off_type; 79 typedef basic_streambuf<char_type, traits_type> __streambuf_type; 80 typedef basic_filebuf<char_type, traits_type> __filebuf_type; 82 typedef typename traits_type::state_type __state_type; 324 if (traits_type::eq_int_type(_M_really_overflow(), in sync() 325 traits_type::eof())) in sync() 477 typedef _Traits traits_type; typedef [all …]
|
| D | std_sstream.h | 67 typedef _Traits traits_type; typedef 72 typedef typename traits_type::int_type int_type; 73 typedef typename traits_type::pos_type pos_type; 74 typedef typename traits_type::off_type off_type; 82 typedef basic_streambuf<char_type, traits_type> __streambuf_type; 201 return traits_type::to_int_type(*gptr()); in underflow() 203 return traits_type::eof(); in underflow() 208 pbackfail(int_type __c = traits_type::eof()); 212 overflow(int_type __c = traits_type::eof()); 293 typedef _Traits traits_type; typedef [all …]
|
| D | std_streambuf.h | 135 typedef _Traits traits_type; typedef 136 typedef typename traits_type::int_type int_type; 137 typedef typename traits_type::pos_type pos_type; 138 typedef typename traits_type::off_type off_type; 148 typedef basic_streambuf<char_type, traits_type> __streambuf_type; 149 typedef typename traits_type::state_type __state_type; 152 friend class basic_ios<char_type, traits_type>; 153 friend class basic_istream<char_type, traits_type>; 154 friend class basic_ostream<char_type, traits_type>; 155 friend class istreambuf_iterator<char_type, traits_type>; [all …]
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/include/bits/ |
| D | streambuf_iterator.h | 56 typedef _Traits traits_type; typedef 74 : _M_sbuf(0), _M_c(traits_type::eof()) { } in istreambuf_iterator() 77 : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } in throw() 80 : _M_sbuf(__s), _M_c(traits_type::eof()) { } in throw() 85 { return traits_type::to_char_type(_M_get()); } 90 const int_type __eof = traits_type::eof(); 91 if (_M_sbuf && traits_type::eq_int_type(_M_sbuf->sbumpc(), __eof)) 101 const int_type __eof = traits_type::eof(); 104 && traits_type::eq_int_type((__old._M_c = _M_sbuf->sbumpc()), 118 const int_type __eof = traits_type::eof(); in equal() [all …]
|
| D | streambuf.tcc | 56 __ret = traits_type::to_int_type(__c); in sbumpc() 70 if (!__testpos || !traits_type::eq(__c, this->gptr()[-1])) in sputbackc() 71 __ret = this->pbackfail(traits_type::to_int_type(__c)); in sputbackc() 75 __ret = traits_type::to_int_type(*this->gptr()); in sputbackc() 89 __ret = traits_type::to_int_type(*_M_in_cur); in sungetc() 111 __ret = traits_type::to_int_type(__c); in sputc() 114 __ret = this->overflow(traits_type::to_int_type(__c)); in sputc() 131 traits_type::copy(__s, _M_in_cur, __len); in xsgetn() 140 if (!traits_type::eq_int_type(__c, traits_type::eof())) in xsgetn() 142 traits_type::assign(*__s++, traits_type::to_char_type(__c)); in xsgetn() [all …]
|
| D | fstream.tcc | 122 const int_type __eof = traits_type::eof(); in close() 125 && traits_type::eq_int_type(_M_really_overflow(__eof), in close() 182 int_type __ret = traits_type::eof(); in pbackfail() 188 char_type __c = traits_type::to_char_type(__i); in pbackfail() 189 bool __testeof = traits_type::eq_int_type(__i, __ret); in pbackfail() 194 bool __testeq = traits_type::eq(__c, this->gptr()[-1]); in pbackfail() 210 __ret = traits_type::not_eof(__i); in pbackfail() 234 if (!traits_type::eq(__c, *_M_in_cur)) in pbackfail() 242 __ret = traits_type::not_eof(__i); in pbackfail() 255 int_type __ret = traits_type::eof(); in overflow() [all …]
|
| D | sstream.tcc | 49 int_type __ret = traits_type::eof(); in pbackfail() 50 bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); in pbackfail() 57 if (traits_type::eq(traits_type::to_char_type(__c), this->gptr()[-1]) in pbackfail() 66 *_M_in_cur = traits_type::to_char_type(__c); in pbackfail() 72 __ret = traits_type::not_eof(__c); in pbackfail() 83 int_type __ret = traits_type::eof(); in overflow() 84 bool __testeof = traits_type::eq_int_type(__c, __ret); in overflow() 98 __ret = this->sputc(traits_type::to_char_type(__c)); in overflow() 107 *_M_out_cur = traits_type::to_char_type(__c); in overflow() 113 __ret = traits_type::not_eof(__c); in overflow()
|
| D | istream.tcc | 53 const __int_type __eof = traits_type::eof(); in sentry() 59 while (!traits_type::eq_int_type(__c, __eof) in sentry() 61 traits_type::to_char_type(__c))) in sentry() 67 if (traits_type::eq_int_type(__c, __eof)) in sentry() 454 const int_type __eof = traits_type::eof(); in get() 465 if (!traits_type::eq_int_type(__c, __eof)) in get() 494 if (!traits_type::eq_int_type(__cb, traits_type::eof())) in get() 497 __c = traits_type::to_char_type(__cb); in get() 524 const int_type __idelim = traits_type::to_int_type(__delim); in get() 525 const int_type __eof = traits_type::eof(); in get() [all …]
|