String case: Difference between revisions
→{{header|Picat}}
(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}}==
|