An uppercase representation of the string.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
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. See
lowercased for an example.