RAD Studio VCL Reference
|
Compares the System::UnicodeString to another specified string case-sensitively.
function Compare(const rhs: UnicodeString&): Integer;
__fastcall int Compare(const UnicodeString& rhs) const;
Compares a System::UnicodeString instance to rhs, with case sensitivity. Use System::UnicodeString::CompareIC to compare without case sensitivity. The compare operation should be the same as using the System::UnicodeString comparison operators. System::UnicodeString::Compare is based on a locale-specific collating order. The return value is shown below:
Condition |
Return Value |
S1 > S2 |
> 0 |
S1 < S2 |
< 0 |
S1 = S2 |
= 0 |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|