add Get????Version function of expat/jsoncpp
This commit is contained in:
Submodule 3rdpty/expat updated: ed3484270f...0d9b081278
Submodule 3rdpty/jsoncpp updated: a3c8642886...5f4e10462f
@@ -4,6 +4,8 @@
|
||||
|
||||
namespace hgl
|
||||
{
|
||||
const UTF8String GetJsoncppVersion();
|
||||
|
||||
/**
|
||||
* 转换Json数据类型到普通UTF8字符串
|
||||
*/
|
||||
|
@@ -25,6 +25,8 @@ namespace hgl
|
||||
|
||||
namespace xml
|
||||
{
|
||||
const UTF8String GetExpatVersion();
|
||||
|
||||
constexpr int XML_PARSE_BUFFER_SIZE=HGL_SIZE_1KB*128; ///<XML解析缓冲区大小
|
||||
|
||||
/**
|
||||
|
@@ -9,6 +9,11 @@ using namespace std;
|
||||
|
||||
namespace hgl
|
||||
{
|
||||
const UTF8String GetJsoncppVersion()
|
||||
{
|
||||
return UTF8String(JSONCPP_VERSION_STRING);
|
||||
}
|
||||
|
||||
bool JsonToString(const Json::Value &jv_root,UTF8String &str,OSString &error_info)
|
||||
{
|
||||
Json::StreamWriterBuilder builder;
|
||||
|
@@ -9,6 +9,15 @@ namespace hgl
|
||||
{
|
||||
namespace xml
|
||||
{
|
||||
const UTF8String GetExpatVersion()
|
||||
{
|
||||
return( UTF8String::valueOf(XML_MAJOR_VERSION)+
|
||||
UTF8String(U8_TEXT("."))+
|
||||
UTF8String::valueOf(XML_MINOR_VERSION)+
|
||||
UTF8String(U8_TEXT("."))+
|
||||
UTF8String::valueOf(XML_MICRO_VERSION));
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
void XMLStartElement(ElementParse *ep,const XML_Char *name,const XML_Char **atts)
|
||||
|
Reference in New Issue
Block a user