[DEV] UniChar ==> UChar & Hach ==> Hash

This commit is contained in:
Edouard DUPIN 2013-10-18 21:15:02 +02:00
parent 6a652e96c9
commit 83786689c4
2 changed files with 5 additions and 5 deletions

View File

@ -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') {
EXML_DEBUG(_filePos << " parse '\\n'");
} 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 == '!'
|| _val == '"'
|| _val == '#'

View File

@ -75,7 +75,7 @@ namespace exml
return *this;
}
void newLine(void) { m_col=0; m_line++; };
bool check(const etk::UniChar& _val) {
bool check(const etk::UChar& _val) {
m_col++;
if (_val == '\n') {
newLine();
@ -167,13 +167,13 @@ namespace exml
* @param[in] _val Char that is parsed.
* @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).
* @param[in] _val Value to check the conformity.
* @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)
* @param[in] _data Data to parse.