Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 5 - Text Utilities / Text Utilities Reference
Routines / Determining Sorting Order for Strings in Different Languages


ScriptOrder

The ScriptOrder function determines the order in which strings in two different scripts should be sorted.

FUNCTION ScriptOrder (script1, script2: ScriptCode): Integer;
script1
The script code of the first script.
script2
The script code of the second script.
DESCRIPTION
ScriptOrder takes a pair of script codes and determines in which order strings from the first script system should be sorted relative to strings from the second script system. It returns a value that indicates the sorting order: -1 if strings in the first script should be sorted before strings in the second script are sorted, 1 if strings in the first script should be sorted after strings in the second script are sorted, or 0 if the sorting order does not matter (that is, if the scripts are the same).

The script code values are listed in the chapter "Script Manager" in this book.

Note
Text of the system script is always first in a sorted list, regardless of the result returned by this function.
SPECIAL CONSIDERATIONS
ScriptOrder may move memory; your application should not call this function at interrupt time.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the ScriptOrder function are
Trap macroSelector
_Pack6$001E


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996