SHIP:Sail:toUpperCase

From Serious Documentation
Jump to: navigation, search
Function Returns Introduced Description
toUpperCase String v2.0 Replaces any ASCII lower case letters with upper case equivalents in a string.

See Also:

Prototype

String toUpperCase(String s);

Parameters/Return Value

Parameter Data Type Description
s String Original string
Return String the upper case version of the original string

Detailed Description

The toUpperCase function returns a new string which has any ASCII lower case letters in the original string replaced with their upper case equivalents.

The letters 'a' through 'z' will be replaced with 'A' through 'Z' respectively.

The letters 'à'(0x00E0) through 'þ'(0x00FE) will be replaced with 'À'(0x00C0) through 'Þ'(0x00DE) respectively.

Examples

Example Result Notes
toUpperCase("hElLo"); "HELLO"
toUpperCase("hello"); "HELLO"
toUpperCase("français"); "FRANÇAIS"