Contents

CFDictionaryGetCountOfKey(_:_:)

Returns the number of times a key occurs in a dictionary.

Declaration

func CFDictionaryGetCountOfKey(_ theDict: CFDictionary!, _ key: UnsafeRawPointer!) -> CFIndex

Parameters

  • theDict:

    The dictionary to examine.

  • key:

    The key for which to find matches in theDict. The key hash and equal callbacks provided when the dictionary was created are used to compare. If the hash callback was NULL, the key is treated as a pointer and converted to an integer. If the equal callback was NULL, pointer equality (in C, ==) is used. If key, or any of the keys in the dictionary, is not understood by the equal callback, the behavior is undefined.

Return Value

Returns 1 if a matching key is used by the dictionary, otherwise 0.

See Also

Examining a dictionary