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 @@
#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: