AutoUTFInputStream< CharType, InputByteStream > Class Template Reference#
AutoUTFInputStream< CharType, InputByteStream > Class Template Reference
Input stream wrapper with dynamically bound encoding and automatic encoding detection. More...
#include <encodedstream.h>
Public Types | |
| typedef CharType | Ch |
Public Member Functions | |
| AutoUTFInputStream (InputByteStream &is, UTFType type=kUTF8) | |
| Constructor. | |
| UTFType | GetType () const |
| bool | HasBOM () const |
| Ch | Peek () const |
| Ch | Take () |
| size_t | Tell () const |
| void | Put (Ch) |
| void | Flush () |
| Ch * | PutBegin () |
| size_t | PutEnd (Ch *) |
Detailed Description
template<typename CharType, typename InputByteStream>
class AutoUTFInputStream< CharType, InputByteStream >
class AutoUTFInputStream< CharType, InputByteStream >
Input stream wrapper with dynamically bound encoding and automatic encoding detection.
- Template Parameters
-
CharType Type of character for reading. InputByteStream type of input byte stream to be wrapped.
Member Typedef Documentation
◆ Ch
template<typename CharType, typename InputByteStream>
| typedef CharType AutoUTFInputStream< CharType, InputByteStream >::Ch |
Constructor & Destructor Documentation
◆ AutoUTFInputStream()
template<typename CharType, typename InputByteStream>
|
inline |
Constructor.
- Parameters
-
is input stream to be wrapped. type UTF encoding type if it is not detected from the stream.
Member Function Documentation
◆ Flush()
template<typename CharType, typename InputByteStream>
|
inline |
◆ GetType()
template<typename CharType, typename InputByteStream>
|
inline |
◆ HasBOM()
template<typename CharType, typename InputByteStream>
|
inline |
◆ Peek()
template<typename CharType, typename InputByteStream>
|
inline |
◆ Put()
template<typename CharType, typename InputByteStream>
|
inline |
◆ PutBegin()
template<typename CharType, typename InputByteStream>
|
inline |
◆ PutEnd()
template<typename CharType, typename InputByteStream>
|
inline |
◆ Take()
template<typename CharType, typename InputByteStream>
|
inline |
◆ Tell()
template<typename CharType, typename InputByteStream>
|
inline |
The documentation for this class was generated from the following file: