CFArrayGetFirstIndexOfValue(_:_:_:)
Searches an array forward for a value.
Declaration
func CFArrayGetFirstIndexOfValue(_ theArray: CFArray!, _ range: CFRange, _ value: UnsafeRawPointer!) -> CFIndexParameters
- theArray:
The array to examine.
- range:
The range within
theArrayto search. The range must lie within the bounds oftheArray. The range may be empty (length0). The search progresses from the lowest index defined by the range to the highest. - value:
The value for which to find a 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
The lowest index of the matching values in the range, or -1 if no value in the range matched.