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.