Contents

TECPluginNewEncodingSnifferPtr

Defines a pointer to a function that createsa sniffer object and returns a reference to it.

Declaration

typedef OSStatus (*TECPluginNewEncodingSnifferPtr)(TECSnifferObjectRef *encodingSniffer, TECSnifferContextRec *snifContext, TextEncoding inputEncoding);

Parameters

  • encodingSniffer:

    A pointer to a sniffer object reference, which is of type Tecsnifferobjectref. On return, the reference pertains to the newly created sniffer object.

  • snifContext:

    A pointer to a TEC sniffer context record.

  • inputEncoding:

    The text encoding specification to be detected by the sniffer object.

Return Value

A resultcode. See Result Codes.

See Also

Callbacks