Contents

TECGetDirectTextEncodingConversions

Returns the types of direct conversions currently configuredin the Text Encoding Converter.

Declaration

OSStatus TECGetDirectTextEncodingConversions(TECConversionInfo availableConversions[], ItemCount maxAvailableConversions, ItemCount *actualAvailableConversions);

Parameters

  • availableConversions:

    An array composed of text encoding conversion information structures, each of which specifies a set of source and destination encodings for a type of conversion. See Tecconversioninfo for more information. You should use the 1571834 Tecgetdirecttextencodingconversi function to determine how large to make the array.

  • maxAvailableConversions:

    The maximum number of text encoding conversion information structures that the directConversions array can contain.

  • actualAvailableConversions:

    On return, a pointer to the number of text encoding conversion information structures returned in the directConversions array.

Return Value

A resultcode. See Result Codes.

Discussion

This function ignores duplicate text encoding conversion informationstructures. If you used the TECCountDirectTextEncodingConversions function to determine the size of the directConversions[] array,the number of text encoding conversion information structures maybe fewer than the number of array elements, because TECCountDirectTextEncodingConversions countsduplicate text encoding conversion information structures.

See Also

Identifying Direct Encoding Conversions