[DEV] change default Instance

This commit is contained in:
Edouard DUPIN 2014-08-13 22:30:47 +02:00
parent c7d2b2e871
commit d97fe2efa7
3 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ bool exml::Attribute::iParse(const std::string& _data, int32_t& _pos, bool _case
} }
m_name = std::string(_data, _pos, lastElementName+1-(_pos)); m_name = std::string(_data, _pos, lastElementName+1-(_pos));
if (true == _caseSensitive) { if (true == _caseSensitive) {
m_name = std::tolower(m_name); m_name = etk::tolower(m_name);
} }
// count white space : // count white space :
exml::filePos tmpPos; exml::filePos tmpPos;

View File

@ -145,7 +145,7 @@ void exml::Document::displayError() {
void exml::Document::createError(const std::string& _data, int32_t _pos, const exml::filePos& _filePos, const std::string& _comment) { void exml::Document::createError(const std::string& _data, int32_t _pos, const exml::filePos& _filePos, const std::string& _comment) {
m_comment = _comment; m_comment = _comment;
m_Line = extract_line(_data, _pos); m_Line = etk::extract_line(_data, _pos);
m_filePos = _filePos; m_filePos = _filePos;
if (true == m_writeErrorWhenDetexted) { if (true == m_writeErrorWhenDetexted) {
displayError(); displayError();

View File

@ -225,7 +225,7 @@ bool exml::Element::subParse(const std::string& _data, int32_t& _pos, bool _case
} }
std::string tmpname = std::string(_data, iii+white+2, endPosName+1-(iii+white+2)); std::string tmpname = std::string(_data, iii+white+2, endPosName+1-(iii+white+2));
if (true == _caseSensitive) { if (true == _caseSensitive) {
tmpname = std::tolower(tmpname); tmpname = etk::tolower(tmpname);
} }
// Find declaration balise // Find declaration balise
exml::Declaration* declaration = new exml::Declaration(tmpname); exml::Declaration* declaration = new exml::Declaration(tmpname);
@ -328,7 +328,7 @@ bool exml::Element::subParse(const std::string& _data, int32_t& _pos, bool _case
} }
std::string tmpname = std::string(_data, iii+white+2, endPosName+1-(iii+white+2)); std::string tmpname = std::string(_data, iii+white+2, endPosName+1-(iii+white+2));
if (true == _caseSensitive) { if (true == _caseSensitive) {
tmpname = std::tolower(tmpname); tmpname = etk::tolower(tmpname);
} }
if( tmpname == m_value) { if( tmpname == m_value) {
// find end of node : // find end of node :
@ -379,7 +379,7 @@ bool exml::Element::subParse(const std::string& _data, int32_t& _pos, bool _case
} }
std::string tmpname = std::string(_data, iii+white+1, endPosName+1-(iii+white+1)); std::string tmpname = std::string(_data, iii+white+1, endPosName+1-(iii+white+1));
if (true == _caseSensitive) { if (true == _caseSensitive) {
std::tolower(tmpname); etk::tolower(tmpname);
} }
//EXML_INFO("find node named : '" << tmpname << "'"); //EXML_INFO("find node named : '" << tmpname << "'");
// find text: // find text: