[DEV] UniChar ==> UChar & Hach ==> Hash
This commit is contained in:
parent
6a652e96c9
commit
83786689c4
@ -34,7 +34,7 @@ void exml::Node::addIndent(etk::UString& _data, int32_t _indent) const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void exml::Node::drawElementParsed(const etk::UniChar& _val, const exml::filePos& _filePos) const {
|
void exml::Node::drawElementParsed(const etk::UChar& _val, const exml::filePos& _filePos) const {
|
||||||
if (_val == '\n') {
|
if (_val == '\n') {
|
||||||
EXML_DEBUG(_filePos << " parse '\\n'");
|
EXML_DEBUG(_filePos << " parse '\\n'");
|
||||||
} else if (_val == '\t') {
|
} else if (_val == '\t') {
|
||||||
@ -44,7 +44,7 @@ void exml::Node::drawElementParsed(const etk::UniChar& _val, const exml::filePos
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool exml::Node::checkAvaillable(const etk::UniChar& _val, bool _firstChar) const {
|
bool exml::Node::checkAvaillable(const etk::UChar& _val, bool _firstChar) const {
|
||||||
if( _val == '!'
|
if( _val == '!'
|
||||||
|| _val == '"'
|
|| _val == '"'
|
||||||
|| _val == '#'
|
|| _val == '#'
|
||||||
|
@ -75,7 +75,7 @@ namespace exml
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
void newLine(void) { m_col=0; m_line++; };
|
void newLine(void) { m_col=0; m_line++; };
|
||||||
bool check(const etk::UniChar& _val) {
|
bool check(const etk::UChar& _val) {
|
||||||
m_col++;
|
m_col++;
|
||||||
if (_val == '\n') {
|
if (_val == '\n') {
|
||||||
newLine();
|
newLine();
|
||||||
@ -167,13 +167,13 @@ namespace exml
|
|||||||
* @param[in] _val Char that is parsed.
|
* @param[in] _val Char that is parsed.
|
||||||
* @param[in] _filePos Position of the char in the file.
|
* @param[in] _filePos Position of the char in the file.
|
||||||
*/
|
*/
|
||||||
void drawElementParsed(const etk::UniChar& _val, const exml::filePos& _filePos) const;
|
void drawElementParsed(const etk::UChar& _val, const exml::filePos& _filePos) const;
|
||||||
/**
|
/**
|
||||||
* @brief check if an element or attribute is availlable (not : !"#$%&'()*+,/;<=>?@[\]^`{|}~ \n\t\r and for first char : not -.0123456789).
|
* @brief check if an element or attribute is availlable (not : !"#$%&'()*+,/;<=>?@[\]^`{|}~ \n\t\r and for first char : not -.0123456789).
|
||||||
* @param[in] _val Value to check the conformity.
|
* @param[in] _val Value to check the conformity.
|
||||||
* @param[in] _firstChar True if the element check is the first char.
|
* @param[in] _firstChar True if the element check is the first char.
|
||||||
*/
|
*/
|
||||||
bool checkAvaillable(const etk::UniChar& _val, bool _firstChar) const;
|
bool checkAvaillable(const etk::UChar& _val, bool _firstChar) const;
|
||||||
/**
|
/**
|
||||||
* @brief count the number of white char in the string from the specify position (stop at the first element that is not a white char)
|
* @brief count the number of white char in the string from the specify position (stop at the first element that is not a white char)
|
||||||
* @param[in] _data Data to parse.
|
* @param[in] _data Data to parse.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user