diff options
author | chriseth <chris@ethereum.org> | 2016-08-05 14:47:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-05 14:47:52 +0800 |
commit | 3c93a22d478b9439d6e226ad7954fe571117f439 (patch) | |
tree | 687cb5a48bfbd8ea356444cc9034978345229155 /libsolidity/parsing/Scanner.h | |
parent | ff60ce988b29c792eacae6e0ec1501ae7fb50b19 (diff) | |
parent | b881dbb29200558d93c642ef41950d9d43a7e679 (diff) | |
download | dexon-solidity-3c93a22d478b9439d6e226ad7954fe571117f439.tar dexon-solidity-3c93a22d478b9439d6e226ad7954fe571117f439.tar.gz dexon-solidity-3c93a22d478b9439d6e226ad7954fe571117f439.tar.bz2 dexon-solidity-3c93a22d478b9439d6e226ad7954fe571117f439.tar.lz dexon-solidity-3c93a22d478b9439d6e226ad7954fe571117f439.tar.xz dexon-solidity-3c93a22d478b9439d6e226ad7954fe571117f439.tar.zst dexon-solidity-3c93a22d478b9439d6e226ad7954fe571117f439.zip |
Merge pull request #666 from axic/feature/unicode-escape
Support unicode escape characters
Diffstat (limited to 'libsolidity/parsing/Scanner.h')
-rw-r--r-- | libsolidity/parsing/Scanner.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/parsing/Scanner.h b/libsolidity/parsing/Scanner.h index cd60aff8..708adf8f 100644 --- a/libsolidity/parsing/Scanner.h +++ b/libsolidity/parsing/Scanner.h @@ -175,6 +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 addUnicodeAsUTF8(unsigned codepoint); ///@} bool advance() { m_char = m_source.advanceAndGet(); return !m_source.isPastEndOfInput(); } @@ -185,6 +186,7 @@ private: inline Token::Value selectToken(char _next, Token::Value _then, Token::Value _else); bool scanHexByte(char& o_scannedByte); + bool scanUnicode(unsigned& o_codepoint); /// Scans a single Solidity token. void scanToken(); |