method str.upper
The text in upper case (Unicode simple case mapping).
Example:
fn main() io {
print("ab é".upper())
}Вывод
AB É
The string in upper case.
Example:
fn main() io {
print("Hello".upper())
}Вывод
HELLO
pub(api) fn upper() -> strСложность. O(n).
С версии. 1.0.0-beta
Возвращает
str
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/text.oxl:378