Sign in Join
FPDoc Onlineexperiment

UnicodeCompareStr function

In unit sysutils

Compare 2 Unicode strings.

Declaration

pascal
function UnicodeCompareStr(const s1: UnicodeString; 
 const s2: UnicodeString): PtrInt

Description

UnicodeCompareStr compares 2 Unicode strings S1 and S2 in a case sensitive manner. The result of the function is

< 0
If S1<S2
0
If S1=S2
> 0
If S1>S2

This function relies on a widestring manager to perform the actual comparison, as it will take into account various equivalent code points: it is not a simple byte-by-byte comparison.

See also

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