epoc32/include/tools/stlport/stl/_string_io.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
/*
williamr@4
     2
 * Copyright (c) 1997-1999
williamr@4
     3
 * Silicon Graphics Computer Systems, Inc.
williamr@4
     4
 *
williamr@4
     5
 * Copyright (c) 1999
williamr@4
     6
 * Boris Fomitchev
williamr@4
     7
 *
williamr@4
     8
 * This material is provided "as is", with absolutely no warranty expressed
williamr@4
     9
 * or implied. Any use is at your own risk.
williamr@4
    10
 *
williamr@4
    11
 * Permission to use or copy this software for any purpose is hereby granted
williamr@4
    12
 * without fee, provided the above notices are retained on all copies.
williamr@4
    13
 * Permission to modify the code and to distribute modified code is granted,
williamr@4
    14
 * provided the above notices are retained, and a notice that the code was
williamr@4
    15
 * modified is included with the above copyright notice.
williamr@4
    16
 *
williamr@4
    17
 */
williamr@4
    18
williamr@4
    19
#ifndef _STLP_STRING_IO_H
williamr@4
    20
#define _STLP_STRING_IO_H
williamr@4
    21
williamr@4
    22
#ifndef _STLP_INTERNAL_OSTREAM_H
williamr@4
    23
#  include <stl/_ostream.h>
williamr@4
    24
#endif
williamr@4
    25
williamr@4
    26
#ifndef _STLP_INTERNAL_ISTREAM
williamr@4
    27
#  include <stl/_istream.h>
williamr@4
    28
#endif
williamr@4
    29
williamr@4
    30
// I/O.
williamr@4
    31
_STLP_BEGIN_NAMESPACE
williamr@4
    32
williamr@4
    33
template <class _CharT, class _Traits, class _Alloc>
williamr@4
    34
basic_ostream<_CharT, _Traits>& _STLP_CALL
williamr@4
    35
operator<<(basic_ostream<_CharT, _Traits>& __os,
williamr@4
    36
           const basic_string<_CharT,_Traits,_Alloc>& __s);
williamr@4
    37
williamr@4
    38
#if defined (_STLP_USE_TEMPLATE_EXPRESSION)
williamr@4
    39
williamr@4
    40
template <class _CharT, class _Traits, class _Alloc, class _Left, class _Right, class _StorageDir>
williamr@4
    41
basic_ostream<_CharT, _Traits>& _STLP_CALL
williamr@4
    42
operator<<(basic_ostream<_CharT, _Traits>& __os,
williamr@4
    43
           const _STLP_PRIV __bstr_sum<_CharT, _Traits, _Alloc, _Left, _Right, _StorageDir>& __sum) {
williamr@4
    44
  basic_string<_CharT, _Traits, _Alloc> __tmp(__sum);
williamr@4
    45
  return __os << __tmp;
williamr@4
    46
}
williamr@4
    47
williamr@4
    48
#endif /* _STLP_USE_TEMPLATE_EXPRESSION */
williamr@4
    49
williamr@4
    50
template <class _CharT, class _Traits, class _Alloc>
williamr@4
    51
basic_istream<_CharT, _Traits>&  _STLP_CALL
williamr@4
    52
operator>>(basic_istream<_CharT, _Traits>& __is,
williamr@4
    53
           basic_string<_CharT,_Traits,_Alloc>& __s);
williamr@4
    54
williamr@4
    55
template <class _CharT, class _Traits, class _Alloc>
williamr@4
    56
basic_istream<_CharT, _Traits>& _STLP_CALL
williamr@4
    57
getline(basic_istream<_CharT, _Traits>& __is,
williamr@4
    58
        basic_string<_CharT,_Traits,_Alloc>& __s,
williamr@4
    59
        _CharT __delim);
williamr@4
    60
williamr@4
    61
#if !(defined (__BORLANDC__) && !defined (_STLP_USE_OWN_NAMESPACE))
williamr@4
    62
williamr@4
    63
template <class _CharT, class _Traits, class _Alloc>
williamr@4
    64
inline basic_istream<_CharT, _Traits>& _STLP_CALL
williamr@4
    65
getline(basic_istream<_CharT, _Traits>& __is,
williamr@4
    66
        basic_string<_CharT,_Traits,_Alloc>& __s) {
williamr@4
    67
  return getline(__is, __s, __is.widen('\n'));
williamr@4
    68
}
williamr@4
    69
#endif
williamr@4
    70
williamr@4
    71
_STLP_END_NAMESPACE
williamr@4
    72
williamr@4
    73
#if !defined (_STLP_LINK_TIME_INSTANTIATION)
williamr@4
    74
#  include <stl/_string_io.c>
williamr@4
    75
#endif
williamr@4
    76
williamr@4
    77
#endif /* _STLP_STRING_IO_H */