Contents

ChangeTextToUnicodeInfo

Changes the mapping information for the specified Unicodeconverter object used to convert text to Unicode to the new mappingyou provide.

Declaration

OSStatus ChangeTextToUnicodeInfo(TextToUnicodeInfo ioTextToUnicodeInfo, ConstUnicodeMappingPtr iUnicodeMapping);

Parameters

  • ioTextToUnicodeInfo:

    The Unicode converter object of type Texttounicodeinfo containing the mapping to be modified. You use the function 1433598 Createtexttounicodeinfo to obtain one.

  • iUnicodeMapping:

    A structure of type Unicodemapping identifying the new mapping to be used. This is the mapping that replaces the existing mapping in the Unicode converter object.

Return Value

A resultcode. See Result Codes.

Discussion

The function replaces the mapping table information that currentlyexists in the Unicode converter object pointed to by the ioTextToUnicodeInfo parameterwith the information contained in the UnicodeMapping structureyou supply as the iUnicodeMapping parameter.

ChangeTextToUnicodeInfo resetsthe Unicode converter object’s fields as necessary.

If an error is returned, the Unicode converter object is invalid.

See Also

Converting to Unicode