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



Unicode Character and String Pointer Data Types

The Unicode Converter functions that use a Unicode character data type assume that the Unicode character has the normal byte order for an unsigned 16-bit integer on the current platform and that any initial byte-order prefix character has been removed. These functions also assume that each Unicode character is aligned on a 2-byte boundary. A 16-bit Unicode character is defined by the UniChar data type.

typedef UInt16 UniChar;

You specify a Unicode character array pointer to reference an array used to hold a Unicode string. A Unicode character array pointer is defined by the UniCharArrayPtr data type.

typedef UniChar *UniCharArrayPtr;

You specify a constant Unicode character array pointer for Unicode strings used within the scope of a function whose contents are not modified by that function. A constant Unicode character array pointer is defined by the ConstUniCharArrayPtr data type.

typedef const UniChar *ConstUniCharArrayPtr;


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

Up Previous Next