epoc32/include/stdapis/stlportv5/stl/_string_io.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
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@2
     1
/*
williamr@2
     2
 * Copyright (c) 1997-1999
williamr@2
     3
 * Silicon Graphics Computer Systems, Inc.
williamr@2
     4
 *
williamr@4
     5
 * Copyright (c) 1999
williamr@2
     6
 * Boris Fomitchev
williamr@2
     7
 *
williamr@2
     8
 * This material is provided "as is", with absolutely no warranty expressed
williamr@2
     9
 * or implied. Any use is at your own risk.
williamr@2
    10
 *
williamr@4
    11
 * Permission to use or copy this software for any purpose is hereby granted
williamr@2
    12
 * without fee, provided the above notices are retained on all copies.
williamr@2
    13
 * Permission to modify the code and to distribute modified code is granted,
williamr@2
    14
 * provided the above notices are retained, and a notice that the code was
williamr@2
    15
 * modified is included with the above copyright notice.
williamr@2
    16
 *
williamr@2
    17
 */
williamr@2
    18
williamr@2
    19
#ifndef _STLP_STRING_IO_H
williamr@2
    20
#define _STLP_STRING_IO_H
williamr@2
    21
williamr@4
    22
#ifndef _STLP_INTERNAL_OSTREAM_H
williamr@4
    23
#  include <stl/_ostream.h>
williamr@4
    24
#endif
williamr@2
    25
williamr@4
    26
#ifndef _STLP_INTERNAL_ISTREAM
williamr@4
    27
#  include <stl/_istream.h>
williamr@4
    28
#endif
williamr@2
    29
williamr@4
    30
// I/O.
williamr@2
    31
_STLP_BEGIN_NAMESPACE
williamr@2
    32
williamr@2
    33
template <class _CharT, class _Traits, class _Alloc>
williamr@2
    34
basic_ostream<_CharT, _Traits>& _STLP_CALL
williamr@4
    35
operator<<(basic_ostream<_CharT, _Traits>& __os,
williamr@2
    36
           const basic_string<_CharT,_Traits,_Alloc>& __s);
williamr@2
    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@2
    50
template <class _CharT, class _Traits, class _Alloc>
williamr@2
    51
basic_istream<_CharT, _Traits>&  _STLP_CALL
williamr@2
    52
operator>>(basic_istream<_CharT, _Traits>& __is,
williamr@2
    53
           basic_string<_CharT,_Traits,_Alloc>& __s);
williamr@2
    54
williamr@4
    55
template <class _CharT, class _Traits, class _Alloc>
williamr@4
    56
basic_istream<_CharT, _Traits>& _STLP_CALL
williamr@2
    57
getline(basic_istream<_CharT, _Traits>& __is,
williamr@2
    58
        basic_string<_CharT,_Traits,_Alloc>& __s,
williamr@2
    59
        _CharT __delim);
williamr@2
    60
williamr@4
    61
#if !(defined (__BORLANDC__) && !defined (_STLP_USE_OWN_NAMESPACE))
williamr@2
    62
williamr@4
    63
template <class _CharT, class _Traits, class _Alloc>
williamr@4
    64
inline basic_istream<_CharT, _Traits>& _STLP_CALL
williamr@2
    65
getline(basic_istream<_CharT, _Traits>& __is,
williamr@4
    66
        basic_string<_CharT,_Traits,_Alloc>& __s) {
williamr@2
    67
  return getline(__is, __s, __is.widen('\n'));
williamr@2
    68
}
williamr@2
    69
#endif
williamr@2
    70
williamr@2
    71
_STLP_END_NAMESPACE
williamr@2
    72
williamr@4
    73
#if !defined (_STLP_LINK_TIME_INSTANTIATION)
williamr@2
    74
#  include <stl/_string_io.c>
williamr@4
    75
#endif
williamr@2
    76
williamr@2
    77
#endif /* _STLP_STRING_IO_H */