add Get????Version function of expat/jsoncpp
This commit is contained in:
@@ -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