System.AnsiStringBase.AnsiCompare
C++
int AnsiCompare(const AnsiStringBase& rhs) const;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | dstring.h | System | AnsiStringBase |
Description
Compares the AnsiStringBase to another specified string (case-sensitively).
Compares AnsiStringBase to rhs, with case sensitivity. The comparison operation is controlled by the current Windows locale and is not necessarily the same as using the AnsiStringBase comparison operators. 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 |