CFArrayContainsValue(_:_:_:)
Reports whether or not a value is in an array.
Declaration
func CFArrayContainsValue(_ theArray: CFArray!, _ range: CFRange, _ value: UnsafeRawPointer!) -> BoolParameters
- theArray:
The array to search.
- range:
The range within
theArrayto search. The range must not exceed the bounds oftheArray). The range may be empty (length0). - value:
The value to match in
theArray. The equal callback provided whentheArraywas created is used to compare. If the equal callback wasNULL, pointer equality (in C, ==) is used. Ifvalue, or any other value intheArray, is not understood by the equal callback, the behavior is undefined.
Return Value
true, if value is in the specified range of theArray, otherwise false.