Unicode strings: Difference between revisions

Content added Content deleted
m ({{out}})
(Nimrod -> Nim)
Line 799: Line 799:
How broad/deep does the language support Unicode? What encodings (e.g. UTF-8, UTF-16, etc) can be used? Normalization? '''Using the standard .NET libraries, there is a lot of support for unicode string manipulation. For example, normalization is accomplished by simply calling the Normalize() method on a string.'''
How broad/deep does the language support Unicode? What encodings (e.g. UTF-8, UTF-16, etc) can be used? Normalization? '''Using the standard .NET libraries, there is a lot of support for unicode string manipulation. For example, normalization is accomplished by simply calling the Normalize() method on a string.'''


=={{header|Nimrod}}==
=={{header|Nim}}==
Strings are assumed to be UTF-8 in Nimrod.
Strings are assumed to be UTF-8 in Nim.
<lang nimrod>let c = "abcdé"
<lang nim>let c = "abcdé"
let Δ = 12
let Δ = 12
let e = "$abcde¢£¤¥©ÇßçIJijŁłʒλπ•₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₯₰₱₲₳₴₵₵←→⇒∙⌘☺☻ア字文𪚥"
let e = "$abcde¢£¤¥©ÇßçIJijŁłʒλπ•₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₯₰₱₲₳₴₵₵←→⇒∙⌘☺☻ア字文𪚥"