API:System.AnsiStringT.AnsiCompare

From RAD Studio API Documentation
Jump to: navigation, search

C++

int  AnsiCompare(const AnsiStringT& rhs) const {

Properties

Type Visibility Source Unit Parent
function public dstring.h System AnsiStringT

Description

Compares the AnsiStringBase to another specified string (case-sensitively).

System.AnsiStringT.AnsiCompare inherits from System.AnsiStringBase.AnsiCompare. All content below this line refers to System.AnsiStringBase.AnsiCompare.

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