diff options
author | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-01-14 10:46:31 +0100 |
---|---|---|
committer | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-01-15 22:23:24 +0100 |
commit | 42f152569db36ea6894caf11189be8f6fd06a482 (patch) | |
tree | b3ba9fc96de0c6f7514eb9a776124aff63c13fb2 /doc | |
parent | 2c2174f2d0415f975adb0e1679822afe394eee7d (diff) | |
download | Nim-42f152569db36ea6894caf11189be8f6fd06a482.tar.gz |
References TRune, links unicode modules where mentioned.
Amends 0f3941b0013ea5d390586719f930fcf02b929f4d.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/manual.txt b/doc/manual.txt index c8b1c079c..f6dd1f521 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -342,7 +342,9 @@ A character is not an Unicode character but a single byte. The reason for this is efficiency: for the overwhelming majority of use-cases, the resulting programs will still handle UTF-8 properly as UTF-8 was specially designed for this. Another reason is that Nimrod can thus support ``array[char, int]`` or -``set[char]`` efficiently as many algorithms rely on this feature. +``set[char]`` efficiently as many algorithms rely on this feature. The `TRune` +type is used for Unicode characters, it can represent any Unicode character. +``TRune`` is declared in the `unicode module <unicode.html>`_. Numerical constants @@ -773,7 +775,8 @@ designed for this. Another reason is that Nimrod can support ``array[char, int]`` or ``set[char]`` efficiently as many algorithms rely on this feature. The `TRune` type is used for Unicode characters, it can represent any Unicode -character. ``TRune`` is declared in the ``unicode`` module. +character. ``TRune`` is declared in the `unicode module <unicode.html>`_. + @@ -870,8 +873,8 @@ arrays, they can be used in case statements: Per convention, all strings are UTF-8 strings, but this is not enforced. For example, when reading strings from binary files, they are merely a sequence of bytes. The index operation ``s[i]`` means the i-th *char* of ``s``, not the -i-th *unichar*. The iterator ``runes`` from the ``unicode`` -module can be used for iteration over all Unicode characters. +i-th *unichar*. The iterator ``runes`` from the `unicode module +<unicode.html>`_ can be used for iteration over all Unicode characters. CString type |