ICU 58.2 58.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

ustream.h
Go to the documentation of this file.
1 // Copyright (C) 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/unistr.h"
21
22 #if !UCONFIG_NO_CONVERSION // not available without conversion
23
33 #if !defined(_MSC_VER)
34 namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
35 #endif
36
37 #if U_IOSTREAM_SOURCE >= 199711
38 #if (__GNUC__ == 2)
39 #include <iostream>
40 #else
41 #include <istream>
42 #include <ostream>
43 #endif
44
45 U_NAMESPACE_BEGIN
46
54 U_IO_API std::ostream & U_EXPORT2 operator<<(std::ostream& stream, const UnicodeString& s);
55
62 U_IO_API std::istream & U_EXPORT2 operator>>(std::istream& stream, UnicodeString& s);
63 U_NAMESPACE_END
64
65 #endif
66
67 /* No operator for UChar because it can conflict with wchar_t */
68
69 #endif
70 #endif
unistr.h
C++ API: Unicode String.
std
Definition: std_string.h:33
U_NAMESPACE_BEGIN
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:131
U_NAMESPACE_END
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:132
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:363