nlib
WcharInputStream.h
Go to the documentation of this file.
1 
2 /*---------------------------------------------------------------------------*
3 
4  Project: CrossRoad
5  Copyright (C)2012-2016 Nintendo. All rights reserved.
6 
7  These coded instructions, statements, and computer programs contain
8  proprietary information of Nintendo of America Inc. and/or Nintendo
9  Company Ltd., and are protected by Federal copyright law. They may
10  not be disclosed to third parties or copied or duplicated in any form,
11  in whole or in part, without the prior written consent of Nintendo.
12 
13  *---------------------------------------------------------------------------*/
14 
15 #pragma once
16 #ifndef INCLUDE_NN_NLIB_WCHARINPUTSTREAM_H_
17 #define INCLUDE_NN_NLIB_WCHARINPUTSTREAM_H_
18 
20 
21 NLIB_NAMESPACE_BEGIN
23  public:
24  Utf16InputStream() NLIB_NOEXCEPT : prv_(NULL) {}
25  errno_t Init() NLIB_NOEXCEPT;
27 
28  private:
29  struct Utf16InputStreamPrivate;
30  Utf16InputStreamPrivate* prv_;
31 };
32 
34  public:
35  Utf32InputStream() NLIB_NOEXCEPT : prv_(NULL) {}
36  errno_t Init() NLIB_NOEXCEPT;
38 
39  private:
40  struct Utf32InputStreamPrivate;
41  Utf32InputStreamPrivate* prv_;
42 };
43 
44 #ifndef NLIB_DOXYGEN
45 #if NLIB_WCHAR_SIZE == 4
47 #else
49 #endif
50 #else
51 #if NLIB_WCHAR_SIZE == 4
52 class WcharInputStream NLIB_FINAL : public Utf32InputStream {
53  public:
54 };
55 #else
56 class WcharInputStream NLIB_FINAL : public Utf16InputStream {
57  public:
58 };
59 #endif
60 #endif
61 NLIB_NAMESPACE_END
62 
63 #endif // INCLUDE_NN_NLIB_WCHARINPUTSTREAM_H_
The base class for classes that act internally like InputStream to convert data.
#define NLIB_VIS_PUBLIC
Symbols for functions and classes are made available outside of the library.
Definition: Platform_unix.h:87
The class for reading string streams of wide characters (wchar_t and UTF-16 or UTF-32) as UTF-8...
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
Definition: Config.h:99
The class for reading UTF-32 string streams as UTF-8.
The class for reading UTF-16 string streams as UTF-8.
int errno_t
Indicates with an int-type typedef that a POSIX error value is returned as the return value...
Definition: NMalloc.h:37