reorganize and elaborate on unicode
This commit is contained in:
parent
525895019d
commit
e903e64461
6 changed files with 11 additions and 10 deletions
0
content/arrays.md
Normal file
0
content/arrays.md
Normal file
0
content/bitsets.md
Normal file
0
content/bitsets.md
Normal file
0
content/seqs.md
Normal file
0
content/seqs.md
Normal file
|
|
@ -1,11 +1,7 @@
|
|||
---
|
||||
title: Primitive Data Structures
|
||||
title: Strings
|
||||
---
|
||||
# Primitive Data Structures
|
||||
|
||||
Nimrod contains several basic builtin data structures: sequences, strings, bitsets, and arrays.
|
||||
|
||||
## Strings
|
||||
# Strings
|
||||
|
||||
``` nimrod
|
||||
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 `""`
|
||||
- Proc Strings: raw strings, but the method name that prefixes the string is called
|
||||
|
||||
### 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.
|
||||
## 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.
|
||||
|
||||
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.
|
||||
|
|
@ -8,12 +8,15 @@
|
|||
* [If, Else, While, Block](/if_else_while/)
|
||||
* [Case Statements](/case/)
|
||||
* [For Loops & Iterators](/for_iterators/)
|
||||
* [Primitive Types](/primitives/)
|
||||
* [Types](/types/)
|
||||
* [Object Types](/types/objects/)
|
||||
* [Enum Types](/types/enums/)
|
||||
* [Distinct Types](/types/distinct/)
|
||||
* [Primitive Types](/types/primitives/)
|
||||
* [Primitive Data Structures](/types/primitive_data_structures/)
|
||||
* [Strings](/strings/)
|
||||
* [Arrays](/arrays/)
|
||||
* [Sequences](/seqs/)
|
||||
* [Bitsets](/bitsets/)
|
||||
* [Procedures](/procs/)
|
||||
* [Exceptions](/exceptions/)
|
||||
* [Varargs](/varargs/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue