SplitScript reference / String / toAsciiUpperCase

String.toAsciiUpperCase

Method

String.toAsciiUpperCase() -> String

Returns this string with ASCII lowercase letters converted to uppercase.

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

Effects: allocates

Runtime behavior: available everywhere; synchronous

Examples

Normalize an ASCII mission identifier

let mission = "escape".toAsciiUpperCase()