System.UnicodeString.Compare
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 |