Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/libcxx/src/
H A Dstd_stream.h36 typedef char_traits<char_type> traits_type; typedef
37 typedef typename traits_type::int_type int_type;
38 typedef typename traits_type::pos_type pos_type;
39 typedef typename traits_type::off_type off_type;
40 typedef typename traits_type::state_type state_type;
47 virtual int_type pbackfail(int_type __c = traits_type::eof());
73 …: __file_(__fp), __st_(__st), __last_consumed_(traits_type::eof()), __last_consumed_is_next_(false… in __stdinbuf()
137 __last_consumed_ = traits_type::eof(); in __getchar()
145 return traits_type::eof(); in __getchar()
147 if (!__do_ungetc(traits_type::to_int_type(__1buf), __file_, __1buf)) in __getchar()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dsstream25 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;
35 explicit basic_stringbuf(const basic_string<char_type, traits_type, allocator_type>& s,
40 explicit basic_stringbuf(basic_string<char_type, traits_type, allocator_type>&& s,
43 basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s, const allocator_type& a)
46 basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s,
49 explicit basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s,
69 … basic_string<char_type, traits_type, allocator_type> str() const; // before C++20
[all …]
H A Dstreambuf25 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());
135 typedef _Traits traits_type;
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;
[all …]
H A Distream23 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 …]
H A Dfstream22 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 …]
H A Dstring_view75 typedef traits traits_type;
263 using traits_type = _Traits;
286 static_assert(is_same<_CharT, typename traits_type::char_type>::value,
287 "traits_type::char_type must be the same type as CharT");
427 …return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __s.data(), __pos…
431 return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __c, __pos);
436 … return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
441 return std::__str_find<value_type, size_type, traits_type, npos>(
442 data(), size(), __s, __pos, traits_type::length(__s));
448 …return std::__str_rfind<value_type, size_type, traits_type, npos>(data(), size(), __s.data(), __po…
[all …]
H A Dios120 typedef traits traits_type;
552 typedef _Traits traits_type;
554 typedef typename traits_type::int_type int_type;
555 typedef typename traits_type::pos_type pos_type;
556 typedef typename traits_type::off_type off_type;
558 static_assert(is_same<_CharT, typename traits_type::char_type>::value,
559 "traits_type::char_type must be the same type as CharT");
578 _LIBCPP_HIDE_FROM_ABI explicit basic_ios(basic_streambuf<char_type, traits_type>* __sb);
582 _LIBCPP_HIDE_FROM_ABI basic_ostream<char_type, traits_type>* tie() const;
583 …_LIBCPP_HIDE_FROM_ABI basic_ostream<char_type, traits_type>* tie(basic_ostream<char_type, traits_t…
[all …]
H A Dstring88 typedef traits traits_type;
89 typedef typename traits_type::char_type value_type;
722 typedef _Traits traits_type;
782 static_assert(is_same<_CharT, typename traits_type::char_type>::value,
783 "traits_type::char_type must be the same type as CharT");
970 __init(__s, traits_type::length(__s));
976 __init(__s, traits_type::length(__s));
1485 traits_type::assign(*__dest++, *__first);
1500 traits_type::move(__p + __ip + __n, __p + __ip, __n_move);
1507 traits_type::assign(__p[__sz], value_type());
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dsstream25 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;
35 explicit basic_stringbuf(const basic_string<char_type, traits_type, allocator_type>& s,
40 explicit basic_stringbuf(basic_string<char_type, traits_type, allocator_type>&& s,
43 basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s, const allocator_type& a)
46 basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s,
49 explicit basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s,
69 … basic_string<char_type, traits_type, allocator_type> str() const; // before C++20
[all …]
H A Dstreambuf25 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());
141 typedef _Traits traits_type;
142 typedef typename traits_type::int_type int_type;
143 typedef typename traits_type::pos_type pos_type;
144 typedef typename traits_type::off_type off_type;
[all …]
H A Distream23 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 …]
H A Dfstream22 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 …]
H A Dsyncstream43 using traits_type = traits;
88 using traits_type = traits;
253 using traits_type = _Traits;
254 using int_type = typename traits_type::int_type;
255 using pos_type = typename traits_type::pos_type;
256 using off_type = typename traits_type::off_type;
337 int_type overflow(int_type __c = traits_type::eof()) override {
338 if (traits_type::eq_int_type(__c, traits_type::eof()))
339 return traits_type::not_eof(__c);
355 return traits_type::eof();
[all …]
H A Dios120 typedef traits traits_type;
566 typedef _Traits traits_type;
568 typedef typename traits_type::int_type int_type;
569 typedef typename traits_type::pos_type pos_type;
570 typedef typename traits_type::off_type off_type;
572 static_assert(is_same<_CharT, typename traits_type::char_type>::value,
573 "traits_type::char_type must be the same type as CharT");
596 _LIBCPP_HIDE_FROM_ABI explicit basic_ios(basic_streambuf<char_type, traits_type>* __sb);
600 _LIBCPP_HIDE_FROM_ABI basic_ostream<char_type, traits_type>* tie() const;
601 …_LIBCPP_HIDE_FROM_ABI basic_ostream<char_type, traits_type>* tie(basic_ostream<char_type, traits_t…
[all …]
H A Dstring_view75 typedef traits traits_type;
284 using traits_type = _Traits;
310 static_assert(is_same<_CharT, typename traits_type::char_type>::value,
311 "traits_type::char_type must be the same type as CharT");
504 …return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __s.data(), __pos…
508 return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __c, __pos);
514 … return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
520 return std::__str_find<value_type, size_type, traits_type, npos>(
521 data(), size(), __s, __pos, traits_type::length(__s));
528 …return std::__str_rfind<value_type, size_type, traits_type, npos>(data(), size(), __s.data(), __po…
[all …]
H A Dstring88 typedef traits traits_type;
89 typedef typename traits_type::char_type value_type;
732 using traits_type = _Traits;
803 static_assert(is_same<_CharT, typename traits_type::char_type>::value,
804 "traits_type::char_type must be the same type as CharT");
1063 __init(__s, traits_type::length(__s));
1071 __init(__s, traits_type::length(__s));
1433 traits_type::assign(*__end, value_type());
1786 …return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __str.data(), __p…
1793 …return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __sv.data(), __po…
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__locale_dir/
H A Dwbuffer_convert.h36 typedef _Tr traits_type; typedef
37 typedef typename traits_type::int_type int_type;
38 typedef typename traits_type::pos_type pos_type;
39 typedef typename traits_type::off_type off_type;
84 _LIBCPP_HIDE_FROM_ABI_VIRTUAL virtual int_type pbackfail(int_type __c = traits_type::eof());
85 _LIBCPP_HIDE_FROM_ABI_VIRTUAL virtual int_type overflow(int_type __c = traits_type::eof());
86 …_LIBCPP_HIDE_FROM_ABI_VIRTUAL virtual basic_streambuf<char_type, traits_type>* setbuf(char_type* _…
132 return traits_type::eof(); in underflow()
138 int_type __c = traits_type::eof(); in underflow()
189 if (traits_type::eq_int_type(__c, traits_type::eof())) { in pbackfail()
[all …]
/freebsd/contrib/kyua/utils/process/
H A Dsystembuf.cpp106 return traits_type::eof(); in underflow()
110 return traits_type::to_int_type(*gptr()); in underflow()
129 return traits_type::eof(); in overflow()
130 if (!traits_type::eq_int_type(c, traits_type::eof())) { in overflow()
131 traits_type::assign(*pptr(), c); in overflow()
134 return traits_type::not_eof(c); in overflow()
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__ostream/
H A Dbasic_ostream.h44 typedef _Traits traits_type; typedef
45 typedef typename traits_type::int_type int_type;
46 typedef typename traits_type::pos_type pos_type;
47 typedef typename traits_type::off_type off_type;
50 …BCPP_HIDE_FROM_ABI_AFTER_V1 explicit basic_ostream(basic_streambuf<char_type, traits_type>* __sb) { in basic_ostream()
65 basic_ios<char_type, traits_type>::swap(__rhs); in swap()
78 operator<<(basic_ios<char_type, traits_type>& (*__pf)(basic_ios<char_type, traits_type>&)) {
102 basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
172 basic_ostream<_CharT, _Traits>::operator<<(basic_streambuf<char_type, traits_type>* __sb) {
218 typedef num_put<char_type, ostreambuf_iterator<char_type, traits_type> > _Fp;
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__iterator/
H A Dostreambuf_iterator.h37 typedef _Traits traits_type; typedef
48 if (__sbuf_ && traits_type::eq_int_type(__sbuf_->sputc(__c), traits_type::eof()))
H A Distreambuf_iterator.h38 typedef _Traits traits_type; typedef
57 if (__sbuf_ && traits_type::eq_int_type(__sbuf_->sgetc(), traits_type::eof())) in __test_for_eof()
/freebsd/contrib/llvm-project/libcxx/include/__iterator/
H A Dostreambuf_iterator.h48 typedef _Traits traits_type; typedef
59 if (__sbuf_ && traits_type::eq_int_type(__sbuf_->sputc(__c), traits_type::eof()))
H A Distreambuf_iterator.h44 typedef _Traits traits_type; typedef
63 if (__sbuf_ && traits_type::eq_int_type(__sbuf_->sgetc(), traits_type::eof())) in __test_for_eof()
/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Distream_view.h115 typename _UnCVRef::traits_type>>
118 … typename _UnCVRef::traits_type>(std::forward<_Up>(__u))))
120 … typename _UnCVRef::traits_type>(std::forward<_Up>(__u)))
122 … typename _UnCVRef::traits_type>(std::forward<_Up>(__u));
/freebsd/contrib/llvm-project/libcxx/include/__ostream/
H A Dbasic_ostream.h50 typedef _Traits traits_type; typedef
51 typedef typename traits_type::int_type int_type;
52 typedef typename traits_type::pos_type pos_type;
53 typedef typename traits_type::off_type off_type;
56 …BCPP_HIDE_FROM_ABI_AFTER_V1 explicit basic_ostream(basic_streambuf<char_type, traits_type>* __sb) { in basic_ostream()
71 basic_ios<char_type, traits_type>::swap(__rhs); in swap()
84 operator<<(basic_ios<char_type, traits_type>& (*__pf)(basic_ios<char_type, traits_type>&)) {
101 using _Fp = num_put<char_type, ostreambuf_iterator<char_type, traits_type> >; in __put_num()
123 using _Fp = num_put<char_type, ostreambuf_iterator<char_type, traits_type> >; in __put_num_integer_promote()
163 basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
[all …]

12