]>
git.saurik.com Git - apple/icu.git/blob - icuSources/io/unicode/ustream.h
2 **********************************************************************
3 * Copyright (C) 2001-2014 International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * FILE NAME : ustream.h
8 * Modification History:
10 * Date Name Description
11 * 06/25/2001 grhoten Move iostream from unistr.h
12 ******************************************************************************
18 #include "unicode/unistr.h"
20 #if !UCONFIG_NO_CONVERSION // not available without conversion
24 * \brief C++ API: Unicode iostream like API
26 * At this time, this API is very limited. It contains
27 * operator<< and operator>> for UnicodeString manipulation with the
31 #if !defined(_MSC_VER)
32 namespace std
{ class type_info
; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
35 #if U_IOSTREAM_SOURCE >= 199711
46 * Write the contents of a UnicodeString to a C++ ostream. This functions writes
47 * the characters in a UnicodeString to an ostream. The UChars in the
48 * UnicodeString are converted to the char based ostream with the default
52 U_IO_API
std::ostream
& U_EXPORT2
operator<<(std::ostream
& stream
, const UnicodeString
& s
);
55 * Write the contents from a C++ istream to a UnicodeString. The UChars in the
56 * UnicodeString are converted from the char based istream with the default
60 U_IO_API
std::istream
& U_EXPORT2
operator>>(std::istream
& stream
, UnicodeString
& s
);
65 /* No operator for UChar because it can conflict with wchar_t */