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



CreateTextEncoding

Creates and returns a text encoding specification.

pascal TextEncoding CreateTextEncoding (
                     TextEncodingBase encodingBase,
                     TextEncodingVariant encodingVariant, TextEncodingFormat
                     encodingFormat);
encodingBase
A base text encoding of type TextEncodingRun .

encodingVariant
A variant of the base text encoding. To specify the default variant for the base encoding given in the encodingBase parameter, you can use the kTextEncodingDefaultVariant constant.

encodingFormat
A format for the base text encoding. To specify the default format for the base encoding, you can use the kTextEncodingDefaultFormat constant.

function result
The text encoding specification that the function creates from the values you pass it.

DISCUSSION

When you create a text encoding specification, the three values that you specify are packed into an unsigned integer, which you can then pass by value to the functions that use text encodings.

SEE ALSO

The data type TextEncodingRun

Text Encoding Variant

Text Encoding Format


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

Up Previous Next