Compares the string with a given string using a case-insensitive, localized, comparison.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The string with which to compare the receiver.
This value must not be
nil. If this value is
nil, the behavior is undefined and may change in future versions of macOS.
This method uses the current locale.
Identifying and Comparing Strings
Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver.
Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver.
Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison.
An unsigned integer that can be used as a hash table address.
These values represent the options available to many of the string classes’ search and comparison methods.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software