49 #ifndef _BACKWARD_STRSTREAM
50 #define _BACKWARD_STRSTREAM
59 namespace std _GLIBCXX_VISIBILITY(default)
61 _GLIBCXX_BEGIN_NAMESPACE_VERSION
65 class strstreambuf :
public basic_streambuf<char, char_traits<char> >
69 typedef char_traits<char> _Traits;
70 typedef basic_streambuf<char, _Traits> _Base;
74 explicit strstreambuf(
streamsize __initial_capacity = 0);
75 strstreambuf(
void* (*__alloc)(
size_t),
void (*__free)(
void*));
77 strstreambuf(
char* __get,
streamsize __n,
char* __put = 0) throw ();
78 strstreambuf(
signed char* __get,
streamsize __n,
signed char* __put = 0) throw ();
79 strstreambuf(
unsigned char* __get,
streamsize __n,
unsigned char* __put=0) throw ();
81 strstreambuf(const
char* __get,
streamsize __n) throw ();
82 strstreambuf(const
signed char* __get,
streamsize __n) throw ();
83 strstreambuf(const
unsigned char* __get,
streamsize __n) throw ();
85 virtual ~strstreambuf();
88 void freeze(
bool = true) throw ();
90 _GLIBCXX_PURE
int pcount() const throw ();
93 virtual int_type overflow(int_type __c = _Traits::eof());
94 virtual int_type pbackfail(int_type __c = _Traits::eof());
95 virtual int_type underflow();
96 virtual _Base* setbuf(
char* __buf,
streamsize __n);
97 virtual pos_type seekoff(off_type __off, ios_base::seekdir __dir,
98 ios_base::openmode __mode
99 = ios_base::in | ios_base::out);
100 virtual pos_type seekpos(pos_type __pos, ios_base::openmode __mode
101 = ios_base::in | ios_base::out);
105 operator=(const strstreambuf&);
107 strstreambuf(const strstreambuf&);
110 char* _M_alloc(
size_t);
114 void _M_setup(
char* __get,
char* __put,
streamsize __n) throw ();
118 void* (*_M_alloc_fun)(
size_t);
119 void (*_M_free_fun)(
void*);
123 bool _M_constant : 1;
127 class istrstream : public basic_istream<
char>
130 explicit istrstream(
char*);
131 explicit istrstream(
const char*);
134 virtual ~istrstream();
136 _GLIBCXX_CONST strstreambuf* rdbuf()
const throw ();
137 char* str() throw ();
144 class ostrstream : public basic_ostream<
char>
149 virtual ~ostrstream();
151 _GLIBCXX_CONST strstreambuf* rdbuf()
const throw ();
152 void freeze(
bool = true) throw();
153 char* str() throw ();
154 _GLIBCXX_PURE
int pcount() const throw ();
161 class strstream : public basic_iostream<
char>
165 typedef char_traits<char>::int_type
int_type;
166 typedef char_traits<char>::pos_type
pos_type;
167 typedef char_traits<char>::off_type
off_type;
171 virtual ~strstream();
173 _GLIBCXX_CONST strstreambuf* rdbuf()
const throw ();
174 void freeze(
bool = true) throw ();
175 _GLIBCXX_PURE
int pcount() const throw ();
176 char* str() throw ();
182 _GLIBCXX_END_NAMESPACE_VERSION