| [Overview][Resource strings][Constants][Types][Procedures and functions][Index] | 
Compute the sort key for a string
Source position: unicodedata.pas line 512
function ComputeSortKey(  | 
const AString: UnicodeString;  | 
const ACollation: PUCA_DataBook  | 
):TUCASortKey; overload;  | 
const AStr: PUnicodeChar;  | 
const ALength: SizeInt;  | 
const ACollation: PUCA_DataBook  | 
):TUCASortKey; overload;  | 
AString  | 
  | 
Unicode string  | 
ACollation  | 
  | 
Unicode Collation Algorithm data to use.  | 
Sort key for the string.
AStr  | 
  | 
Null-terminated string with length specified in ALength.  | 
ALength  | 
  | 
Length of null-terminated string AStr.  | 
ACollation  | 
  | 
Unicode Collation Algorithm data to use.  | 
ComputeSortKey computes the sort key for a unicode string AString (or the alternate form using a null-terminated AStr with length Alength) using the Unicode Collation Algorithm data in ACollation. This key can then be used in CompareSortKey to compare unicode strings.
  | 
Compare two sort keys.  |