Sha256: fb5882023f2e7144aa8b3bea2cea838122c5ffd714a7487e9e0fb6eb90fc325c

Contents?: true

Size: 1.8 KB

Versions: 30

Compression:

Stored size: 1.8 KB

Contents

/*
**********************************************************************
*   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/unistr.h"

#if !UCONFIG_NO_CONVERSION  // not available without conversion

/**
 * \file
 * \brief C++ API: Unicode iostream like API
 *
 * At this time, this API is very limited. It contains
 * operator<< and operator>> for UnicodeString manipulation with the
 * C++ I/O stream API.
 */

#if !defined(_MSC_VER)
namespace std { class type_info; } // WORKAROUND: http://llvm.org/bugs/show_bug.cgi?id=13364
#endif

#if U_IOSTREAM_SOURCE >= 199711
#if (__GNUC__ == 2)
#include <iostream>
#else
#include <istream>
#include <ostream>
#endif

U_NAMESPACE_BEGIN

/**
 * Write the contents of a UnicodeString to a C++ ostream. This functions writes
 * the characters in a UnicodeString to an ostream. The UChars in the
 * UnicodeString are converted to the char based ostream with the default
 * converter.
 * @stable 3.0
 */
U_IO_API std::ostream & U_EXPORT2 operator<<(std::ostream& stream, const UnicodeString& s);

/**
 * Write the contents from a C++ istream to a UnicodeString. The UChars in the
 * UnicodeString are converted from the char based istream with the default
 * converter.
 * @stable 3.0
 */
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
#endif

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
node-compiler-0.7.0 vendor/node-v6.9.1/deps/icu-small/source/io/unicode/ustream.h
pango-3.1.0-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.1.0-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.9-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.9-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.8-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.8-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.7-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.7-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.6-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.6-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.5-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.5-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.4-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.4-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.3-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.3-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.2-x86-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.2-x64-mingw32 vendor/local/include/unicode/ustream.h
pango-3.0.1-x86-mingw32 vendor/local/include/unicode/ustream.h