Required Instance Methodswift 6.0.1Swift
lowercased
func lowercased() -> String
Other requirements
Type members
associatedtype SubSequence
associatedtype UTF16View
associatedtype UTF8View
associatedtype UnicodeScalarView
init(cString: UnsafePointer<CChar>
) Creates a string from the null-terminated, UTF-8 encoded sequence of bytes at the given pointer.
init<C, Encoding>(decoding: C, as: Encoding.Type
) Creates a string from the given Unicode code units in the specified encoding.
init<Encoding>(decodingCString: UnsafePointer<Encoding.CodeUnit>, as: Encoding.Type
) Creates a string from the null-terminated sequence of bytes at the given pointer.
Instance members
var unicodeScalars: Self.UnicodeScalarView
var utf16: Self.UTF16View
var utf8: Self.UTF8View
func hasPrefix(String
) -> Bool func hasSuffix(String
) -> Bool func uppercased(
) -> String func withCString<Result>((UnsafePointer<CChar>) throws -> Result
) rethrows -> Result Calls the given closure with a pointer to the contents of the string, represented as a null-terminated sequence of UTF-8 code units.
func withCString<Result, Encoding>(encodedAs: Encoding.Type, (UnsafePointer<Encoding.CodeUnit>) throws -> Result
) rethrows -> Result Calls the given closure with a pointer to the contents of the string, represented as a null-terminated sequence of code units.