Compares a range of the characters in one string with another string using a given locale.
- iOS 2.0+
- macOS 10.5+
- 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 full range of this string is used.
The range of characters in
theto be used in the comparison to
the. To use the whole string, pass the range
CFRange. The specified range must not exceed the bounds of the string.
Make(0, CFString Get Length(the String1))
Flags that select different types of comparisons, such as case-insensitive comparison and non-literal comparison. See String Comparison Flags for the available flags.
koption has no effect.
koption and passing
localecauses the current locale (the return value of
CFLocale) to be used.
The locale to use for the comparison, which affects both equality and ordering algorithms. For example, in some locales, accented characters are ordered immediately after the base; other locales order them after “z”.
koption is not specified for
compare, the comparison is nonlocalized.
CFComparison value that indicates whether
the is equal to, less than, or greater than