View Problem

Make a string lowercase

Transform "Caps ARE overRated" into "caps are overrated"
DiskEdit
ruby
"Caps ARE overRated".downcase
ExpandDiskEdit
java
"Caps ARE overRated".toLowerCase();
DiskEdit
perl
print lc "Caps ARE overRated"
DiskEdit
groovy
println "Caps ARE overRated".toLowerCase()
ExpandDiskEdit
scala
"Caps ARE overRated".toLowerCase
DiskEdit
python
"Caps ARE overRated".lower()
ExpandDiskEdit
cpp
std::string s = "Caps ARE overRated";
std::string sl(boost::to_lower_copy(s));
ExpandDiskEdit
cpp C++/CLI .NET 2.0
String(L"Caps ARE overRated").ToLower();
ExpandDiskEdit
fsharp
printfn "%s" ("Caps ARE overRated".ToLower())
ExpandDiskEdit
fsharp
printfn "%s" (String.lowercase "Caps ARE overRated")
ExpandDiskEdit
erlang
io:format("~s~n", [string:to_lower("Caps ARE overRated")]).
DiskEdit
ocaml
String.lowercase "Caps ARE overRated";;
ExpandDiskEdit
csharp
string str = "Caps ARE overRated";
str = str.ToLower() ;
Console.WriteLine(str);
ExpandDiskEdit
php
echo strtolower("Caps ARE overRated");
DiskEdit
haskell
import Char
str = map toLower "Caps ARE overRated"
DiskEdit
clojure
(.toLowerCase "Caps ARE overRated")
ExpandDiskEdit
fantom
s := "Caps ARE overRated".localeLower
ExpandDiskEdit
go
strings.ToLower("Caps ARE overRated")

Submit a new solution for ruby, java, perl, groovy ...