From RAD Studio API Documentation
Jump to: navigation, search


int  Compare(const UnicodeString& rhs) const;


Type Visibility Source Unit Parent
function public ustring.h System UnicodeString


Compares the UnicodeString to another specified string case-sensitively.

Compares a UnicodeString instance to rhs, with case-sensitivity. Use CompareIC to compare without case-sensitivity. The comparison operation should be the same as using the UnicodeString comparison operators. Compare is based on a locale-specific collating order. The return value is shown in the following table.

Condition Return Value

S1 > S2

> 0

S1 < S2

< 0

S1 = S2

= 0

See Also