Important: The information in this document is obsolete and should not be used for new development.
Comparing Strings for Equality
This section describes text routines that you can use to determine whether two strings are equal.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
EqualString
function compares two Pascal strings using the comparison rules of the Macintosh file system. This function does not make use of any script or language information.- The
IdenticalString
function compares two Pascal strings for equality, making use of the string comparison information from a specified resource.- The
IdenticalText
function compares two text strings for equality, making use of the string comparison information from a specified resource.
Subtopics
- EqualString
- IdenticalString
- IdenticalText