Lines Matching refs:_Traits
31 # define __BSB_int_type__ _STLP_TYPENAME_ON_RETURN_TYPE basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
32 # define __BSB_pos_type__ _STLP_TYPENAME_ON_RETURN_TYPE basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
43 template <class _CharT, class _Traits, class _Alloc>
44 basic_stringbuf<_CharT, _Traits, _Alloc>
46 : basic_streambuf<_CharT, _Traits>(), _M_mode(__mode), _M_str()
49 template <class _CharT, class _Traits, class _Alloc>
50 basic_stringbuf<_CharT, _Traits, _Alloc>
51 ::basic_stringbuf(const basic_string<_CharT, _Traits, _Alloc>& __s, ios_base::openmode __mode)
52 : basic_streambuf<_CharT, _Traits>(), _M_mode(__mode), _M_str(__s)
57 template <class _CharT, class _Traits, class _Alloc>
58 basic_stringbuf<_CharT, _Traits, _Alloc>::~basic_stringbuf()
62 template <class _CharT, class _Traits, class _Alloc>
64 basic_stringbuf<_CharT, _Traits, _Alloc>::str(const basic_string<_CharT, _Traits, _Alloc>& __s)
70 template <class _CharT, class _Traits, class _Alloc>
72 basic_stringbuf<_CharT, _Traits, _Alloc>::_M_set_ptrs()
94 template <class _CharT, class _Traits, class _Alloc>
96 basic_stringbuf<_CharT, _Traits, _Alloc>::underflow() {
98 ? _Traits::to_int_type(*this->gptr())
99 : _Traits::eof();
103 template <class _CharT, class _Traits, class _Alloc>
105 basic_stringbuf<_CharT, _Traits, _Alloc>::uflow() {
107 int_type __c = _Traits::to_int_type(*this->gptr());
112 return _Traits::eof();
115 template <class _CharT, class _Traits, class _Alloc>
117 basic_stringbuf<_CharT, _Traits, _Alloc>::pbackfail(int_type __c) {
119 if (!_Traits::eq_int_type(__c, _Traits::eof())) {
120 if (_Traits::eq(_Traits::to_char_type(__c), this->gptr()[-1])) {
126 *this->gptr() = _Traits::to_char_type(__c);
130 return _Traits::eof();
134 return _Traits::not_eof(__c);
138 return _Traits::eof();
141 template <class _CharT, class _Traits, class _Alloc>
142 __BSB_int_type__ basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(int_type __c)
144 if (!_Traits::eq_int_type(__c, _Traits::eof())) {
147 _M_str.push_back( _Traits::to_char_type(__c) );
151 _M_str.push_back(_Traits::to_char_type(__c));
157 _M_str.push_back( _Traits::to_char_type(__c) );
163 return _Traits::eof(); // Overflow always fails if it's read-only
165 return _Traits::not_eof(__c); // __c is EOF, so we don't have to do anything
168 template <class _CharT, class _Traits, class _Alloc>
170 basic_stringbuf<_CharT, _Traits, _Alloc>::xsputn(const char_type* __s,
180 _Traits::copy(this->pptr(), __s, __STATIC_CAST(size_t, __n));
184 _Traits::copy(this->pptr(), __s, __avail);
211 template <class _CharT, class _Traits, class _Alloc>
213 basic_stringbuf<_CharT, _Traits, _Alloc>::_M_xsputnc(char_type __c,
223 _Traits::assign(this->pptr(), __STATIC_CAST(size_t, __n), __c);
228 _Traits::assign(this->pptr(), __avail, __c);
260 template <class _CharT, class _Traits, class _Alloc>
261 basic_streambuf<_CharT, _Traits>*
262 basic_stringbuf<_CharT, _Traits, _Alloc>::setbuf(_CharT*, streamsize __n) {
297 template <class _CharT, class _Traits, class _Alloc>
299 basic_stringbuf<_CharT, _Traits, _Alloc>
355 template <class _CharT, class _Traits, class _Alloc>
357 basic_stringbuf<_CharT, _Traits, _Alloc>
392 template <class _CharT, class _Traits, class _Alloc>
393 basic_istringstream<_CharT, _Traits, _Alloc>
395 : basic_istream<_CharT, _Traits>(0),
400 template <class _CharT, class _Traits, class _Alloc>
401 basic_istringstream<_CharT, _Traits, _Alloc>
403 : basic_istream<_CharT, _Traits>(0),
408 template <class _CharT, class _Traits, class _Alloc>
409 basic_istringstream<_CharT, _Traits, _Alloc>::~basic_istringstream()
415 template <class _CharT, class _Traits, class _Alloc>
416 basic_ostringstream<_CharT, _Traits, _Alloc>
418 : basic_ostream<_CharT, _Traits>(0),
423 template <class _CharT, class _Traits, class _Alloc>
424 basic_ostringstream<_CharT, _Traits, _Alloc>
426 : basic_ostream<_CharT, _Traits>(0),
431 template <class _CharT, class _Traits, class _Alloc>
432 basic_ostringstream<_CharT, _Traits, _Alloc>::~basic_ostringstream()
438 template <class _CharT, class _Traits, class _Alloc>
439 basic_stringstream<_CharT, _Traits, _Alloc>
441 : basic_iostream<_CharT, _Traits>(0), _M_buf(__mode) {
445 template <class _CharT, class _Traits, class _Alloc>
446 basic_stringstream<_CharT, _Traits, _Alloc>
448 : basic_iostream<_CharT, _Traits>(0), _M_buf(__str, __mode) {
452 template <class _CharT, class _Traits, class _Alloc>
453 basic_stringstream<_CharT, _Traits, _Alloc>::~basic_stringstream()