ICU 56.1: ustream.h Source File

ICU 56.1 56.1

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

- File List
- Globals

ustream.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (C) 2001-2014 International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * FILE NAME : ustream.h
7 *
8 * Modification History:
9 *
10 * Date Name Description
11 * 06/25/2001 grhoten Move iostream from unistr.h
12 ******************************************************************************
13 */
14
15 #ifndef USTREAM_H
16 #define USTREAM_H
17
18 #include "unicode/unistr.h"
19
20 #if !UCONFIG_NO_CONVERSION // not available without conversion
21
31 #if !defined(_MSC_VER)
32 namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
33 #endif
34
35 #if U_IOSTREAM_SOURCE >= 199711
36 #if (__GNUC__ == 2)
37 #include <iostream>
38 #else
39 #include <istream>
40 #include <ostream>
41 #endif
42
43 U_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);
61 U_NAMESPACE_END
62
63 #endif
64
65 /* No operator for UChar because it can conflict with wchar_t */
66
67 #endif
68 #endif
unistr.h
C++ API: Unicode String.
std
Definition: std_string.h:31
U_NAMESPACE_BEGIN
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
U_NAMESPACE_END
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
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:361