Sign in Join
FPDoc Onlineexperiment

ComputeSortKey function

In unit unicodedata

Compute the sort key for a string.

Declaration

pascal
function ComputeSortKey(const AString: UnicodeString; 
 const ACollation: PUCA_DataBook): TUCASortKey
 ; overload

Arguments

AString

Unicode string.

ACollation

Unicode Collation Algorithm data to use.

Function result

Sort key for the string.

Description

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.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.