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



ScriptCodeRun

To return the result of a multiple encoding conversion, the function ConvertFromUnicodeToScriptCodeRun uses a script code run structure.

The script code run structure uses an extended script code with values in the range 0-254, which are the text encoding base equivalents to Mac OS encodings. Values 0-32 correspond directly to traditional script codes. This allows a script code run to distinguish Icelandic, Turkish, Symbol, Zapf Dingbats, and so on.

A script code run structure is defined by the ScriptCodeRun data type.

struct ScriptCodeRun {
    ByteOffset          offset;     
    ScriptCode          script;         
};
typedef struct ScriptCodeRun ScriptCodeRun;
offset
The beginning character position of a text run and its script code in the converted text.

script
The script code for the text that begins at the position specified.


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

Up Previous Next