Home
last modified time | relevance | path

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

12345

/external/libcxx/include/
D__std_stream38 typedef char_traits<char_type> traits_type;
39 typedef typename traits_type::int_type int_type;
40 typedef typename traits_type::pos_type pos_type;
41 typedef typename traits_type::off_type off_type;
42 typedef typename traits_type::state_type state_type;
49 virtual int_type pbackfail(int_type __c = traits_type::eof());
72 __last_consumed_(traits_type::eof()),
112 __last_consumed_ = traits_type::eof();
123 return traits_type::eof();
146 return traits_type::eof();
[all …]
Dsstream23 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;
31 explicit basic_stringbuf(const basic_string<char_type, traits_type, allocator_type>& str,
40 basic_string<char_type, traits_type, allocator_type> str() const;
41 void str(const basic_string<char_type, traits_type, allocator_type>& s);
46 virtual int_type pbackfail(int_type c = traits_type::eof());
47 virtual int_type overflow (int_type c = traits_type::eof());
48 virtual basic_streambuf<char_type, traits_type>* setbuf(char_type*, streamsize);
[all …]
Dfstream23 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;
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 …]
Distream24 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;
30 explicit basic_istream(basic_streambuf<char_type, traits_type>* sb);
43 basic_istream& operator>>(basic_ios<char_type, traits_type>&
44 (*pf)(basic_ios<char_type, traits_type>&));
46 basic_istream& operator>>(basic_streambuf<char_type, traits_type>* sb);
67 basic_istream& get(basic_streambuf<char_type,traits_type>& sb);
68 basic_istream& get(basic_streambuf<char_type,traits_type>& sb, char_type delim);
[all …]
Dstreambuf26 typedef traits traits_type;
27 typedef typename traits_type::int_type int_type;
28 typedef typename traits_type::pos_type pos_type;
29 typedef typename traits_type::off_type off_type;
100 virtual int_type pbackfail(int_type c = traits_type::eof());
104 virtual int_type overflow (int_type c = traits_type::eof());
127 typedef _Traits traits_type;
128 typedef typename traits_type::int_type int_type;
129 typedef typename traits_type::pos_type pos_type;
130 typedef typename traits_type::off_type off_type;
[all …]
Dios120 typedef traits traits_type;
577 typedef _Traits traits_type;
579 typedef typename traits_type::int_type int_type;
580 typedef typename traits_type::pos_type pos_type;
581 typedef typename traits_type::off_type off_type;
600 explicit basic_ios(basic_streambuf<char_type,traits_type>* __sb);
605 basic_ostream<char_type, traits_type>* tie() const;
607 basic_ostream<char_type, traits_type>* tie(basic_ostream<char_type, traits_type>* __tiestr);
610 basic_streambuf<char_type, traits_type>* rdbuf() const;
612 basic_streambuf<char_type, traits_type>* rdbuf(basic_streambuf<char_type, traits_type>* __sb);
[all …]
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;
150 typedef _Traits traits_type;
151 typedef typename traits_type::int_type int_type;
152 typedef typename traits_type::pos_type pos_type;
153 typedef typename traits_type::off_type off_type;
156 explicit basic_ostream(basic_streambuf<char_type, traits_type>* __sb);
180 basic_ostream& operator<<(basic_ios<char_type, traits_type>&
[all …]
/external/zlib/src/contrib/iostream3/
Dzfstream.cc189 return traits_type::to_int_type(*(this->gptr())); in underflow()
193 return traits_type::eof(); in underflow()
203 return traits_type::eof(); in underflow()
209 return traits_type::to_int_type(*(this->gptr())); in underflow()
221 return traits_type::eof(); in overflow()
223 if (!traits_type::eq_int_type(c, traits_type::eof())) in overflow()
225 *(this->pptr()) = traits_type::to_char_type(c); in overflow()
235 return traits_type::eof(); in overflow()
238 return traits_type::eof(); in overflow()
244 else if (!traits_type::eq_int_type(c, traits_type::eof())) in overflow()
[all …]
/external/stlport/stlport/stl/
D_fstream.c85 __ok = __ok && !_Traits::eq_int_type(this->overflow(traits_type::eof()), in close()
86 traits_type::eof()); in close()
158 const int_type __eof = traits_type::eof(); in pbackfail()
167 (traits_type::eq_int_type(__c, __eof) || in pbackfail()
168 traits_type::eq(traits_type::to_char_type(__c), this->gptr()[-1]) || in pbackfail()
171 if (traits_type::eq_int_type(__c, __eof) || in pbackfail()
172 traits_type::eq(traits_type::to_char_type(__c), *this->gptr())) in pbackfail()
173 return traits_type::to_int_type(*this->gptr()); in pbackfail()
175 else if (!traits_type::eq_int_type(__c, __eof)) { in pbackfail()
197 *this->gptr() = traits_type::to_char_type(__c); in pbackfail()
[all …]
D_ios.h55 typedef _Traits traits_type; typedef
66 tie(basic_ostream<char_type, traits_type>* __new_tied_ostream) { in tie()
67 basic_ostream<char_type, traits_type>* __tmp = _M_tied_ostream; in tie()
76 rdbuf(basic_streambuf<char_type, traits_type>*);
D_fstream.h155 typedef _Traits traits_type; typedef
203 virtual int_type pbackfail(int_type = traits_type::eof());
204 virtual int_type overflow(int_type = traits_type::eof());
329 return traits_type::to_int_type(*_M_ext_buf); in _M_do_noconv_input()
403 typedef _Traits traits_type; typedef
410 return traits_type::eof(); in _M_doit()
415 int_type __c = traits_type::to_int_type(*__this->gptr()); in _M_doit()
431 typedef char_traits<char> traits_type; typedef
432 static int_type _STLP_CALL _M_doit(basic_filebuf<char, traits_type >* __this);
449 typedef _Traits traits_type; typedef
[all …]
D_ostreambuf_iterator.h45 typedef _Traits traits_type; typedef
62 _M_ok = _M_ok && !traits_type::eq_int_type(_M_buf->sputc(__c),
63 traits_type::eof());
D_istreambuf_iterator.h50 typedef _Traits traits_type; typedef
93 _STLP_MUTABLE(_Self, _M_c) = traits_type::to_char_type(__c); in _M_getc()
94 _STLP_MUTABLE(_Self, _M_eof) = traits_type::eq_int_type(__c, traits_type::eof()); in _M_getc()
/external/chromium_org/base/
Dscoped_generic.h73 typedef Traits traits_type; typedef
75 ScopedGeneric() : data_(traits_type::InvalidValue()) {} in ScopedGeneric()
82 ScopedGeneric(const element_type& value, const traits_type& traits) in ScopedGeneric()
98 void reset(const element_type& value = traits_type::InvalidValue()) {
99 if (data_.generic != traits_type::InvalidValue() && data_.generic == value)
119 data_.generic = traits_type::InvalidValue(); in release()
127 bool is_valid() const { return data_.generic != traits_type::InvalidValue(); } in is_valid()
141 if (data_.generic != traits_type::InvalidValue()) { in FreeIfNecessary()
143 data_.generic = traits_type::InvalidValue(); in FreeIfNecessary()
/external/stlport/src/
Dstdio_streambuf.cpp168 return traits_type::eof(); in underflow()
177 return c != EOF ? c : traits_type::eof(); in uflow()
181 if (c != traits_type::eof()) { in pbackfail()
183 return result != EOF ? result : traits_type::eof(); in pbackfail()
188 return traits_type::not_eof(c); in pbackfail()
191 return traits_type::eof(); in pbackfail()
205 if (c == traits_type::eof()) { in overflow()
212 return traits_type::not_eof(c); in overflow()
214 return traits_type::eof(); in overflow()
219 return traits_type::not_eof(c); in overflow()
[all …]
Dfstream.cpp39 typedef char_traits<char> traits_type; in _M_doit() typedef
40 typedef traits_type::int_type int_type; in _M_doit()
44 return traits_type::eof(); in _M_doit()
49 int_type __c = traits_type::to_int_type(*__this->gptr()); in _M_doit()
81 return traits_type::to_int_type(*__this->gptr()); in _M_doit()
Dstrstream.cpp117 if (c == traits_type::eof()) in overflow()
118 return traits_type::not_eof(c); in overflow()
148 *pptr() = traits_type::to_char_type(c); in overflow()
153 return traits_type::eof(); in overflow()
158 if (c == traits_type::eof()) { in pbackfail()
160 return traits_type::not_eof(c); in pbackfail()
168 *gptr() = traits_type::to_char_type(c); in pbackfail()
173 return traits_type::eof(); in pbackfail()
/external/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/
Dpbackfail.pass.cpp29 typedef base::traits_type traits_type; typedef
38 virtual int_type pbackfail(int_type c = traits_type::eof()) {return base::pbackfail(c);} in pbackfail()
48 assert(f.pbackfail(L'a') == test_buf::traits_type::eof()); in main()
55 assert(f.pbackfail(L'a') == test_buf::traits_type::eof()); in main()
Dunderflow.pass.cpp29 typedef base::traits_type traits_type; typedef
82 assert(f.sbumpc() == test_buf::traits_type::eof()); in main()
Doverflow.pass.cpp29 typedef base::traits_type traits_type; typedef
38 virtual int_type overflow(int_type c = traits_type::eof()) {return base::overflow(c);} in overflow()
/external/stlport/test/unit/
Dfull_streambuf.h16 typedef _Base::traits_type traits_type; typedef
33 return traits_type::eof(); in overflow()
36 _buf += traits_type::to_char_type(c); in overflow()
/external/libcxx/test/iterators/stream.iterators/istreambuf.iterator/
Dtypes.pass.cpp37 static_assert((std::is_same<I1::traits_type, std::char_traits<char> >::value), ""); in main()
38 static_assert((std::is_same<I1::int_type, I1::traits_type::int_type>::value), ""); in main()
47 static_assert((std::is_same<I2::traits_type, std::char_traits<wchar_t> >::value), ""); in main()
48 static_assert((std::is_same<I2::int_type, I2::traits_type::int_type>::value), ""); in main()
/external/libcxx/test/strings/basic.string/string.nonmembers/string.io/
Dstream_insert.pass.cpp58 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
66 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
75 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
83 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
/external/libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/
Dpbackfail.pass.cpp26 typedef typename base::traits_type traits_type; typedef
33 virtual int_type pbackfail(int_type c = traits_type::eof()) {return base::pbackfail(c);} in pbackfail()
/external/libcxx/test/strings/basic.string/string.cons/
Dsize_char_alloc.pass.cpp27 typedef typename S::traits_type T; in test()
43 typedef typename S::traits_type T; in test()
59 typedef typename S::traits_type T; in test()
76 typedef typename S::traits_type T; in test()

12345