ICU 70.1 70.1

ustream.h
Go to the documentation of this file.
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4**********************************************************************
5* Copyright (C) 2001-2014 International Business Machines
6* Corporation and others. All Rights Reserved.
7**********************************************************************
8* FILE NAME : ustream.h
9*
10* Modification History:
11*
12* Date Name Description
13* 06/25/2001 grhoten Move iostream from unistr.h
14******************************************************************************
15*/
16
17#ifndef USTREAM_H
18#define USTREAM_H
19
20#include "unicode/utypes.h"
21
22#if U_SHOW_CPLUSPLUS_API
23
24#include "unicode/unistr.h"
25
26#if !UCONFIG_NO_CONVERSION // not available without conversion
27
37#if defined(__GLIBCXX__)
38 namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
39#endif
40
41#include <iostream>
42
43U_NAMESPACE_BEGIN
44
52 U_IO_API std::ostream & U_EXPORT2 operator<<(std::ostream& stream, const UnicodeString& s);
53
60 U_IO_API std::istream & U_EXPORT2 operator>>(std::istream& stream, UnicodeString& s);
61U_NAMESPACE_END
62
63#endif
64
65/* No operator for UChar because it can conflict with wchar_t */
66
67#endif /* U_SHOW_CPLUSPLUS_API */
68
69#endif
icu::UnicodeString
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition: unistr.h:296
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:304