CFArrayGetCountOfValue(_:_:_:)
Counts the number of times a given value occurs in an array.
Declaration
func CFArrayGetCountOfValue(_ 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). - value:
The value for which to find matches 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 number of times value occurs in theArray, within the specified range.