SplitScript reference / String / toAsciiLowerCase

String.toAsciiLowerCase

Method

String.toAsciiLowerCase() -> String

Returns this string with ASCII uppercase letters converted to lowercase.

Only A through Z are changed. Every other UTF-8 byte is preserved, so this operation does not claim to implement Unicode lowercasing. If the string contains no ASCII uppercase letters, the existing immutable string is reused without allocating.

Effects: allocates

Runtime behavior: available everywhere; synchronous

Examples

Normalize an ASCII map identifier

let map = "FOREST".toAsciiLowerCase()