Instance Property

lowercaseString

A lowercase representation of the string.

Declaration

@property(readonly, copy) NSString *lowercaseString;

Discussion

This property performs the canonical (non-localized) mapping. It is suitable for programming operations that require stable results not depending on the current locale.

Case transformations aren’t guaranteed to be symmetrical or to produce strings of the same lengths as the originals. That is, the result of this statement:

lcString = [myString lowercaseString];

…might not be equal to this statement:

lcString = [[myString uppercaseString] lowercaseString];

For example, the uppercase form of “ß” in German is “SS”, so converting “Straße” to uppercase, then lowercase, produces this sequence of strings:

  • “Straße”

  • “STRASSE”

  • “strasse”

See Also

Changing Case

localizedLowercaseString

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

- lowercaseStringWithLocale:

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

uppercaseString

An uppercase representation of the string.

localizedUppercaseString

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

- uppercaseStringWithLocale:

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

capitalizedString

A capitalized representation of the string.

localizedCapitalizedString

Returns a capitalized representation of the receiver using the current locale.

- capitalizedStringWithLocale:

Returns a capitalized representation of the receiver using the specified locale.