API Reference › Unicode › Unicode.lower
method

Unicode.lower

Unicode.lower(s) -> string

Returns a new string with each letter lowercased. v1 maps ASCII and Latin-1 letters; other scripts and locale-specific rules are follow-ups, and unmapped code points pass through unchanged. Useful for case-insensitive comparison of names and commands.

Parameters

sthe UTF-8 string

Example

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