epoc32/include/tools/stlport/stl/_string_io.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/tools/stlport/stl/_string_io.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,77 @@
     1.4 +/*
     1.5 + * Copyright (c) 1997-1999
     1.6 + * Silicon Graphics Computer Systems, Inc.
     1.7 + *
     1.8 + * Copyright (c) 1999
     1.9 + * Boris Fomitchev
    1.10 + *
    1.11 + * This material is provided "as is", with absolutely no warranty expressed
    1.12 + * or implied. Any use is at your own risk.
    1.13 + *
    1.14 + * Permission to use or copy this software for any purpose is hereby granted
    1.15 + * without fee, provided the above notices are retained on all copies.
    1.16 + * Permission to modify the code and to distribute modified code is granted,
    1.17 + * provided the above notices are retained, and a notice that the code was
    1.18 + * modified is included with the above copyright notice.
    1.19 + *
    1.20 + */
    1.21 +
    1.22 +#ifndef _STLP_STRING_IO_H
    1.23 +#define _STLP_STRING_IO_H
    1.24 +
    1.25 +#ifndef _STLP_INTERNAL_OSTREAM_H
    1.26 +#  include <stl/_ostream.h>
    1.27 +#endif
    1.28 +
    1.29 +#ifndef _STLP_INTERNAL_ISTREAM
    1.30 +#  include <stl/_istream.h>
    1.31 +#endif
    1.32 +
    1.33 +// I/O.
    1.34 +_STLP_BEGIN_NAMESPACE
    1.35 +
    1.36 +template <class _CharT, class _Traits, class _Alloc>
    1.37 +basic_ostream<_CharT, _Traits>& _STLP_CALL
    1.38 +operator<<(basic_ostream<_CharT, _Traits>& __os,
    1.39 +           const basic_string<_CharT,_Traits,_Alloc>& __s);
    1.40 +
    1.41 +#if defined (_STLP_USE_TEMPLATE_EXPRESSION)
    1.42 +
    1.43 +template <class _CharT, class _Traits, class _Alloc, class _Left, class _Right, class _StorageDir>
    1.44 +basic_ostream<_CharT, _Traits>& _STLP_CALL
    1.45 +operator<<(basic_ostream<_CharT, _Traits>& __os,
    1.46 +           const _STLP_PRIV __bstr_sum<_CharT, _Traits, _Alloc, _Left, _Right, _StorageDir>& __sum) {
    1.47 +  basic_string<_CharT, _Traits, _Alloc> __tmp(__sum);
    1.48 +  return __os << __tmp;
    1.49 +}
    1.50 +
    1.51 +#endif /* _STLP_USE_TEMPLATE_EXPRESSION */
    1.52 +
    1.53 +template <class _CharT, class _Traits, class _Alloc>
    1.54 +basic_istream<_CharT, _Traits>&  _STLP_CALL
    1.55 +operator>>(basic_istream<_CharT, _Traits>& __is,
    1.56 +           basic_string<_CharT,_Traits,_Alloc>& __s);
    1.57 +
    1.58 +template <class _CharT, class _Traits, class _Alloc>
    1.59 +basic_istream<_CharT, _Traits>& _STLP_CALL
    1.60 +getline(basic_istream<_CharT, _Traits>& __is,
    1.61 +        basic_string<_CharT,_Traits,_Alloc>& __s,
    1.62 +        _CharT __delim);
    1.63 +
    1.64 +#if !(defined (__BORLANDC__) && !defined (_STLP_USE_OWN_NAMESPACE))
    1.65 +
    1.66 +template <class _CharT, class _Traits, class _Alloc>
    1.67 +inline basic_istream<_CharT, _Traits>& _STLP_CALL
    1.68 +getline(basic_istream<_CharT, _Traits>& __is,
    1.69 +        basic_string<_CharT,_Traits,_Alloc>& __s) {
    1.70 +  return getline(__is, __s, __is.widen('\n'));
    1.71 +}
    1.72 +#endif
    1.73 +
    1.74 +_STLP_END_NAMESPACE
    1.75 +
    1.76 +#if !defined (_STLP_LINK_TIME_INSTANTIATION)
    1.77 +#  include <stl/_string_io.c>
    1.78 +#endif
    1.79 +
    1.80 +#endif /* _STLP_STRING_IO_H */