reorganize and elaborate on unicode

This commit is contained in:
flaviut 2014-06-20 19:02:35 -04:00
commit e903e64461
6 changed files with 11 additions and 10 deletions

0
content/arrays.md Normal file
View file

0
content/bitsets.md Normal file
View file

0
content/seqs.md Normal file
View file

View file

@ -1,11 +1,7 @@
--- ---
title: Primitive Data Structures title: Strings
--- ---
# Primitive Data Structures # Strings
Nimrod contains several basic builtin data structures: sequences, strings, bitsets, and arrays.
## Strings
``` nimrod ``` nimrod
echo "words words words ⚑" echo "words words words ⚑"
@ -43,5 +39,7 @@ There are several types of strings literals:
- Raw Strings: created by prefixing the string with an `r`. There are no escape sequences don't work, except for `"`, which can be escaped as `""` - Raw Strings: created by prefixing the string with an `r`. There are no escape sequences don't work, except for `"`, which can be escaped as `""`
- Proc Strings: raw strings, but the method name that prefixes the string is called - Proc Strings: raw strings, but the method name that prefixes the string is called
### A note about unicode ## A note about unicode
Unicode symbols are allowed in strings, but are not treated in any special way, so if you want count glyphs or uppercase unicode symbols, you must use the `unicode` module. Unicode symbols are allowed in strings, but are not treated in any special way, so if you want count glyphs or uppercase unicode symbols, you must use the `unicode` module.
Strings are generally considered to be encoded as UTF-8, so because of unicode's backwards compatibility, can be treated exactly as ASCII, with all values above 127 ignored.

View file

@ -8,12 +8,15 @@
* [If, Else, While, Block](/if_else_while/) * [If, Else, While, Block](/if_else_while/)
* [Case Statements](/case/) * [Case Statements](/case/)
* [For Loops & Iterators](/for_iterators/) * [For Loops & Iterators](/for_iterators/)
* [Primitive Types](/primitives/)
* [Types](/types/) * [Types](/types/)
* [Object Types](/types/objects/) * [Object Types](/types/objects/)
* [Enum Types](/types/enums/) * [Enum Types](/types/enums/)
* [Distinct Types](/types/distinct/) * [Distinct Types](/types/distinct/)
* [Primitive Types](/types/primitives/) * [Strings](/strings/)
* [Primitive Data Structures](/types/primitive_data_structures/) * [Arrays](/arrays/)
* [Sequences](/seqs/)
* [Bitsets](/bitsets/)
* [Procedures](/procs/) * [Procedures](/procs/)
* [Exceptions](/exceptions/) * [Exceptions](/exceptions/)
* [Varargs](/varargs/) * [Varargs](/varargs/)