18 #ifndef _STLP_STREAMBUF_C 19 #define _STLP_STREAMBUF_C 21 #ifndef _STLP_INTERNAL_STREAMBUF 29 #if !defined (_STLP_MSVC) || (_STLP_MSVC >= 1300) || !defined (_STLP_USE_STATIC_LIB) 30 template <
class _CharT,
class _Traits>
32 : _M_gbegin(0), _M_gnext(0), _M_gend(0),
33 _M_pbegin(0), _M_pnext(0), _M_pend(0),
39 template <
class _CharT,
class _Traits>
43 template <
class _CharT,
class _Traits>
52 template <
class _CharT,
class _Traits>
58 while (__result <
__n) {
59 if (_M_gnext < _M_gend) {
69 if (!_Traits::eq_int_type(
__c, __eof)) {
70 *__s = _Traits::to_char_type(
__c);
82 template <
class _CharT,
class _Traits>
89 while (__result <
__n) {
90 if (_M_pnext < _M_pend) {
99 else if (!_Traits::eq_int_type(this->overflow(_Traits::to_int_type(*__s)),
110 template <
class _CharT,
class _Traits>
117 while (__result <
__n) {
118 if (_M_pnext < _M_pend) {
121 _Traits::assign(_M_pnext, __chunk,
__c);
126 else if (!_Traits::eq_int_type(this->overflow(_Traits::to_int_type(
__c)),
135 template <
class _CharT,
class _Traits>
140 if (_M_gend == _M_gnext)
141 return _Traits::eq_int_type(this->uflow(), __eof) ? __eof : this->sgetc();
144 return this->underflow();
148 template <
class _CharT,
class _Traits>
154 template <
class _CharT,
class _Traits>
160 template <
class _CharT,
class _Traits>
163 return ( _Traits::eq_int_type(this->underflow(),
_Traits::eof()) ?
165 _Traits::to_int_type(*_M_gnext++));
168 template <
class _CharT,
class _Traits>
173 template <
class _CharT,
class _Traits>
178 template <
class _CharT,
class _Traits>
182 template <
class _CharT,
class _Traits>
186 template <
class _CharT,
class _Traits>
191 template <
class _CharT,
class _Traits>
197 template <
class _CharT,
class _Traits>
char_traits< char > ::int_type int_type
virtual pos_type seekpos(pos_type, ios_base::openmode=ios_base::in|ios_base::out)
virtual int_type pbackfail(int_type=traits_type::eof())
#define __STATIC_CAST(__x, __y)
virtual void imbue(const locale &)
virtual streamsize xsgetn(char_type *__s, streamsize __n)
_Traits::pos_type pos_type
virtual int_type overflow(int_type=traits_type::eof())
virtual pos_type seekoff(off_type, ios_base::seekdir, ios_base::openmode=ios_base::in|ios_base::out)
virtual ~basic_streambuf()
locale pubimbue(const locale &)
_Check_return_ _CRTIMP int __cdecl __cdecl eof(_In_ int _FileHandle)
virtual streamsize _M_xsputnc(char_type __c, streamsize __n)
virtual streamsize showmanyc()
virtual basic_streambuf< _CharT, _Traits > * setbuf(char_type *, streamsize)
#define _STLP_END_NAMESPACE
virtual streamsize xsputn(const char_type *__s, streamsize __n)
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
#define _STLP_TYPENAME_ON_RETURN_TYPE
#define _STLP_BEGIN_NAMESPACE
char_traits< char > ::off_type off_type
virtual int_type underflow()