RAD Studio VCL Reference
|
Compares the System::AnsiStringBase::AnsiStringBase to another specified string (case-sensitively).
function AnsiCompare(const rhs: AnsiStringBase&): Integer;
__fastcall int AnsiCompare(const AnsiStringBase& rhs) const;
Compares this System::AnsiStringBase::AnsiStringBase to rhs, with case sensitivity. The compare operation is controlled by the current Windows locale and is not necessarily the same as using the System::AnsiStringBase comparison operators. System::AnsiStringBase::AnsiCompare 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!
|