string.toUpper

This function returns a copy of input string with all Unicode letters mapped to their upper case.

Syntax

string.toUpper(str)

Arguments

Argument

Type

Description

str

string

Source string

Returns

Type

Description

string

String converted to upper case

Examples

The function string.toUpper("Hello World") returns HELLO WORLD.