add BOM in sources

This commit is contained in:
2020-09-17 23:30:25 +08:00
parent c65a3a088f
commit 31d3aad9e8
7 changed files with 23 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
#include<hgl/util/xml/ElementParseCreater.h>
#include<hgl/util/xml/ElementParseCreater.h>
namespace hgl
{
@@ -16,7 +16,7 @@ namespace hgl
ecs_map.Add(name,ec);
return(true);
}
ElementCreater *ElementCreater::GetSubElementCreater(const UTF8String &sub_name)
{
if(sub_name.IsEmpty())return(nullptr);

View File

@@ -1,4 +1,4 @@
#include<hgl/util/xml/ElementParseCreater.h>
#include<hgl/util/xml/ElementParseCreater.h>
namespace hgl
{
@@ -35,7 +35,7 @@ namespace hgl
ecs_stack.Push(cur_ec);
}
cur_ec=nullptr;
cur_ec=nullptr;
if(ec)
{

View File

@@ -1,4 +1,4 @@
#include<hgl/util/xml/ElementParseKV.h>
#include<hgl/util/xml/ElementParseKV.h>
#include<hgl/CodePage.h>
namespace hgl
@@ -22,9 +22,9 @@ namespace hgl
const bool ElementParseKV::Get(const UTF8String &name,UTF8String &str)
{
const AttrItem *ai=GetAttrItem(name);
if(!ai)return(false);
str=ai->right;
return(true);
}
@@ -32,19 +32,19 @@ namespace hgl
const bool ElementParseKV::Get(const UTF8String &name,UTF16String &str)
{
const AttrItem *ai=GetAttrItem(name);
if(!ai)return(false);
str=to_u16(ai->right);
return(true);
}
const bool ElementParseKV::Get(const UTF8String &name,char &ch)
{
{
const AttrItem *ai=GetAttrItem(name);
if(!ai)return(false);
ch=ai->right.GetBeginChar();
return(true);
}
@@ -52,10 +52,10 @@ namespace hgl
const bool ElementParseKV::Get(const UTF8String &name,bool &value)
{
const AttrItem *ai=GetAttrItem(name);
return(ai?stob<char>(ai->right.c_str(),value):false);
}
const bool ElementParseKV::GetHexStr(const UTF8String &name,uint8 *data)
{
const AttrItem *ai=GetAttrItem(name);

View File

@@ -23,7 +23,7 @@ namespace hgl
{
flag=*atts;++atts;
info=*atts;++atts;
ep->Attr(flag,info);
}