String case: Difference between revisions
Content added Content deleted
(add Zig example, remove superfluous link and add important note that toLower and toUpper are not reverseable in every language alphabet) |
|||
Line 2,208: | Line 2,208: | ||
echo ucwords("foO baR baZ"), "\n"; // FoO BaR BaZ |
echo ucwords("foO baR baZ"), "\n"; // FoO BaR BaZ |
||
echo lcwords("FOo BAr BAz"), "\n"; // fOo bAr bAz</lang> |
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}}== |
=={{header|PicoLisp}}== |