diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-08-01 21:10:46 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-08-05 00:28:48 +0800 |
commit | 6db12c4f882411293da71c5951ba7088a9712c13 (patch) | |
tree | 37ebd2750465c6c8d356a8a46d1c235f686f874f /libsolidity | |
parent | c54e99a3f5888546ffa45ca31e955fee3f4d59f4 (diff) | |
download | dexon-solidity-6db12c4f882411293da71c5951ba7088a9712c13.tar.gz dexon-solidity-6db12c4f882411293da71c5951ba7088a9712c13.tar.zst dexon-solidity-6db12c4f882411293da71c5951ba7088a9712c13.zip |
Rename addUnicodeChar to addUnicodeAsUTF8
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/parsing/Scanner.cpp | 4 | ||||
-rw-r--r-- | libsolidity/parsing/Scanner.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/parsing/Scanner.cpp b/libsolidity/parsing/Scanner.cpp index 616e6a96..d730210a 100644 --- a/libsolidity/parsing/Scanner.cpp +++ b/libsolidity/parsing/Scanner.cpp @@ -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': diff --git a/libsolidity/parsing/Scanner.h b/libsolidity/parsing/Scanner.h index 3dde42b3..708adf8f 100644 --- a/libsolidity/parsing/Scanner.h +++ b/libsolidity/parsing/Scanner.h @@ -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(); } |