RapidJSON: rapidjson::AutoUTFOutputStream< CharType, OutputByteStream > 模板类 参考

Public 类型 | Public 成员函数 | 所有成员列表
rapidjson::AutoUTFOutputStream< CharType, OutputByteStream > 模板类 参考

Output stream wrapper with dynamically bound encoding and automatic encoding detection. 更多...

`#include <encodedstream.h>`

## Public 类型
typedef CharType | Ch

## Public 成员函数
| AutoUTFOutputStream (OutputByteStream &os, UTFType type, bool putBOM)
| Constructor. 更多...
UTFType | GetType () const
void | Put (Ch c)
void | Flush ()
Ch | Peek () const
Ch | Take ()
size_t | Tell () const
Ch * | PutBegin ()
size_t | PutEnd (Ch *)

## 详细描述

### template<typename CharType, typename OutputByteStream>
class rapidjson::AutoUTFOutputStream< CharType, OutputByteStream >

Output stream wrapper with dynamically bound encoding and automatic encoding detection.

模板参数

  CharType | Type of character for writing.
  OutputByteStream | type of output byte stream to be wrapped.

## 构造及析构函数说明

## ◆ AutoUTFOutputStream()

template<typename CharType , typename OutputByteStream >

rapidjson::AutoUTFOutputStream< CharType, OutputByteStream >::AutoUTFOutputStream | ( | OutputByteStream & | os,
|  | UTFType | type,
|  | bool | putBOM
| ) |  |
| inline

Constructor.

参数

  os | output stream to be wrapped.
  type | UTF encoding type.
  putBOM | Whether to write BOM at the beginning of the stream.

该类的文档由以下文件生成:

- include/rapidjson/encodedstream.h