Login
|
Signup
langref.org
-
clojure
,
cpp
,
csharp
,
erlang
...
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"
clojure
(.toLowerCase "Caps ARE overRated")
(.toLowerCase "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();
}
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);
}
}
erlang
io:format("~s~n", [string:to_lower("Caps ARE overRated")]).
-module(strlower).
-export([start/0]).
start() ->
io:format("~s~n", [string:to_lower("Caps ARE overRated")]).
fantom
s := "Caps ARE overRated".localeLower
class SolutionXX
{
Void main()
{
s := "Caps ARE overRated".localeLower
}
}
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")
go
strings.ToLower("Caps ARE overRated")
package main
import "strings"
func main() {
strings.ToLower("Caps ARE overRated")
}
groovy
println "Caps ARE overRated".toLowerCase()
println "Caps ARE overRated".toLowerCase()
haskell
import Char
str = map toLower "Caps ARE overRated"
import Char
str = map toLower "Caps ARE overRated"
java
"Caps ARE overRated".toLowerCase();
public class Solution45 {
public static void main(String[] args) {
"Caps ARE overRated".toLowerCase();
}
}
ocaml
String.lowercase "Caps ARE overRated";;
String.lowercase "Caps ARE overRated";;
perl
print lc "Caps ARE overRated"
print lc "Caps ARE overRated"
php
echo strtolower("Caps ARE overRated");
<?php
echo strtolower("Caps ARE overRated");
?>
python
"Caps ARE overRated".lower()
"Caps ARE overRated".lower()
ruby
"Caps ARE overRated".downcase
"Caps ARE overRated".downcase
scala
"Caps ARE overRated".toLowerCase
object Solution377 extends Application {
"Caps ARE overRated".toLowerCase
}
Submit a new solution for
clojure
,
cpp
,
csharp
,
erlang
...