Merge pull request #1136 from aruseni/patch-7
[strings] 2 code units are 4 bytes
This commit is contained in:
commit
1c0f029c75
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ Here's the full list:
|
|||
|`\b`, `\f`,`\v` | Backspace, Form Feed, Vertical Tab -- kept for compatibility, not used nowadays. |
|
||||
|`\xXX`|Unicode character with the given hexadimal unicode `XX`, e.g. `'\x7A'` is the same as `'z'`.|
|
||||
|`\uXXXX`|A unicode symbol with the hex code `XXXX` in UTF-16 encoding, for instance `\u00A9` -- is a unicode for the copyright symbol `©`. It must be exactly 4 hex digits. |
|
||||
|`\u{X…XXXXXX}` (1 to 6 hex characters)|A unicode symbol with the given UTF-32 encoding. Some rare characters are encoded with two unicode symbols, taking up to 4 bytes. This way we can insert long codes. |
|
||||
|`\u{X…XXXXXX}` (1 to 6 hex characters)|A unicode symbol with the given UTF-32 encoding. Some rare characters are encoded with two unicode symbols, taking 4 bytes. This way we can insert long codes. |
|
||||
|
||||
Examples with unicode:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue