Show: Delphi C++
Display Preferences

System.UnicodeString.Compare

From RAD Studio API Documentation
Jump to: navigation, search

C++

int  Compare(const UnicodeString& rhs) const;

Properties

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

Description

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

Personal tools
In Other Languages
Previous Versions
Assistance