Contents

CFArrayGetCountOfValue(_:_:_:)

Counts the number of times a given value occurs in an array.

Declaration

func CFArrayGetCountOfValue(_ theArray: CFArray!, _ range: CFRange, _ value: UnsafeRawPointer!) -> CFIndex

Parameters

  • theArray:

    The array to examine.

  • range:

    The range within theArray to search. The range must lie within the bounds of theArray). The range may be empty (length 0).

  • value:

    The value for which to find matches in theArray. The equal callback provided when theArray was created is used to compare. If the equal callback was NULL, pointer equality (in C, ==) is used. If value, or any other value in theArray, 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.

See Also

Examining an Array