Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/libstdc++/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 …]
H A Dcompatibility.cc73 const int_type __eof = traits_type::eof(); in _GLIBCXX_BEGIN_NAMESPACE()
82 && !traits_type::eq_int_type(__c, __eof)) in _GLIBCXX_BEGIN_NAMESPACE()
100 && !traits_type::eq_int_type(__c, __eof)) in _GLIBCXX_BEGIN_NAMESPACE()
112 if (traits_type::eq_int_type(__c, __eof)) in _GLIBCXX_BEGIN_NAMESPACE()
139 const int_type __eof = traits_type::eof(); in ignore()
147 && !traits_type::eq_int_type(__c, __eof)) in ignore()
165 && !traits_type::eq_int_type(__c, __eof)) in ignore()
177 if (traits_type::eq_int_type(__c, __eof)) in ignore()
/freebsd-12.1/contrib/libc++/include/
H A D__std_stream74 __last_consumed_(traits_type::eof()),
125 return traits_type::eof();
158 return traits_type::eof();
170 return traits_type::eof();
182 if (traits_type::eq_int_type(__c, traits_type::eof()))
209 return traits_type::eof();
213 return traits_type::eof();
267 if (!traits_type::eq_int_type(__c, traits_type::eof()))
273 return traits_type::eof();
310 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;
498 return traits_type::eof();
509 if (traits_type::eq_int_type(__c, traits_type::eof()))
512 return traits_type::not_eof(__c);
515 traits_type::eq(traits_type::to_char_type(__c), this->gptr()[-1]))
522 return traits_type::eof();
529 if (!traits_type::eq_int_type(__c, traits_type::eof()))
535 return traits_type::eof();
552 return traits_type::eof();
[all …]
H A Dstreambuf26 typedef traits traits_type;
27 typedef typename traits_type::int_type int_type;
181 if (sbumpc() == traits_type::eof())
182 return traits_type::eof();
225 return traits_type::to_int_type(__c);
436 return traits_type::eof();
443 if (underflow() == traits_type::eof())
444 return traits_type::eof();
452 return traits_type::eof();
460 int_type __eof = traits_type::eof();
[all …]
H A Dfstream24 typedef typename traits_type::int_type int_type;
25 typedef typename traits_type::pos_type pos_type;
715 return traits_type::eof();
721 int_type __c = traits_type::eof();
786 if (traits_type::eq_int_type(__c, traits_type::eof()))
792 traits_type::eq(traits_type::to_char_type(__c), this->gptr()[-1]))
799 return traits_type::eof();
807 return traits_type::eof();
812 if (!traits_type::eq_int_type(__c, traits_type::eof()))
825 return traits_type::eof();
[all …]
H A Distream256 if (__ch != traits_type::eof())
732 int_type __r = traits_type::eof();
741 if (traits_type::eq_int_type(__r, traits_type::eof()))
774 if (traits_type::eq_int_type(__i, traits_type::eof()))
828 if (traits_type::eq_int_type(__i, traits_type::eof()))
836 if (traits_type::eq_int_type(__sb.sputc(__ch), traits_type::eof()))
877 if (traits_type::eq_int_type(__i, traits_type::eof()))
934 if (traits_type::eq_int_type(__i, traits_type::eof()))
949 if (traits_type::eq_int_type(__i, traits_type::eof()))
976 int_type __r = traits_type::eof();
[all …]
H A Dios120 typedef traits traits_type;
589 typedef _Traits traits_type;
591 typedef typename traits_type::int_type int_type;
592 typedef typename traits_type::pos_type pos_type;
593 typedef typename traits_type::off_type off_type;
630 basic_ostream<char_type, traits_type>* tie() const;
632 basic_ostream<char_type, traits_type>* tie(basic_ostream<char_type, traits_type>* __tiestr);
637 basic_streambuf<char_type, traits_type>* rdbuf(basic_streambuf<char_type, traits_type>* __sb);
672 basic_ostream<char_type, traits_type>* __tie_;
695 __fill_ = traits_type::eof();
[all …]
H A Dstring_view60 typedef traits traits_type;
198 typedef _Traits traits_type;
397 return __str_find<value_type, size_type, traits_type, npos>
404 return __str_find<value_type, size_type, traits_type, npos>
412 return __str_find<value_type, size_type, traits_type, npos>
420 return __str_find<value_type, size_type, traits_type, npos>
421 (data(), size(), __s, __pos, traits_type::length(__s));
453 (data(), size(), __s, __pos, traits_type::length(__s));
482 (data(), size(), __s, __pos, traits_type::length(__s));
511 (data(), size(), __s, __pos, traits_type::length(__s));
[all …]
H A Dostream24 typedef traits traits_type;
25 typedef typename traits_type::int_type int_type;
26 typedef typename traits_type::pos_type pos_type;
27 typedef typename traits_type::off_type off_type;
158 typedef _Traits traits_type;
159 typedef typename traits_type::int_type int_type;
160 typedef typename traits_type::pos_type pos_type;
161 typedef typename traits_type::off_type off_type;
165 explicit basic_ostream(basic_streambuf<char_type, traits_type>* __sb)
179 { basic_ios<char_type, traits_type>::swap(__rhs); }
[all …]
/freebsd-12.1/contrib/libstdc++/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 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()
768 if (traits_type::eq_int_type(__tmp, traits_type::eof())) in _M_terminate_output()
812 if (traits_type::eq_int_type(__tmp, traits_type::eof())) in _M_terminate_output()
[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 Dbasic_string.tcc731 if (traits_type::eq(__data[__pos], __s[0]) in find()
732 && traits_type::compare(__data + __pos + 1, in find()
789 if (traits_type::eq(_M_data()[__size], __c)) in rfind()
823 if (traits_type::find(__s, __n, _M_data()[__size])) in find_last_of()
838 if (!traits_type::find(__s, __n, _M_data()[__pos])) in find_first_not_of()
849 if (!traits_type::eq(_M_data()[__pos], __c)) in find_first_not_of()
867 if (!traits_type::find(__s, __n, _M_data()[__size])) in find_last_not_of()
887 if (!traits_type::eq(_M_data()[__size], __c)) in find_last_not_of()
921 int __r = traits_type::compare(_M_data() + __pos1, in compare()
935 const size_type __osize = traits_type::length(__s); in compare()
[all …]
H A Dbasic_string.h117 typedef _Traits traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef
344 traits_type::assign(*__d, *__s); in _GLIBCXX_BEGIN_NAMESPACE()
346 traits_type::copy(__d, __s, __n); in _GLIBCXX_BEGIN_NAMESPACE()
353 traits_type::assign(*__d, *__s); in _GLIBCXX_BEGIN_NAMESPACE()
355 traits_type::move(__d, __s, __n); in _GLIBCXX_BEGIN_NAMESPACE()
362 traits_type::assign(*__d, __c); in _GLIBCXX_BEGIN_NAMESPACE()
364 traits_type::assign(__d, __n, __c); in _GLIBCXX_BEGIN_NAMESPACE()
837 return this->append(__s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE()
874 traits_type::assign(_M_data()[this->size()], __c); in _GLIBCXX_BEGIN_NAMESPACE()
930 return this->assign(__s, traits_type::length(__s)); in _GLIBCXX_BEGIN_NAMESPACE()
[all …]
/freebsd-12.1/contrib/libstdc++/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 …]
H A Dvstring_util.h56 typedef _Traits traits_type; typedef
115 traits_type::assign(*__d, *__s); in _S_copy()
117 traits_type::copy(__d, __s, __n); in _S_copy()
124 traits_type::assign(*__d, *__s); in _S_move()
126 traits_type::move(__d, __s, __n); in _S_move()
133 traits_type::assign(*__d, __c); in _S_assign()
135 traits_type::assign(__d, __n, __c); in _S_assign()
145 traits_type::assign(*__p, *__k1); // These types are off. in _S_copy_chars()
H A Dvstring.tcc283 if (traits_type::eq(__data[__pos], __s[0]) in find()
284 && traits_type::compare(__data + __pos + 1, in find()
344 if (traits_type::eq(this->_M_data()[__size], __c)) in rfind()
359 const _CharT* __p = traits_type::find(__s, __n, in find_first_of()
397 if (!traits_type::find(__s, __n, this->_M_data()[__pos])) in find_first_not_of()
409 if (!traits_type::eq(this->_M_data()[__pos], __c)) in find_first_not_of()
449 if (!traits_type::eq(this->_M_data()[__size], __c)) in find_last_not_of()
467 int __r = traits_type::compare(this->_M_data() + __pos, in compare()
486 int __r = traits_type::compare(this->_M_data() + __pos1, in compare()
501 const size_type __osize = traits_type::length(__s); in compare()
[all …]
H A Dstdio_filebuf.h57 typedef _Traits traits_type; in _GLIBCXX_BEGIN_NAMESPACE() typedef
58 typedef typename traits_type::int_type int_type; in _GLIBCXX_BEGIN_NAMESPACE()
59 typedef typename traits_type::pos_type pos_type; in _GLIBCXX_BEGIN_NAMESPACE()
60 typedef typename traits_type::off_type off_type; in _GLIBCXX_BEGIN_NAMESPACE()
/freebsd-12.1/contrib/libstdc++/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()
268 typedef _Traits traits_type; typedef
272 typedef typename traits_type::int_type int_type;
273 typedef typename traits_type::pos_type pos_type;
381 typedef _Traits traits_type; typedef
[all …]

12