nlib
WcharInputStream.h
[詳解]
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_
内部でデータ変換を行う InputStream のように振る舞うクラスの基底です。
#define NLIB_VIS_PUBLIC
関数やクラス等のシンボルをライブラリの外部に公開します。
Definition: Platform_unix.h:89
ワイド文字(wchar_t, UTF-16/UTF-32)の文字列ストリームをUTF-8にして読み込むためのクラスです。 ...
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。
Definition: Config.h:105
#define NLIB_CEXPR
利用可能であればconstexprが定義されます。そうでない場合は空文字列です。
Definition: Config.h:107
UTF-32の文字列ストリームをUTF-8にして読み込むためのクラスです。
UTF-16の文字列ストリームをUTF-8にして読み込むためのクラスです。
int errno_t
intのtypedefで、戻り値としてPOSIXのエラー値を返すことを示します。
Definition: NMalloc.h:37