Important: The information in this document is obsolete and should not be used for new development.
Counts and returns the number of sniffers available in all installed plug-ins.
pascal OSStatus TECCountAvailableSniffers (
The TECCountAvailableSniffers function counts and returns the number of sniffers that you can use to perform a determination of the current text encoding. This number tells you what size array you must allocate in a parameter of the function TECGetAvailableSniffers.
TECCountAvailableSniffers counts each instance of the same sniffer. That is, if different conversion plug-ins support a sniffer for the same text encoding, this function includes each instance of the sniffer in its sum. Consequently, one type of sniffer may be counted more than once. However, since the TECGetAvailableSniffers function does not return duplicate text encoding specifications, TECCountAvailableSniffers may return a number greater than the number of array elements required.