ICU 73.2  73.2
ustream.h
Go to the documentation of this file.
00001 // © 2016 and later: Unicode, Inc. and others.
00002 // License & terms of use: http://www.unicode.org/copyright.html
00003 /*
00004 **********************************************************************
00005 *   Copyright (C) 2001-2014 International Business Machines
00006 *   Corporation and others.  All Rights Reserved.
00007 **********************************************************************
00008 *  FILE NAME : ustream.h
00009 *
00010 *   Modification History:
00011 *
00012 *   Date        Name        Description
00013 *   06/25/2001  grhoten     Move iostream from unistr.h
00014 ******************************************************************************
00015 */
00016 
00017 #ifndef USTREAM_H
00018 #define USTREAM_H
00019 
00020 #include "unicode/utypes.h"
00021 
00022 #if U_SHOW_CPLUSPLUS_API
00023 
00024 #include "unicode/unistr.h"
00025 
00026 #if !UCONFIG_NO_CONVERSION  // not available without conversion
00027 
00037 #if defined(__GLIBCXX__)
00038 namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
00039 #endif
00040 
00041 #include <iostream>
00042 
00043 U_NAMESPACE_BEGIN
00044 
00052 U_IO_API std::ostream & U_EXPORT2 operator<<(std::ostream& stream, const UnicodeString& s);
00053 
00060 U_IO_API std::istream & U_EXPORT2 operator>>(std::istream& stream, UnicodeString& s);
00061 U_NAMESPACE_END
00062 
00063 #endif
00064 
00065 /* No operator for UChar because it can conflict with wchar_t  */
00066 
00067 #endif /* U_SHOW_CPLUSPLUS_API */
00068 
00069 #endif