Login
|
Signup
langref.org
-
groovy
,
cpp
,
csharp
, and
fsharp
add..
all
clojure
erlang
fantom
go
haskell
java
ocaml
perl
php
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Strings
Case
Make a string lowercase
Transform
"Caps ARE overRated"
into
"caps are overrated"
groovy
println "Caps ARE overRated".toLowerCase()
println "Caps ARE overRated".toLowerCase()
cpp
std::string s = "Caps ARE overRated";
std::string sl(boost::to_lower_copy(s));
#include <string>
#include "boost/algorithm/string.hpp"
int main()
{
std::string s = "Caps ARE overRated";
std::string sl(boost::to_lower_copy(s));
}
cpp
C++/CLI .NET 2.0
String(L"Caps ARE overRated").ToLower();
using namespace System;
int main()
{
String(L"Caps ARE overRated").ToLower();
}
csharp
string str = "Caps ARE overRated";
str = str.ToLower() ;
Console.WriteLine(str);
class SolutionXX
{
static void Main()
{
string str = "Caps ARE overRated";
str = str.ToLower() ;
Console.WriteLine(str);
}
}
fsharp
printfn "%s" ("Caps ARE overRated".ToLower())
#light
open System
printfn "%s" ("Caps ARE overRated".ToLower())
fsharp
printfn "%s" (String.lowercase "Caps ARE overRated")
#light
open System
printfn "%s" (String.lowercase "Caps ARE overRated")
Submit a new solution for
groovy
,
cpp
,
csharp
, or
fsharp
There are 12 other solutions in
additional
languages (
clojure
,
erlang
,
fantom
,
go
...)