API Reference › Text › Text.upper
method

Text.upper

Text.upper(s) -> string

Returns a fresh string with every ASCII letter a-z turned to uppercase; other bytes pass through unchanged. The input is left untouched. Use it to normalize input before comparing, or to shout a label. This is ASCII-only — accented and non-Latin letters are left as-is; for full Unicode case mapping use Unicode.upper.

Example

program Demo {
  handler Step phase Update {
    let shout = Text.upper("ready")   # "READY"
  }
}
← All symbols