Esempio n. 1
0
_STLP_EXP_DECLSPEC basic_stringbuf<_CharT, _Traits, _Alloc>
  ::basic_stringbuf(const basic_string<_CharT, _Traits, _Alloc>& __s, ios_base::openmode __mode)
    : basic_streambuf<_CharT, _Traits>(), _M_mode(__mode), _M_str(__s)
{
#ifdef __SYMBIAN32__
if (_M_mode & ios_base::out) {
   if (_M_mode & (ios_base::app | ios_base::ate))
     //increment the streampos to reflect the current streampos while writing
     _M_str._M_stream_pos += _M_str.size();
}
#endif
  _M_set_ptrs();
}
Esempio n. 2
0
// Set the underlying string to a new value.
void stringbuf::str(const string& __string)
{
    __M_str = __string;
    _M_set_ptrs();
}
Esempio n. 3
0
stringbuf::stringbuf(const string& __string, ios_base::openmode __mode /* = ios_base::in | ios_base::out */) : __M_mode(__mode), __M_str(__string)
{
    _M_set_ptrs();
}
Esempio n. 4
0
void 
basic_stringbuf<_CharT, _Traits, _Alloc>::str(const basic_string<_CharT, _Traits, _Alloc>& __s)
{
  _M_str = __s;
  _M_set_ptrs();
}
Esempio n. 5
0
basic_stringbuf<_CharT, _Traits, _Alloc>
  ::basic_stringbuf(const basic_string<_CharT, _Traits, _Alloc>& __s, ios_base::openmode __mode)
    : basic_streambuf<_CharT, _Traits>(), _M_mode(__mode), _M_str(__s)
{
  _M_set_ptrs();
}