Return Value 戻り値
An uppercase copy of the string. この文字列の大文字でのコピー。
Availability
Technology
func uppercased() -> String
An uppercase copy of the string. この文字列の大文字でのコピー。
The following example transforms a string to uppercase letters: 以下の例は、ある文字列を大文字の文字に変換します:
let cafe = "Café 🍵"
print(cafe.uppercased())
// Prints "CAFÉ 🍵"
Complexity: O(n) 計算量:O(n)
func lowercased() -> String