Carbon


UnicodeToTextInfo

Header: UnicodeConverter.h

typedef struct OpaqueUnicodeToTextInfo* UnicodeToTextInfo;

Many of the Unicode Converter functions that perform conversions require a Unicode converter object containing information used for the conversion process. There are three types of Unicode converter objects used for different types of conversions. You use the UnicodeToTextInfo type, described here, for converting from Unicode to text.

Because your application cannot directly create or modify the contents of the private Unicode converter object, the Unicode Converter provides functions to create and dispose of it. To create a Unicode converter object for converting from Unicode to text, your application must first call either the function CreateUnicodeToTextInfo or CreateUnicodeToTextInfoByEncoding.

You can then pass this object to the function ConvertFromUnicodeToText or ConvertFromUnicodeToPString to identify the information used to perform the actual conversion. After you have finished using the object, you should release the memory allocated for it by calling the function DisposeUnicodeToTextInfo.

A Unicode converter object for this purpose is defined by the UnicodeToTextInfo data type.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)