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