API Reference › Unicode › Unicode.upper
method

Unicode.upper

Unicode.upper(s) -> string

Returns a new string with each letter uppercased. v1 maps ASCII and Latin-1 letters (correct for Western-European text); other scripts and locale-specific rules are follow-ups, and unmapped code points pass through unchanged.

Parameters

sthe UTF-8 string

Example

program Upper {
  entry {
    if Unicode.upper("hello") == "HELLO" { print(1) }
  }
}
← All symbols