Home
last modified time | relevance | path

Searched refs:traits_type (Results 1 – 25 of 99) sorted by relevance

1234

/openbsd/gnu/gcc/libstdc++-v3/src/
H A Dstreambuf.cc43 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()
H A Distream.cc51 const int_type __eof = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE()
56 && !traits_type::eq_int_type(__c, __eof) 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()
113 if (traits_type::eq_int_type(__delim, traits_type::eof())) in ignore()
132 && !traits_type::eq_int_type(__c, __eof) in ignore()
133 && !traits_type::eq_int_type(__c, __delim)) in ignore()
156 && !traits_type::eq_int_type(__c, __eof) in ignore()
169 if (traits_type::eq_int_type(__c, __eof)) in ignore()
493 if (traits_type::eq_int_type(__delim, traits_type::eof())) in ignore()
[all …]
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/27_io/
H A Dstreambuf_members.cc43 typedef std::streambuf::traits_type traits_type; typedef in testbuf
95 typedef testbuf::traits_type traits_type; in test01() typedef
160 typedef testbuf::traits_type traits_type; in test02() typedef
263 return traits_type::eof(); in overflow()
343 typedef std::streambuf::traits_type traits_type; typedef in testbuf2
393 typedef std::streambuf::traits_type traits_type; typedef in Outbuf
400 if (!traits_type::eq_int_type(c, traits_type::eof())) in overflow()
402 return traits_type::not_eof(c); in overflow()
452 return traits_type::not_eof(c); in overflow()
480 return traits_type::eof(); in underflow()
[all …]
/openbsd/gnu/llvm/libcxx/include/
H A D__std_stream73 __last_consumed_(traits_type::eof()),
124 return traits_type::eof();
157 return traits_type::eof();
169 return traits_type::eof();
181 if (traits_type::eq_int_type(__c, traits_type::eof()))
208 return traits_type::eof();
212 return traits_type::eof();
266 if (!traits_type::eq_int_type(__c, traits_type::eof()))
272 return traits_type::eof();
309 return traits_type::not_eof(__c);
[all …]
H A Dsstream24 typedef typename traits_type::int_type int_type;
25 typedef typename traits_type::pos_type pos_type;
506 return traits_type::eof();
517 if (traits_type::eq_int_type(__c, traits_type::eof()))
520 return traits_type::not_eof(__c);
523 traits_type::eq(traits_type::to_char_type(__c), this->gptr()[-1]))
530 return traits_type::eof();
537 if (!traits_type::eq_int_type(__c, traits_type::eof()))
543 return traits_type::eof();
560 return traits_type::eof();
[all …]
H A Dstreambuf25 typedef traits traits_type;
26 typedef typename traits_type::int_type int_type;
183 if (sbumpc() == traits_type::eof())
184 return traits_type::eof();
227 return traits_type::to_int_type(__c);
438 return traits_type::eof();
445 if (underflow() == traits_type::eof())
446 return traits_type::eof();
454 return traits_type::eof();
462 int_type __eof = traits_type::eof();
[all …]
H A Dfstream23 typedef typename traits_type::int_type int_type;
24 typedef typename traits_type::pos_type pos_type;
732 return traits_type::eof();
738 int_type __c = traits_type::eof();
805 if (traits_type::eq_int_type(__c, traits_type::eof()))
811 traits_type::eq(traits_type::to_char_type(__c), this->gptr()[-1]))
818 return traits_type::eof();
826 return traits_type::eof();
831 if (!traits_type::eq_int_type(__c, traits_type::eof()))
844 return traits_type::eof();
[all …]
H A Distream254 if (__ch != traits_type::eof())
748 int_type __r = traits_type::eof();
757 if (traits_type::eq_int_type(__r, traits_type::eof()))
795 if (traits_type::eq_int_type(__i, traits_type::eof()))
855 if (traits_type::eq_int_type(__i, traits_type::eof()))
863 if (traits_type::eq_int_type(__sb.sputc(__ch), traits_type::eof()))
899 if (traits_type::eq_int_type(__i, traits_type::eof()))
963 if (traits_type::eq_int_type(__i, traits_type::eof()))
978 if (traits_type::eq_int_type(__i, traits_type::eof()))
1011 int_type __r = traits_type::eof();
[all …]
/openbsd/gnu/gcc/libstdc++-v3/include/bits/
H A Dstreambuf_iterator.h58 typedef _Traits traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef
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()
188 const int_type __eof = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE()
329 typedef typename __is_iterator_type::traits_type traits_type; in __copy_aux() typedef
337 while (!traits_type::eq_int_type(__c, traits_type::eof())) in __copy_aux()
364 typedef typename __is_iterator_type::traits_type traits_type; in find() typedef
373 while (!traits_type::eq_int_type(__c, traits_type::eof()) in find()
[all …]
H A Distream.tcc69 traits_type::to_char_type(__c))) in _GLIBCXX_BEGIN_NAMESPACE()
75 if (traits_type::eq_int_type(__c, __eof)) in _GLIBCXX_BEGIN_NAMESPACE()
224 if (!traits_type::eq_int_type(__cb, traits_type::eof())) in get()
227 __c = traits_type::to_char_type(__cb); in get()
260 && !traits_type::eq_int_type(__c, __eof) in get()
263 *__s++ = traits_type::to_char_type(__c); in get()
308 __c2 = traits_type::to_char_type(__c); in get()
433 && !traits_type::eq_int_type(__c, __eof)) in ignore()
483 && !traits_type::eq_int_type(__c, __eof) in ignore()
525 int_type __c = traits_type::eof(); in peek()
[all …]
H A Dsstream.tcc54 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()
139 int_type __ret = traits_type::eof(); in underflow()
[all …]
H A Dstreambuf.tcc60 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()
H A Dfstream.tcc193 int_type __ret = traits_type::eof(); in underflow()
290 traits_type::copy(this->eback(), in underflow()
342 int_type __ret = traits_type::eof(); in pbackfail()
377 __ret = traits_type::not_eof(__i); in pbackfail()
394 int_type __ret = traits_type::eof(); in overflow()
414 __ret = traits_type::not_eof(__c); in overflow()
429 __ret = traits_type::not_eof(__c); in overflow()
438 __ret = traits_type::not_eof(__c); in overflow()
766 if (traits_type::eq_int_type(__tmp, traits_type::eof())) in _M_terminate_output()
810 if (traits_type::eq_int_type(__tmp, traits_type::eof())) in _M_terminate_output()
[all …]
/openbsd/gnu/gcc/libstdc++-v3/include/ext/
H A Dstdio_sync_filebuf.h56 typedef _Traits traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef
114 const int_type __eof = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE()
136 overflow(int_type __c = traits_type::eof()) in _GLIBCXX_BEGIN_NAMESPACE()
139 if (traits_type::eq_int_type(__c, traits_type::eof())) in _GLIBCXX_BEGIN_NAMESPACE()
142 __ret = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE()
144 __ret = traits_type::not_eof(__c); in _GLIBCXX_BEGIN_NAMESPACE()
210 _M_unget_buf = traits_type::eof(); in xsgetn()
240 const int_type __eof = traits_type::eof(); in xsgetn()
244 if (traits_type::eq_int_type(__c, __eof)) in xsgetn()
246 __s[__ret] = traits_type::to_char_type(__c); in xsgetn()
[all …]
/openbsd/gnu/gcc/libstdc++-v3/include/std/
H A Dstd_fstream.h75 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()
429 typedef _Traits traits_type; typedef
430 typedef typename traits_type::int_type int_type;
431 typedef typename traits_type::pos_type pos_type;
432 typedef typename traits_type::off_type off_type;
557 typedef _Traits traits_type; typedef
558 typedef typename traits_type::int_type int_type;
559 typedef typename traits_type::pos_type pos_type;
[all …]
H A Dstd_streambuf.h134 typedef _Traits traits_type; typedef
149 friend class basic_ios<char_type, traits_type>;
297 int_type __ret = traits_type::eof(); in snextc()
318 __ret = traits_type::to_int_type(*this->gptr()); in sbumpc()
339 __ret = traits_type::to_int_type(*this->gptr()); in sgetc()
378 __ret = traits_type::to_int_type(*this->gptr()); in sputbackc()
427 __ret = traits_type::to_int_type(__c); in sputc()
684 { return traits_type::eof(); } in underflow()
698 int_type __ret = traits_type::eof(); in uflow()
721 { return traits_type::eof(); }
[all …]
H A Dstd_sstream.h67 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()
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;
379 typedef _Traits traits_type; typedef
[all …]
/openbsd/gnu/lib/libstdc++/libstdc++/include/std/
H A Dstd_fstream.h69 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;
324 if (traits_type::eq_int_type(_M_really_overflow(), in sync()
325 traits_type::eof())) in sync()
477 typedef _Traits traits_type; typedef
478 typedef typename traits_type::int_type int_type;
479 typedef typename traits_type::pos_type pos_type;
480 typedef typename traits_type::off_type off_type;
600 typedef _Traits traits_type; typedef
[all …]
H A Dstd_sstream.h67 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;
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
412 typedef _Traits traits_type; typedef
[all …]
H A Dstd_streambuf.h135 typedef _Traits traits_type; typedef
136 typedef typename traits_type::int_type int_type;
152 friend class basic_ios<char_type, traits_type>;
269 traits_type::copy(_M_pback, _M_in_cur, __len); in _M_pback_create()
464 int_type __eof = traits_type::eof(); in snextc()
493 __ret = traits_type::to_int_type(*(this->gptr())); in sgetc()
809 { return traits_type::eof(); } in underflow()
823 int_type __ret = traits_type::eof(); in uflow()
828 __ret = traits_type::to_int_type(*_M_in_cur); in uflow()
848 { return traits_type::eof(); }
[all …]
/openbsd/gnu/lib/libstdc++/libstdc++/include/bits/
H A Dstreambuf_iterator.h56 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();
101 const int_type __eof = traits_type::eof();
118 const int_type __eof = traits_type::eof(); in equal()
129 const int_type __eof = traits_type::eof(); in _M_get()
133 if (!traits_type::eq_int_type(_M_c, __eof)) in _M_get()
[all …]
H A Dstreambuf.tcc56 __ret = traits_type::to_int_type(__c); in sbumpc()
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()
170 traits_type::copy(_M_out_cur, __s, __len); in xsputn()
[all …]
H A Dfstream.tcc182 int_type __ret = traits_type::eof(); in pbackfail()
210 __ret = traits_type::not_eof(__i); in pbackfail()
242 __ret = traits_type::not_eof(__i); in pbackfail()
255 int_type __ret = traits_type::eof(); in overflow()
261 if (traits_type::eq_int_type(__c, traits_type::eof())) in overflow()
262 __ret = traits_type::not_eof(__c); in overflow()
267 __ret = traits_type::not_eof(__c); in overflow()
347 int_type __ret = traits_type::eof(); in _M_really_overflow()
378 if (!traits_type::eq_int_type(__c, traits_type::eof())) in _M_really_overflow()
388 __ret = traits_type::not_eof(__c); in _M_really_overflow()
[all …]
H A Dsstream.tcc49 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()
H A Distream.tcc53 const __int_type __eof = traits_type::eof(); in sentry()
61 traits_type::to_char_type(__c))) in sentry()
67 if (traits_type::eq_int_type(__c, __eof)) in sentry()
494 if (!traits_type::eq_int_type(__cb, traits_type::eof())) in get()
497 __c = traits_type::to_char_type(__cb); in get()
530 && !traits_type::eq_int_type(__c, __eof) in get()
533 *__s++ = traits_type::to_char_type(__c); in get()
575 __c2 = traits_type::to_char_type(__c); in get()
611 *__s++ = traits_type::to_char_type(__c); in getline()
679 int_type __c = traits_type::eof(); in peek()
[all …]

1234