Instance Method

lowercased()

Returns a lowercased version of this character.

Declaration

func lowercased() -> String

Discussion

Because case conversion can result in multiple characters, the result of lowercased() is a string.

let chars: [Character] = ["E", "É", "И", "Π", "1"]
for ch in chars {
    print(ch, "-->", ch.lowercased())
}
// E --> e
// É --> é
// И --> и
// Π --> π
// 1 --> 1

See Also

Checking a Character’s Case

var isCased: Bool

A Boolean value indicating whether this character changes under any form of case conversion.

var isUppercase: Bool

A Boolean value indicating whether this character is considered uppercase.

func uppercased() -> String

Returns an uppercased version of this character.

var isLowercase: Bool

A Boolean value indicating whether this character is considered lowercase.