Rename addUnicodeChar to addUnicodeAsUTF8

This commit is contained in:
Alex Beregszaszi 2016-08-01 14:10:46 +01:00
parent c54e99a3f5
commit 6db12c4f88
2 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ bool Scanner::scanUnicode(unsigned & o_codepoint)
}
// This supports codepoints between 0000 and FFFF.
void Scanner::addUnicodeChar(unsigned codepoint)
void Scanner::addUnicodeAsUTF8(unsigned codepoint)
{
if (codepoint <= 0x7f)
addLiteralChar(codepoint);
@ -647,7 +647,7 @@ bool Scanner::scanEscape()
unsigned codepoint;
if (!scanUnicode(codepoint))
return false;
addUnicodeChar(codepoint);
addUnicodeAsUTF8(codepoint);
return true;
}
case 'x':

View File

@ -175,7 +175,7 @@ private:
inline void addLiteralChar(char c) { m_nextToken.literal.push_back(c); }
inline void addCommentLiteralChar(char c) { m_nextSkippedComment.literal.push_back(c); }
inline void addLiteralCharAndAdvance() { addLiteralChar(m_char); advance(); }
void addUnicodeChar(unsigned codepoint);
void addUnicodeAsUTF8(unsigned codepoint);
///@}
bool advance() { m_char = m_source.advanceAndGet(); return !m_source.isPastEndOfInput(); }