6 lines
164 B
Nim
6 lines
164 B
Nim
import unicode
|
|
|
|
var s: string = "Hello, world! ☺"
|
|
echo '"',s, '"'," has unicode char length: ", runeLen(s)
|
|
|
|
# -> "Hello, world! ☺" has unicode char length: 15
|