Compares a range of the characters in one string with that of another string.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The first string to use in the comparison.
The second string to use in the comparison.
The range of characters in
theto be used in the comparison to
the. To use the whole string, pass the range
Make(0, CFString Get Length(the String1))
CFString. The specified range must not exceed the length of the string.
Flags that select different types of comparisons, such as localized comparison, case-insensitive comparison, and non-literal comparison. If you want the default comparison behavior, pass
0. See String Comparison Flags for the available flags.
CFComparison value that indicates whether
the is equal to, less than, or greater than
You can affect how the comparison proceeds by specifying one or more option flags in
If you want to compare one entire string with another string, use the