Loading...
Searching...
No Matches
ustream.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
* Copyright (C) 2001-2014 International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* FILE NAME : ustream.h
*
* Modification History:
*
* Date Name Description
* 06/25/2001 grhoten Move iostream from unistr.h
******************************************************************************
*/
#ifndef USTREAM_H
#define USTREAM_H
#include "unicode/utypes.h"
#if U_SHOW_CPLUSPLUS_API
#include "unicode/unistr.h"
#if !UCONFIG_NO_CONVERSION // not available without conversion
#if defined(__GLIBCXX__)
namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
#endif
#include <iostream>
U_NAMESPACE_BEGIN
U_IO_API std::ostream & U_EXPORT2 operator<<(std::ostream& stream, const UnicodeString& s);
U_IO_API std::istream & U_EXPORT2 operator>>(std::istream& stream, UnicodeString& s);
U_NAMESPACE_END
#endif
/* No operator for UChar because it can conflict with wchar_t */
#endif /* U_SHOW_CPLUSPLUS_API */
#endif
icu::UnicodeString
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition unistr.h:303
icu::operator<<
U_IO_API std::ostream & operator<<(std::ostream &stream, const UnicodeString &s)
Write the contents of a UnicodeString to a C++ ostream.
icu::operator>>
U_IO_API std::istream & operator>>(std::istream &stream, UnicodeString &s)
Write the contents from a C++ istream to a UnicodeString.
unistr.h
C++ API: Unicode String.
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
U_IO_API
#define U_IO_API
Set to export library symbols from inside the ustdio library, and to import them from outside.
Definition utypes.h:319