Jump to content

String case: Difference between revisions

(add Zig example, remove superfluous link and add important note that toLower and toUpper are not reverseable in every language alphabet)
Line 2,208:
echo ucwords("foO baR baZ"), "\n"; // FoO BaR BaZ
echo lcwords("FOo BAr BAz"), "\n"; // fOo bAr bAz</lang>
 
=={{header|Picat}}==
<lang Picat>main =>
S = "alphaBETA",
println(to_uppercase(S)),
println(to_lowercase(S)).</lang>
 
{{out}}
<pre>ALPHABETA
alphabeta</pre>
 
=={{header|PicoLisp}}==
495

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.