Sign in Join
FPDoc Onlineexperiment

WideCompareText function

In unit sysutils

Compare two widestrings (ignoring case).

Declaration

pascal
function WideCompareText(const s1: WideString; const s2: WideString)
: PtrInt

Description

WideCompareStr compares two widestrings and returns the following result:

< 0
if S1<S2.
0
if S1=S2.
> 0
if S1>S2.

The comparison takes into account wide characters, i.e. it takes care of strange accented characters. Contrary to WideCompareStr, the comparison is case insensitive.

Errors

None.

See also

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