Important: The information in this document is obsolete and should not be used for new development.
Determining Sorting Order for Strings in the Same Language
This section describes text routines that you can use to determine the sorting order of two strings.Some of the routines operate on Pascal strings and others on text strings. Pascal strings are stored using standard Pascal string representation, which precedes the text characters with a length byte; these strings are limited to 255 bytes of data. Text strings do not use a length byte and can be up to 32 KB in length. Pascal strings are passed directly as parameters, while text strings are specified by an address value and an integer length value.
- The
RelString
function compares two Pascal strings using the string comparison rules of the Macintosh file system. This function does not make use of any script or language information, assuming the use of a Roman script system.- The
CompareString
function compares two Pascal strings, making use of the string comparison information from a specified resource.- The
CompareText
function compares two text strings for equality, making use of the string comparison information from a specified resource.
Subtopics
- RelString
- CompareString
- CompareText