1#ifndef _STLP_STRING_IO_C
2#define _STLP_STRING_IO_C
4#ifndef _STLP_STRING_IO_H
8#ifndef _STLP_INTERNAL_CTYPE_H
14template <
class _CharT,
class _Traits>
19 _CharT __f = __os.
fill();
21 if (_Traits::eq_int_type(__buf->
sputc(__f), _Traits::eof()))
28template <
class _CharT,
class _Traits,
class _Alloc>
38 typename __ostream::sentry __sentry(__os);
44 const bool __left = (__os.
flags() & __ostream::left) != 0;
67template <
class _CharT,
class _Traits,
class _Alloc>
77 typename __istream::sentry __sentry(__is);
84 const _C_type& _Ctype = use_facet<_C_type>(__loc);
94 else if (
sizeof(
streamsize) >
sizeof(size_type) &&
103 typename _Traits::int_type __c1 = __buf->
sbumpc();
104 if (_Traits::eq_int_type(__c1, _Traits::eof())) {
109 _CharT
__c = _Traits::to_char_type(__c1);
111 if (_Ctype.is(_C_type::space,
__c)) {
112 if (_Traits::eq_int_type(__buf->
sputbackc(
__c), _Traits::eof()))
131template <
class _CharT,
class _Traits,
class _Alloc>
138 size_type __nread = 0;
145 int __c1 = __buf->
sbumpc();
146 if (_Traits::eq_int_type(__c1, _Traits::eof())) {
152 _CharT
__c = _Traits::to_char_type(__c1);
153 if (!_Traits::eq(
__c, __delim))
160 if (__nread == 0 || __nread >= __s.
max_size())
basic_ostream< _CharT, _Traits > &_STLP_CALL operator<<(basic_ostream< _CharT, _Traits > &__os, const basic_string< _CharT, _Traits, _Alloc > &__s)
_STLP_BEGIN_NAMESPACE bool _STLP_CALL __stlp_string_fill(basic_ostream< _CharT, _Traits > &__os, basic_streambuf< _CharT, _Traits > *__buf, streamsize __n)
basic_istream< _CharT, _Traits > &_STLP_CALL operator>>(basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Alloc > &__s)
basic_streambuf< _CharT, _Traits > * rdbuf() const
void setstate(iostate __state)
int_type sputbackc(char_type __c)
streamsize sputn(const char_type *__s, streamsize __n)
int_type sputc(char_type __c)
_Base::size_type size_type
void reserve(size_type=0)
size_type max_size() const
const _CharT * data() const
void push_back(_CharT __c)
#define _STLP_STATIC_ASSERT(expr)
#define __STATIC_CAST(__x, __y)
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE