These values represent the options available to many of the string classes’ search and comparison methods.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- watchOS 2.0+
Search is limited to start (or end, if
NSBackwardsSearch) of source string.
Numbers within strings are compared using numeric value, that is,
Search ignores width differences in characters that have full-width and half-width forms, as occurs in East Asian character sets.
Comparisons are forced to return either
NSOrderedDescending if the strings are equivalent but not strictly equal.
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.