nlib
WcharInputStream.h
Go to the documentation of this file.
1 
2 #pragma once
3 #ifndef INCLUDE_NN_NLIB_WCHARINPUTSTREAM_H_
4 #define INCLUDE_NN_NLIB_WCHARINPUTSTREAM_H_
5 
7 
8 NLIB_NAMESPACE_BEGIN
10  public:
11  Utf16InputStream() NLIB_NOEXCEPT : prv_(NULL) {}
12  errno_t Init() NLIB_NOEXCEPT;
14 
15  private:
16  struct Utf16InputStreamPrivate;
17  Utf16InputStreamPrivate* prv_;
18 };
19 
21  public:
22  Utf32InputStream() NLIB_NOEXCEPT : prv_(NULL) {}
23  errno_t Init() NLIB_NOEXCEPT;
25 
26  private:
27  struct Utf32InputStreamPrivate;
28  Utf32InputStreamPrivate* prv_;
29 };
30 
31 #ifndef NLIB_DOXYGEN
32 #if NLIB_WCHAR_SIZE == 4
34 #else
36 #endif
37 #else
38 #if NLIB_WCHAR_SIZE == 4
39 class WcharInputStream NLIB_FINAL : public Utf32InputStream {
40  public:
41 };
42 #else
43 class WcharInputStream NLIB_FINAL : public Utf16InputStream {
44  public:
45 };
46 #endif
47 #endif
48 NLIB_NAMESPACE_END
49 
50 #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:61
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:86
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:24