NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_cpp_wrapper_util::Json::CharReader类 参考abstract

#include <reader.h>

类 nim_cpp_wrapper_util::Json::CharReader 继承关系图:
nim_cpp_wrapper_util::Json::OurCharReader

class  Factory
 

Public 成员函数

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.
 

详细描述

Interface for reading JSON from a char array.

构造及析构函数说明

◆ ~CharReader()

virtual nim_cpp_wrapper_util::Json::CharReader::~CharReader ( )
virtualdefault

成员函数说明

◆ parse()

virtual bool nim_cpp_wrapper_util::Json::CharReader::parse ( char const *  beginDoc,
char const *  endDoc,
Value root,
String errs 
)
pure virtual

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::OurCharReader 内被实现.


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