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