Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/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 Dsstream23 typedef typename traits_type::int_type int_type;
24 typedef typename traits_type::pos_type pos_type;
501 return traits_type::eof();
512 if (traits_type::eq_int_type(__c, traits_type::eof()))
515 return traits_type::not_eof(__c);
518 traits_type::eq(traits_type::to_char_type(__c), this->gptr()[-1]))
525 return traits_type::eof();
532 if (!traits_type::eq_int_type(__c, traits_type::eof()))
538 return traits_type::eof();
555 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;
729 return traits_type::eof();
735 int_type __c = traits_type::eof();
800 if (traits_type::eq_int_type(__c, traits_type::eof()))
806 traits_type::eq(traits_type::to_char_type(__c), this->gptr()[-1]))
813 return traits_type::eof();
821 return traits_type::eof();
826 if (!traits_type::eq_int_type(__c, traits_type::eof()))
839 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 …]
H A Dios119 typedef traits traits_type;
610 typedef _Traits traits_type;
612 typedef typename traits_type::int_type int_type;
613 typedef typename traits_type::pos_type pos_type;
614 typedef typename traits_type::off_type off_type;
650 basic_ostream<char_type, traits_type>* tie(basic_ostream<char_type, traits_type>* __tiestr);
655 basic_streambuf<char_type, traits_type>* rdbuf(basic_streambuf<char_type, traits_type>* __sb);
688 basic_ostream<char_type, traits_type>* __tie_;
711 __fill_ = traits_type::eof();
783 if (traits_type::eq_int_type(traits_type::eof(), __fill_))
[all …]
H A Dstring_view67 typedef traits traits_type;
270 typedef _Traits traits_type;
331 typename remove_reference_t<_Range>::traits_type;
504 return __str_find<value_type, size_type, traits_type, npos>
511 return __str_find<value_type, size_type, traits_type, npos>
519 return __str_find<value_type, size_type, traits_type, npos>
527 return __str_find<value_type, size_type, traits_type, npos>
528 (data(), size(), __s, __pos, traits_type::length(__s));
560 (data(), size(), __s, __pos, traits_type::length(__s));
589 (data(), size(), __s, __pos, traits_type::length(__s));
[all …]
H A Dostream23 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;
191 typedef _Traits traits_type;
192 typedef typename traits_type::int_type int_type;
193 typedef typename traits_type::pos_type pos_type;
194 typedef typename traits_type::off_type off_type;
198 explicit basic_ostream(basic_streambuf<char_type, traits_type>* __sb)
211 { basic_ios<char_type, traits_type>::swap(__rhs); }
[all …]
H A Dstring81 typedef traits traits_type;
843 __init(__s, traits_type::length(__s));
1983 __init(__s, traits_type::length(__s));
2270 traits_type::assign(*__p, *__first);
2271 traits_type::assign(*__p, value_type());
2434 traits_type::move(__p, __s, __n);
2466 traits_type::assign(__p, __n, __c);
2486 traits_type::assign(*__p, __c);
2487 traits_type::assign(*++__p, value_type());
2767 traits_type::assign(*__p, __c);
[all …]
/llvm-project-15.0.7/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/
H A Dpbackfail.pass.cpp36 typedef base::traits_type traits_type; typedef
45 virtual int_type pbackfail(int_type c = traits_type::eof()) {return base::pbackfail(c);} in pbackfail()
55 assert(f.pbackfail(L'a') == test_buf::traits_type::eof()); in main()
62 assert(f.pbackfail(L'a') == test_buf::traits_type::eof()); in main()
H A Dunderflow.pass.cpp36 typedef base::traits_type traits_type; typedef
89 assert(f.sbumpc() == test_buf::traits_type::eof()); in main()
H A Doverflow.pass.cpp34 typedef base::traits_type traits_type; typedef
43 virtual int_type overflow(int_type c = traits_type::eof()) {return base::overflow(c);} in overflow()
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.cons/
H A Dstring_view_deduction.pass.cpp52 static_assert(std::is_same_v<S::traits_type, std::char_traits<char>>, ""); in test()
63 static_assert(std::is_same_v<S::traits_type, std::char_traits<char>>, ""); in test()
74 static_assert(std::is_same_v<S::traits_type, std::char_traits<wchar_t>>, ""); in test()
86 static_assert(std::is_same_v<S::traits_type, std::char_traits<char8_t>>, ""); in test()
97 static_assert(std::is_same_v<S::traits_type, std::char_traits<char16_t>>, ""); in test()
107 static_assert(std::is_same_v<S::traits_type, std::char_traits<char32_t>>, ""); in test()
H A Dstring_view_size_size_deduction.pass.cpp56 static_assert(std::is_same_v<S::traits_type, std::char_traits<char>>, ""); in test()
67 static_assert(std::is_same_v<S::traits_type, std::char_traits<char>>, ""); in test()
78 static_assert(std::is_same_v<S::traits_type, std::char_traits<wchar_t>>, ""); in test()
90 static_assert(std::is_same_v<S::traits_type, std::char_traits<char8_t>>, ""); in test()
101 static_assert(std::is_same_v<S::traits_type, std::char_traits<char16_t>>, ""); in test()
111 static_assert(std::is_same_v<S::traits_type, std::char_traits<char32_t>>, ""); in test()
H A Diter_alloc_deduction.pass.cpp58 static_assert(std::is_same_v<S::traits_type, std::char_traits<char>>, ""); in test()
68 static_assert(std::is_same_v<S::traits_type, std::char_traits<char>>, ""); in test()
78 static_assert(std::is_same_v<S::traits_type, std::char_traits<wchar_t>>, ""); in test()
88 static_assert(std::is_same_v<S::traits_type, std::char_traits<char16_t>>, ""); in test()
98 static_assert(std::is_same_v<S::traits_type, std::char_traits<char32_t>>, ""); in test()
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.nonmembers/string.io/
H A Dstream_insert.pass.cpp60 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
68 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
78 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
86 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
/llvm-project-15.0.7/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/
H A Dtypes.pass.cpp52 static_assert((std::is_same<I1::traits_type, std::char_traits<char> >::value), ""); in main()
53 static_assert((std::is_same<I1::int_type, I1::traits_type::int_type>::value), ""); in main()
74 static_assert((std::is_same<I2::traits_type, std::char_traits<wchar_t> >::value), ""); in main()
75 static_assert((std::is_same<I2::int_type, I2::traits_type::int_type>::value), ""); in main()
/llvm-project-15.0.7/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/
H A Dpbackfail.pass.cpp27 typedef typename base::traits_type traits_type; typedef
34 virtual int_type pbackfail(int_type c = traits_type::eof()) {return base::pbackfail(c);} in pbackfail()
/llvm-project-15.0.7/libcxx/include/__iterator/
H A Dostreambuf_iterator.h44 typedef _Traits traits_type; typedef
57 if (__sbuf_ && traits_type::eq_int_type(__sbuf_->sputc(__c), traits_type::eof()))
H A Distreambuf_iterator.h42 typedef _Traits traits_type; typedef
64 if (__sbuf_ && traits_type::eq_int_type(__sbuf_->sgetc(), traits_type::eof())) in __test_for_eof()
/llvm-project-15.0.7/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/
H A Dostream.pass.cpp39 overflow(typename base::int_type ch = base::traits_type::eof()) in overflow()
41 if (ch != base::traits_type::eof()) in overflow()
H A Dios_base.pass.cpp38 overflow(typename base::int_type ch = base::traits_type::eof()) in overflow()
40 if (ch != base::traits_type::eof()) in overflow()
H A Dbasic_ios.pass.cpp39 overflow(typename base::int_type ch = base::traits_type::eof()) in overflow()
41 if (ch != base::traits_type::eof()) in overflow()
/llvm-project-15.0.7/libcxx/test/std/input.output/stream.buffers/streambuf/
H A Dtypes.pass.cpp30 static_assert((std::is_same<std::streambuf::traits_type, std::char_traits<char> >::value), ""); in main()
37 …static_assert((std::is_same<std::wstreambuf::traits_type, std::char_traits<wchar_t> >::value), ""); in main()
/llvm-project-15.0.7/libcxx/test/std/re/re.regex/
H A Dtypes.pass.cpp29 …static_assert((std::is_same<std::basic_regex<char>::traits_type, std::regex_traits<char> >::value)… in main()
36 …static_assert((std::is_same<std::basic_regex<wchar_t>::traits_type, std::regex_traits<wchar_t> >::… in main()

12345