Login
|
Signup
langref.org
-
python
,
fsharp
, and
cpp
add..
all
clojure
csharp
erlang
fantom
go
groovy
haskell
java
ocaml
perl
php
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"
python
"Caps ARE overRated".lower()
"Caps ARE overRated".lower()
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")
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();
}
Submit a new solution for
python
,
fsharp
, or
cpp
There are 13 other solutions in
additional
languages (
clojure
,
csharp
,
erlang
,
fantom
...)