Idiomatically determine all the lowercase and uppercase letters: Difference between revisions
Idiomatically determine all the lowercase and uppercase letters (view source)
Revision as of 17:09, 25 March 2023
, 1 year agoIdiomatically determine all the lowercase and uppercase letters in Dart
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(Idiomatically determine all the lowercase and uppercase letters in Dart) |
||
Line 345:
90 #\LATIN_CAPITAL_LETTER_Z #\Z
</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}}==
{{libheader| System.SysUtils}}
|