add BOM in sources
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#ifndef HGL_UTIL_XML_ELEMENT_PARSE_INCLUDE
|
||||
#ifndef HGL_UTIL_XML_ELEMENT_PARSE_INCLUDE
|
||||
#define HGL_UTIL_XML_ELEMENT_PARSE_INCLUDE
|
||||
|
||||
#include<hgl/type/DataType.h>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#ifndef HGL_UTIL_XML_ELEMENT_PARSE_CREATER_INCLUDE
|
||||
#ifndef HGL_UTIL_XML_ELEMENT_PARSE_CREATER_INCLUDE
|
||||
#define HGL_UTIL_XML_ELEMENT_PARSE_CREATER_INCLUDE
|
||||
|
||||
#include<hgl/util/xml/ElementParse.h>
|
||||
@@ -16,7 +16,7 @@ namespace hgl
|
||||
UTF8String element_name;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Map<AnsiString,ElementCreater *> ecs_map;
|
||||
|
||||
virtual ElementCreater *GetSubElementCreater(const UTF8String &sub_name);
|
||||
@@ -65,7 +65,7 @@ namespace hgl
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
|
||||
virtual bool Init () override
|
||||
{
|
||||
attrs_list.ClearData();
|
||||
@@ -84,7 +84,7 @@ namespace hgl
|
||||
class ElementParseCreater:public ElementParse
|
||||
{
|
||||
Stack<ElementCreater *> ecs_stack;
|
||||
|
||||
|
||||
Map<AnsiString,ElementCreater *> ecs_map;
|
||||
|
||||
ElementCreater *cur_ec;
|
||||
@@ -103,7 +103,7 @@ namespace hgl
|
||||
bool Registry (ElementCreater *ec);
|
||||
|
||||
public:
|
||||
|
||||
|
||||
virtual bool Init (const u8char *element_name) override;
|
||||
virtual void Attr (const u8char *flag,const u8char *info) override;
|
||||
virtual bool Start () override;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#ifndef HGL_UTIL_XML_ELEMENT_PARSE_KV_INCLUDE
|
||||
#ifndef HGL_UTIL_XML_ELEMENT_PARSE_KV_INCLUDE
|
||||
#define HGL_UTIL_XML_ELEMENT_PARSE_KV_INCLUDE
|
||||
|
||||
#include<hgl/util/xml/ElementParse.h>
|
||||
@@ -26,7 +26,7 @@ namespace hgl
|
||||
|
||||
template<typename T> const bool GetInteger (const UTF8String &name,T &value){const AttrItem *ai=GetAttrItem(name);return(ai?stoi(ai->right.c_str(),value):false);}
|
||||
template<typename T> const bool GetUInteger (const UTF8String &name,T &value){const AttrItem *ai=GetAttrItem(name);return(ai?stou(ai->right.c_str(),value):false);}
|
||||
template<typename T> const bool GetFloat (const UTF8String &name,T &value){const AttrItem *ai=GetAttrItem(name);return(ai?stof(ai->right.c_str(),value):false);}
|
||||
template<typename T> const bool GetFloat (const UTF8String &name,T &value){const AttrItem *ai=GetAttrItem(name);return(ai?stof(ai->right.c_str(),value):false);}
|
||||
|
||||
public:
|
||||
|
||||
|
Reference in New Issue
Block a user