- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
The string with which to compare the range of the receiver specified by
This value must not be
nil. If this value is
nil, the behavior is undefined and may change in future versions of macOS.
Options for the search—you can combine any of the following using a C bitwise OR operator:
See String Programming Guide for details on these options.
The range of the receiver over which to perform the comparison. The range must not exceed the bounds of the receiver.
This method is equivalent to invoking
compare(_: with a