use u8char instead char in XMLParse

This commit is contained in:
2020-08-25 21:47:05 +08:00
parent e79ac1ca03
commit 44f897d608
7 changed files with 61 additions and 56 deletions

View File

@@ -1,6 +1,7 @@
#ifndef HGL_UTIL_XML_ELEMENT_PARSE_INCLUDE
#define HGL_UTIL_XML_ELEMENT_PARSE_INCLUDE
#include<hgl/type/DataType.h>
namespace hgl
{
namespace xml
@@ -14,10 +15,10 @@ namespace hgl
virtual ~ElementParse()=default;
virtual bool Start (const char *element_name) {return(true);}
virtual void Attr (const char *flag,const char *info) {}
virtual void CharData (const char *str,const int str_length) {}
virtual void End (const char *element_name) {}
virtual bool Start (const u8char *element_name) {return(true);}
virtual void Attr (const u8char *flag,const u8char *info) {}
virtual void CharData (const u8char *str,const int str_length){}
virtual void End (const u8char *element_name) {}
};//class ElementParse
}//namespace xml
}//namespace hgl