Comparison of Programming Languages (string Functions) - Common String Functions (multi Language Reference) - Uppercase

Uppercase

Definition uppercase(string) returns string
Description Returns the string in upper case.
Format Languages
UCase(string) VB
ucase(string) FreeBASIC
toupper(string) AWK (changes string)
uc(string) Perl
toupper(char) C (operates on one character)
std.string.toUpper(string) D
transform(string.begin, string.end, result.begin, toupper) C++ (std::string only, result is stored in string result which is at least as long as string, and may or may not be string itself)
uppercase(string) Object Pascal (Delphi)
upcase(char) Object Pascal (Delphi) (operates on one character)
strtoupper(string) PHP
echo "string" | tr 'a-z' 'A-Z' Unix
translate(string), or

UPPER variables, or
PARSE UPPER VAR SrcVar DstVar

REXX
string.upper Python
string.upcase Ruby (only ASCII characters as Ruby lacks Unicode support)
strings.ToUpper(string) Go
(string-upcase string) Scheme, Common Lisp
String.uppercase string OCaml
String.map Char.toUpper string Standard ML
map Char.toUpper string Haskell
string.toUpperCase Java, JavaScript
to_upper(string) Erlang
string.ToUpper VB .NET, C#, Windows PowerShell, F#
Objective-C (NSString * only)
string.upper(string)
(string):upper
Lua
string asUppercase Smalltalk
UPPER(string) SQL
ToUpperCase Mathematica
// Example in C# "Wiki means fast?".ToUpper; // "WIKI MEANS FAST?" /* Example in REXX */ translate("Wiki means fast?") /* "WIKI MEANS FAST?" */ /* Example #2 */ A='This is an example.' UPPER A /* "THIS IS AN EXAMPLE." */ /* Example #3 */ A='upper using Translate Function.' Translate UPPER VAR A Z /* Z="UPPER USING TRANSLATE FUNCTION." */ ; Example in Scheme (use-modules (srfi srfi-13)) (string-upcase "Wiki means fast?") ; "WIKI MEANS FAST?" ' Example in Visual Basic UCase("Wiki means fast?") ' "WIKI MEANS FAST?"

Read more about this topic:  Comparison Of Programming Languages (string Functions), Common String Functions (multi Language Reference)