Idiomatically determine all the lowercase and uppercase letters: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
(Idiomatically determine all the lowercase and uppercase letters in Dart)
Line 345: Line 345:
90 #\LATIN_CAPITAL_LETTER_Z #\Z
90 #\LATIN_CAPITAL_LETTER_Z #\Z
</syntaxhighlight>
</syntaxhighlight>

=={{header|Dart}}==
<syntaxhighlight lang="dart">void main() {
String lowercase = '';
for (var c = 0x61; c < 0x7b; c++) lowercase += String.fromCharCode(c);
print(lowercase);

String uppercase = '';
for (var c = 0x41; c < 0x5b; c++) uppercase += String.fromCharCode(c);
print(uppercase);
}</syntaxhighlight>
{{out}}
<pre>abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ</pre>

=={{header|Delphi}}==
=={{header|Delphi}}==
{{libheader| System.SysUtils}}
{{libheader| System.SysUtils}}