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 stringExample
program Lower {
entry {
if Unicode.lower("HELLO") == "hello" { print(1) }
}
}