Sign in Join
FPDoc Onlineexperiment

ShortCompareText function

In unit System

Compare 2 shortstrings.

Declaration

pascal
function ShortCompareText(const S1: shortstring; const S2: shortstring)
: SizeInt

Description

ShortCompareText compares two shortstrings, S1 and S2, and returns the following result:

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

The comparison of the two strings is case-insensitive. The function does not take internationalization settings into account, it simply compares ASCII values.

Errors

None.

See also

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