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 |
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 |
Read more about this topic: Comparison Of Programming Languages (string Functions), Common String Functions (multi Language Reference)