method str.upper
The text in upper case (Unicode simple case mapping).
Example:
fn main() io {
print("ab é".upper())
}Output
AB É
The string in upper case.
Example:
fn main() io {
print("Hello".upper())
}Output
HELLO
pub(api) fn upper() -> strComplexity. 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