Query the range of the first character contained in the specified character set.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The string to search.
The character set against which the membership of characters is checked.
The range of characters within
theto search. If the range location or end point (defined by the location plus length minus
1) are outside the index space of the string (
Nis the length of the string), the behavior is undefined. The specified range must not exceed the length of the string. If the range length is negative, the behavior is undefined. The range may be empty (length
0), in which case no search is performed.
On return, a pointer to a CFRange structure (supplied by the caller) in which the search result is stored. Note that the length of this range could be more than
1(if the character in question is a multi-byte character).
You may pass
NULLif you don’t need this result.
true if a character in the character set is found and
result is filled,