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 /docs | |
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 'docs')
-rw-r--r-- | docs/types.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst index 35f0e247..0c5aaf1b 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -214,7 +214,9 @@ a non-rational number). String Literals --------------- -String Literals are written with double quotes (``"abc"``). As with integer literals, their type can vary, but they are implicitly convertible to ``bytes`` if they fit, to ``bytes`` and to ``string``. +String Literals are written with double quotes (``"abc"``). As with integer literals, their type can vary, but they are implicitly convertible to ``bytes1``, ..., ``bytes32`` if they fit, to ``bytes`` and to ``string``. + +String Literals support escape characters, such as ``\n``, ``\xNN`` and ``\uNNNN``. ``\xNN`` takes a hex value and inserts the appropriate byte, while ``\uNNNN`` takes a Unicode codepoint and inserts an UTF8 sequence. .. index:: enum |