pub unsafe extern "C-unwind" fn CFArrayGetFirstIndexOfValue(
the_array: &CFArray,
range: CFRange,
value: *const c_void,
) -> CFIndex
CFArray
and CFBase
only.Expand description
Searches the array for the value.
Parameter theArray
: The array to be searched. If this parameter is not a
valid CFArray, the behavior is undefined.
Parameter range
: The range within the array to search. If the range
location or end point (defined by the location plus length
minus 1) is outside the index space of the array (0 to
N-1 inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0).
The search progresses from the smallest index defined by
the range to the largest.
Parameter value
: The value for which to find a match in the array. The
equal() callback provided when the array was created is
used to compare. If the equal() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the array, are not understood by the equal() callback,
the behavior is undefined.
Returns: The lowest index of the matching values in the range, or kCFNotFound if no value in the range matched.