OxL Reference

method str.upper

The text in upper case (Unicode simple case mapping).

Example:

oxl✓ checked in CI
fn main() io {
  print("ab é".upper())
}
Output
AB É

The string in upper case.

Example:

oxl✓ checked in CI
fn main() io {
  print("Hello".upper())
}
Output
HELLO
pub(api) fn upper() -> str

Complexity. O(n).

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:378

See also