NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_cpp_wrapper_util::Json::OurCharReader类 参考
类 nim_cpp_wrapper_util::Json::OurCharReader 继承关系图:
nim_cpp_wrapper_util::Json::CharReader

Public 成员函数

 OurCharReader (bool collectComments, OurFeatures const &features)
 
bool parse (char const *beginDoc, char const *endDoc, Value *root, String *errs) override
 Read a Value from a JSON document. The document must be a UTF-8 encoded string containing the document to read.
 
- Public 成员函数 继承自 nim_cpp_wrapper_util::Json::CharReader
virtual ~CharReader ()=default
 
virtual bool parse (char const *beginDoc, char const *endDoc, Value *root, String *errs)=0
 Read a Value from a JSON document. The document must be a UTF-8 encoded string containing the document to read.
 

Private 属性

bool const collectComments_
 
OurReader reader_
 

构造及析构函数说明

◆ OurCharReader()

nim_cpp_wrapper_util::Json::OurCharReader::OurCharReader ( bool  collectComments,
OurFeatures const &  features 
)
inline

成员函数说明

◆ parse()

bool nim_cpp_wrapper_util::Json::OurCharReader::parse ( char const *  beginDoc,
char const *  endDoc,
Value root,
String errs 
)
inlineoverridevirtual

Read a Value from a JSON document. The document must be a UTF-8 encoded string containing the document to read.

参数
beginDocPointer on the beginning of the UTF-8 encoded string of the document to read.
endDocPointer on the end of the UTF-8 encoded string of the document to read. Must be >= beginDoc.
[out]rootContains the root value of the document if it was successfully parsed.
[out]errsFormatted error messages (if not NULL) a user friendly string that lists errors in the parsed document.
返回
true if the document was successfully parsed, false if an error occurred.

实现了 nim_cpp_wrapper_util::Json::CharReader.

类成员变量说明

◆ collectComments_

bool const nim_cpp_wrapper_util::Json::OurCharReader::collectComments_
private

◆ reader_

OurReader nim_cpp_wrapper_util::Json::OurCharReader::reader_
private

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