TECGetEncodingList
Gets the list of destination encodings from a converterobject.
Declaration
OSStatus TECGetEncodingList(TECObjectRef encodingConverter, ItemCount *numEncodings, Handle *encodingList);Parameters
- encodingConverter:
A reference to the text encoding conversion object returned by the 1571794 Teccreateonetomanyconverter function.
- numEncodings:
On return, a pointer to the number of encodings specified by the
encodingListhandle. - encodingList:
A handle to an array of text encoding specifications. On return, it contains an array of text encoding specifications to which the converter object can convert. The memory for the array is allocated automatically by the Text Encoding Converter.
Return Value
A resultcode. See Result Codes.
Discussion
The TECDisposeConverter functionautomatically disposes of the pointer for you. This means you shouldnot reference the pointer after you have disposed of the converter object.
Plug-ins that perform one-to-many conversions use the TECGetEncodingList functionto get the output encoding list from the converter object reference.