SHIP:Sail:toLowerCase

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

See Also:

Prototype

String toLowerCase(String s);

Parameters/Return Value

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

Detailed Description

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

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

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

Examples

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