Contents

lowercased(with:)

Returns a version of the string with all letters converted to lowercase, taking into account the specified locale.

Declaration

func lowercased(with locale: Locale?) -> String

Parameters

  • locale:

    The locale. For strings presented to users, pass the current locale ([Nslocale Current]). To use the system locale, pass nil.

Return Value

A lowercase string using the locale.

Discussion

Case transformations aren’t guaranteed to be symmetrical or to produce strings of the same lengths as the originals. See lowercased for an example.

See Also

Changing Case