String case: Difference between revisions

→‎{{header|Nim}}: case not handled correctly
(→‎{{header|Nim}}: case not handled correctly)
Line 2,405:
alphaBETA_123 as capitalized: AlphaBETA_123
alphaBETA_123 as normal case: alphabeta123</pre>
 
Even with the Unicode specialized procedure, Nim doesn't handle all character correctly. For example, it fails for some characters like [https://en.wikipedia.org/wiki/%C3%9F ß] where it hasn't changed <code>ß</code> into <code>SS</code> (expected <code>STROSSBÙRRI</code>)<ref>https://unicode.org/faq/casemap_charprop.html#11</ref>.
 
<syntaxhighlight lang="nim">
import unicode
var a: string = "Stroßbùrri"
var b: string = "ĥåçýджк"
echo a.toUpper
echo b.toUpper
</syntaxhighlight>
 
{{out}}
 
<pre>
STROßBÙRRI
ĤÅÇÝДЖК
</pre>
 
=={{header|Objeck}}==