Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Up Previous Next 

PATH 
Mac OS 8 and 9 Developer Documentation > Text Encoding Conversion Manager
Programming With the Text Encoding Conversion Manager



TECClearSnifferContextInfo

Resets a sniffer object to its initial settings so it can be reused.

pascal OSStatus TECClearSnifferContextInfo (
                     TECSnifferObjectRef encodingSniffer);
encodingSniffer
A pointer to the sniffer object you want to reuse.

function result
A result code. See Text Encoding Conversion Manager Result Codes for a list of possible values. If this function returns a result code other than noErr, then one of the conversion plug-ins accessed by the converter encountered an error condition.

DISCUSSION

Sniffers maintain state information about the input encoding buffer and the number of errors and features found for each encoding; this information allows a caller to progressively sniff an input buffer in sequential chunks. Before sniffing a buffer than contains completely new information you must clear any state information by calling TECClearSnifferContextInfo.

SEE ALSO

The function TECCountAvailableSniffers

The function TECGetAvailableSniffers

The function TECCreateSniffer

The function TECSniffTextEncoding

The function TECDisposeSniffer


© 1999 Apple Computer, Inc. – (Last Updated 13 Dec 99)

Up Previous Next