nlib
WcharInputStream.h
Go to the documentation of this file.
1 
2 /*--------------------------------------------------------------------------------*
3  Project: CrossRoad
4  Copyright (C)Nintendo All rights reserved.
5 
6  These coded instructions, statements, and computer programs contain proprietary
7  information of Nintendo and/or its licensed developers and are protected by
8  national and international copyright laws. They may not be disclosed to third
9  parties or copied or duplicated in any form, in whole or in part, without the
10  prior written consent of Nintendo.
11 
12  The content herein is highly confidential and should be handled accordingly.
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  NLIB_CEXPR Utf16InputStream() NLIB_NOEXCEPT : prv_(nullptr) {}
25  errno_t Init() NLIB_NOEXCEPT;
27 
28  private:
29  struct Utf16InputStreamPrivate;
30  Utf16InputStreamPrivate* prv_;
31 };
32 
34  public:
35  NLIB_CEXPR Utf32InputStream() NLIB_NOEXCEPT : prv_(nullptr) {}
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:89
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:105
#define NLIB_CEXPR
Defines constexpr if it is available for use. If not, holds an empty string.
Definition: Config.h:107
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