Artifact 34f51c600826a185b054502eb1792afdf155ec6b6246c65917198521b3e441e2:
- File
src/OFStdIOStream_Win32Console.h
— part of check-in
[566d4df603]
at
2016-03-13 10:24:22
on branch trunk
— OFStdIOStream_Win32Console: Improve reading
On reads, surrogates that have been cut off are now properly handled. (user: js, size: 804) [annotate] [blame] [check-ins using]
/* * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 * Jonathan Schleifer <js@heap.zone> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in * the packaging of this file. * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #define OF_STDIO_STREAM_WIN32CONSOLE_H #import "OFStdIOStream.h" OF_ASSUME_NONNULL_BEGIN @interface OFStdIOStream_Win32Console: OFStdIOStream { HANDLE _handle; of_char16_t _incompleteSurrogate; } @end OF_ASSUME_NONNULL_END