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



ChangeTextToUnicodeInfo

Changes the mapping information for the specified Unicode converter object used to convert text to Unicode to the new mapping you provide.

pascal OSStatus ChangeTextToUnicodeInfo (
                     TextToUnicodeInfo ioTextToUnicodeInfo,
                     ConstUnicodeMappingPtr iUnicodeMapping);
ioTextToUnicodeInfo
The Unicode converter object of type TextToUnicodeInfo containing the mapping to be modified. You use the function 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.

function result
A result code. See Text Encoding Conversion Manager Result Codes in the chapter Basic Text Types Reference

DISCUSSION

The ChangeTextToUnicodeInfo function allows you to provide new mapping information for text to be converted to Unicode. The function replaces the mapping table information that currently exists in the Unicode converter object pointed to by the ioTextToUnicodeInfo parameter with the information contained in the UnicodeMapping structure you supply as the iUnicodeMapping parameter.

ChangeTextToUnicodeInfo resets the Unicode converter object's fields as necessary.

In addition to various resource errors, the function can return the following result codes:

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


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

Up Previous Next